mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 02:27:36 +03:00
Add 'zfs umount -u' for encrypted datasets
This patch adds the ability for the user to unload keys for datasets as they are being unmounted. This is analogous to 'zfs mount -l'. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Alek Pinchuk <apinchuk@datto.com> Signed-off-by: Tom Caputi <tcaputi@datto.com> Closes: #8917 Closes: #8952
This commit is contained in:
committed by
Brian Behlendorf
parent
679b0f2abf
commit
765d1f0644
+8
-5
@@ -182,7 +182,7 @@
|
||||
.Fl a | Ar filesystem
|
||||
.Nm
|
||||
.Cm unmount
|
||||
.Op Fl f
|
||||
.Op Fl fu
|
||||
.Fl a | Ar filesystem Ns | Ns Ar mountpoint
|
||||
.Nm
|
||||
.Cm share
|
||||
@@ -3462,7 +3462,7 @@ Attempt to force mounting of all filesystems, even those that couldn't normally
|
||||
.It Xo
|
||||
.Nm
|
||||
.Cm unmount
|
||||
.Op Fl f
|
||||
.Op Fl fu
|
||||
.Fl a | Ar filesystem Ns | Ns Ar mountpoint
|
||||
.Xc
|
||||
Unmounts currently mounted ZFS file systems.
|
||||
@@ -3470,13 +3470,16 @@ Unmounts currently mounted ZFS file systems.
|
||||
.It Fl a
|
||||
Unmount all available ZFS file systems.
|
||||
Invoked automatically as part of the shutdown process.
|
||||
.It Fl f
|
||||
Forcefully unmount the file system, even if it is currently in use.
|
||||
.El
|
||||
.It Fl u
|
||||
Unload keys for any encryption roots unmounted by this command.
|
||||
.El
|
||||
.It Ar filesystem Ns | Ns Ar mountpoint
|
||||
Unmount the specified filesystem.
|
||||
The command can also be given a path to a ZFS file system mount point on the
|
||||
system.
|
||||
.It Fl f
|
||||
Forcefully unmount the file system, even if it is currently in use.
|
||||
.El
|
||||
.It Xo
|
||||
.Nm
|
||||
.Cm share
|
||||
|
||||
Reference in New Issue
Block a user