diff options
author | Umer Saleem <[email protected]> | 2024-04-12 03:10:24 +0500 |
---|---|---|
committer | GitHub <[email protected]> | 2024-04-11 15:10:24 -0700 |
commit | a100a195fa490e4a816492be2efa216a6880909f (patch) | |
tree | 7b41b10edd4c13de814cc0304be3246ff2d1bd56 /man/man8 | |
parent | e2035cdbf70e2d4e6f819ce6d5f6a286a152d264 (diff) |
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 <[email protected]>
Reviewed-by: Alexander Motin <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Umer Saleem <[email protected]>
Closes #16015
Diffstat (limited to 'man/man8')
-rw-r--r-- | man/man8/zfs-mount.8 | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/man/man8/zfs-mount.8 b/man/man8/zfs-mount.8 index 35aa187cf..20dbe4d0e 100644 --- a/man/man8/zfs-mount.8 +++ b/man/man8/zfs-mount.8 @@ -43,7 +43,7 @@ .Cm mount .Op Fl Oflv .Op Fl o Ar options -.Fl a Ns | Ns Ar filesystem +.Fl a Ns | Ns Fl R Ar filesystem Ns | Ns Ar filesystem .Nm zfs .Cm unmount .Op Fl fu @@ -61,7 +61,7 @@ Displays all ZFS file systems currently mounted. .Cm mount .Op Fl Oflv .Op Fl o Ar options -.Fl a Ns | Ns Ar filesystem +.Fl a Ns | Ns Fl R Ar filesystem Ns | Ns Ar filesystem .Xc Mount ZFS filesystem on a path described by its .Sy mountpoint @@ -83,6 +83,8 @@ for more information. .It Fl a Mount all available ZFS file systems. Invoked automatically as part of the boot process if configured. +.It Fl R +Mount the specified filesystems along with all their children. .It Ar filesystem Mount the specified filesystem. .It Fl o Ar options |