]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add support for zfs mount -R <filesystem>
authorUmer Saleem <usaleem@ixsystems.com>
Thu, 11 Apr 2024 22:10:24 +0000 (03:10 +0500)
committerGitHub <noreply@github.com>
Thu, 11 Apr 2024 22:10:24 +0000 (15:10 -0700)
commita100a195fa490e4a816492be2efa216a6880909f
tree7b41b10edd4c13de814cc0304be3246ff2d1bd56
parente2035cdbf70e2d4e6f819ce6d5f6a286a152d264
Add support for zfs mount -R <filesystem>

This commit adds support for mounting a dataset along with all of
it's children with '-R' flag for zfs mount. There can be scenarios
where we want to mount all datasets under one hierarchy instead of
mounting all datasets present on system with '-a' flag.

'-R' flag should work on all root and non-root datasets. Usage
information and man page has been updated for zfs mount. A test
for verifying the behavior for '-R' flag is also added.

Reviewed-by: Ameer Hamza <ahamza@ixsystems.com>
Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Umer Saleem <usaleem@ixsystems.com>
Closes #16015
cmd/zfs/zfs_main.c
man/man8/zfs-mount.8
tests/runfiles/common.run
tests/runfiles/sanity.run
tests/zfs-tests/tests/Makefile.am
tests/zfs-tests/tests/functional/cli_root/zfs_mount/zfs_mount.cfg
tests/zfs-tests/tests/functional/cli_root/zfs_mount/zfs_mount_recursive.ksh [new file with mode: 0755]