Print this page
4206 history_003_pos relies on exact size of history log and entries
4207 history_008_pos depends on obsolete internal history log message
4208 Typo in zfs_main.c: "posxiuser"
4209 Populate zfstest with the remainder of the STF tests
Reviewed by: Sonu Pillai <sonu.pillai@delphix.com>
Reviewed by: Will Guyette <will.guyette@delphix.com>
Reviewed by: Eric Diven <eric.diven@delphix.com>
Reviewed by: Christopher Siden <christopher.siden@delphix.com>

*** 23,33 **** # Copyright 2009 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # # ! # Copyright (c) 2012 by Delphix. All rights reserved. # . ${STF_TOOLS}/contrib/include/logapi.shlib ZFS=${ZFS:-/usr/sbin/zfs} --- 23,33 ---- # Copyright 2009 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # # ! # Copyright (c) 2013 by Delphix. All rights reserved. # . ${STF_TOOLS}/contrib/include/logapi.shlib ZFS=${ZFS:-/usr/sbin/zfs}
*** 2566,2571 **** --- 2566,2587 ---- if (($? != 0)); then return 1 else return 0 fi + } + + # Utility function to determine if a system has multiple cpus. + function is_mp + { + (($(psrinfo -p) > 1)) + } + + # Run the given command as the user provided. + function user_run + { + typeset user=$1 + shift + + eval \$SU \$user -c \"$@\" > /tmp/out 2>/tmp/err + return $? }