]> git.proxmox.com Git - mirror_zfs.git/commit
zfs userspace: use zfs_path_to_zhandle so argument can be a path
authorAllan Jude <allan@klarasystems.com>
Fri, 25 Sep 2020 21:37:10 +0000 (17:37 -0400)
committerGitHub <noreply@github.com>
Fri, 25 Sep 2020 21:37:10 +0000 (14:37 -0700)
commitcf2667759f4583bddd4b6ce8167e48b041ae1ea3
tree5d824bb6c9054cbea04b06e450f4b1a9610ad8b0
parentacfd2d4641a137a1a22c206597ef951d406a1cf6
zfs userspace: use zfs_path_to_zhandle so argument can be a path

Change zfs userspace subcommand to use zfs_path_to_zhandle() so that
the provided dataset can be a path (/usr) or a dataset (rpool/usr).

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Ryan Moeller <ryan@iXsystems.com>
Signed-off-by: Allan Jude <allan@klarasystems.com>
Closes #8915
cmd/zfs/zfs_main.c
man/man8/zfs-userspace.8