]> git.proxmox.com Git - mirror_zfs.git/blobdiff - lib/libzfs/libzfs_mount.c
Relax error reporting in zpool import and zpool split
[mirror_zfs.git] / lib / libzfs / libzfs_mount.c
index 5d1fe651c97e4b8637fe5b7744f605a188e9b522..b38ad88096b2405ce07fc70954029b3603d0cd3d 100644 (file)
@@ -1300,7 +1300,7 @@ zpool_enable_datasets(zpool_handle_t *zhp, const char *mntopts, int flags)
        zfs_foreach_mountpoint(zhp->zpool_hdl, cb.cb_handles, cb.cb_used,
            zfs_mount_one, &ms, B_TRUE);
        if (ms.ms_mntstatus != 0)
-               ret = ms.ms_mntstatus;
+               ret = EZFS_MOUNTFAILED;
 
        /*
         * Share all filesystems that need to be shared. This needs to be
@@ -1311,7 +1311,7 @@ zpool_enable_datasets(zpool_handle_t *zhp, const char *mntopts, int flags)
        zfs_foreach_mountpoint(zhp->zpool_hdl, cb.cb_handles, cb.cb_used,
            zfs_share_one, &ms, B_FALSE);
        if (ms.ms_mntstatus != 0)
-               ret = ms.ms_mntstatus;
+               ret = EZFS_SHAREFAILED;
        else
                zfs_commit_shares(NULL);