diff options
author | наб <[email protected]> | 2022-02-28 15:46:25 +0100 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2022-05-12 09:26:38 -0700 |
commit | 471e9a108e51e92ef645223efcde59c8ab1b9db7 (patch) | |
tree | 1cb72ef46f10a08fe1eca1451f87031103cf4645 /lib/libzfs/libzfs_changelist.c | |
parent | 21d976a62119d3442a0b83693b96f74ac6d0ff5b (diff) |
Publish libshare protocols, use enum-based API
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Ahelenia Ziemiańska <[email protected]>
Closes #13165
Diffstat (limited to 'lib/libzfs/libzfs_changelist.c')
-rw-r--r-- | lib/libzfs/libzfs_changelist.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libzfs/libzfs_changelist.c b/lib/libzfs/libzfs_changelist.c index 5441864c5..a70c7424b 100644 --- a/lib/libzfs/libzfs_changelist.c +++ b/lib/libzfs/libzfs_changelist.c @@ -345,7 +345,7 @@ changelist_rename(prop_changelist_t *clp, const char *src, const char *dst) * unshare all the datasets in the list. */ int -changelist_unshare(prop_changelist_t *clp, const zfs_share_proto_t *proto) +changelist_unshare(prop_changelist_t *clp, const enum sa_protocol *proto) { prop_changenode_t *cn; uu_avl_walk_t *walk; @@ -363,7 +363,8 @@ changelist_unshare(prop_changelist_t *clp, const zfs_share_proto_t *proto) ret = -1; } - zfs_commit_proto(proto); + for (const enum sa_protocol *p = proto; *p != SA_NO_PROTOCOL; ++p) + sa_commit_shares(*p); uu_avl_walk_end(walk); return (ret); |