Merge commit 'refs/top-bases/linux-zfs-branch' into linux-zfs-branch

This commit is contained in:
Brian Behlendorf 2009-01-16 14:56:14 -08:00
commit b04e502771
2 changed files with 5 additions and 1 deletions

View File

@ -2198,7 +2198,7 @@ err:
free(paths);
(void) close(base);
#endif
return (-1);
return (0);
}
typedef struct zvol_cb {

View File

@ -62,6 +62,10 @@ while getopts 'hvc:p:' OPTION; do
esac
done
if [ $(id -u) != 0 ]; then
die "Must run as root"
fi
check_config || die "${ERROR}"
. ${ZPOOL_CONFIG}