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);
|
free(paths);
|
||||||
(void) close(base);
|
(void) close(base);
|
||||||
#endif
|
#endif
|
||||||
return (-1);
|
return (0);
|
||||||
}
|
}
|
||||||
|
|
||||||
typedef struct zvol_cb {
|
typedef struct zvol_cb {
|
||||||
|
|
|
@ -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}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue