Adds the -p option to zfs holds

This allows for printing a machine-readable, accurate to the second,
hold creation time in the form of a unix epoch timestamp.

Additionally, updates relevant documentation and man pages accordingly.

Reviewed-by: Allan Jude <allan@klarasystems.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Mohamed Tawfik <m_tawfik@aucegypt.edu>
Closes #13690
Closes #14152
This commit is contained in:
Mohamed Tawfik
2022-11-08 20:08:21 +02:00
committed by GitHub
parent ecbf02791f
commit 41715771b5
2 changed files with 32 additions and 11 deletions
+4 -2
View File
@@ -43,7 +43,7 @@
.Ar tag Ar snapshot Ns …
.Nm zfs
.Cm holds
.Op Fl rH
.Op Fl rHp
.Ar snapshot Ns …
.Nm zfs
.Cm release
@@ -76,7 +76,7 @@ of all descendent file systems.
.It Xo
.Nm zfs
.Cm holds
.Op Fl rH
.Op Fl rHp
.Ar snapshot Ns …
.Xc
Lists all existing user references for the given snapshot or snapshots.
@@ -86,6 +86,8 @@ Lists the holds that are set on the named descendent snapshots, in addition to
listing the holds on the named snapshot.
.It Fl H
Do not print headers, use tab-delimited output.
.It Fl p
Prints holds timestamps as unix epoch timestamps.
.El
.It Xo
.Nm zfs