mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 18:40:43 +03:00
Replace libzfs sharing _nfs() and _smb() APIs with protocol lists
With the additional benefit of removing all the _all() functions and treating a NULL list as "all" ‒ the remaining all function is for all /datasets/, which is consistent with the rest of the API Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz> Closes #13165
This commit is contained in:
@@ -1790,8 +1790,8 @@ zpool_do_create(int argc, char **argv)
|
||||
tname ? tname : poolname, ZFS_TYPE_FILESYSTEM);
|
||||
if (pool != NULL) {
|
||||
if (zfs_mount(pool, NULL, 0) == 0) {
|
||||
ret = zfs_shareall(pool);
|
||||
zfs_commit_all_shares();
|
||||
ret = zfs_share(pool, NULL);
|
||||
zfs_commit_shares(NULL);
|
||||
}
|
||||
zfs_close(pool);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user