cmd/zfs: clone: accept -u to not mount newly created datasets

Signed-off-by: Ivan Shapovalov <intelfx@intelfx.name>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Alexander Motin <alexander.motin@TrueNAS.com>
Closes #18080
This commit is contained in:
Ivan Shapovalov
2026-01-05 18:21:56 +01:00
committed by GitHub
parent b9b84445ea
commit dbb3f247ed
5 changed files with 108 additions and 31 deletions
+3 -1
View File
@@ -40,7 +40,7 @@
.Sh SYNOPSIS
.Nm zfs
.Cm clone
.Op Fl p
.Op Fl pu
.Oo Fl o Ar property Ns = Ns Ar value Oc Ns …
.Ar snapshot Ar filesystem Ns | Ns Ar volume
.
@@ -64,6 +64,8 @@ Datasets created in this manner are automatically mounted according to the
property inherited from their parent.
If the target filesystem or volume already exists, the operation completes
successfully.
.It Fl u
Do not mount the newly created file system.
.El
.
.Sh EXAMPLES