Merge commit 'refs/top-bases/linux-configure-branch' into linux-configure-branch
This commit is contained in:
commit
1d4ad2d62e
|
@ -2198,7 +2198,7 @@ err:
|
|||
free(paths);
|
||||
(void) close(base);
|
||||
#endif
|
||||
return (-1);
|
||||
return (0);
|
||||
}
|
||||
|
||||
typedef struct zvol_cb {
|
||||
|
|
|
@ -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}
|
||||
|
||||
|
|
Loading…
Reference in New Issue