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

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

View File

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

View File

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