aboutsummaryrefslogtreecommitdiffstats
path: root/lib/libshare
diff options
context:
space:
mode:
authorChunwei Chen <[email protected]>2022-09-16 13:43:26 -0700
committerGitHub <[email protected]>2022-09-16 13:43:26 -0700
commit1b6f3368dd5b416753178da06cb19c32798671e6 (patch)
tree25a9eb0e28b8feadd9d3457e414459675b60f627 /lib/libshare
parent768eacedef54922962562e601ca2c3366c4bcc4b (diff)
Fix unable to export zpool without nfs-utils
Don't return error in nfs_disable_share when nfs is not available, since it wouldn't have been able to share in the first place. Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Chunwei Chen <[email protected]> Closes #13534 Closes #13800
Diffstat (limited to 'lib/libshare')
-rw-r--r--lib/libshare/os/linux/nfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libshare/os/linux/nfs.c b/lib/libshare/os/linux/nfs.c
index 0d63c989d..c27e5564c 100644
--- a/lib/libshare/os/linux/nfs.c
+++ b/lib/libshare/os/linux/nfs.c
@@ -449,7 +449,7 @@ static int
nfs_disable_share(sa_share_impl_t impl_share)
{
if (!nfs_available())
- return (SA_SYSTEM_ERR);
+ return (SA_OK);
return (nfs_toggle_share(
ZFS_EXPORTS_LOCK, ZFS_EXPORTS_FILE, ZFS_EXPORTS_DIR, impl_share,