zfs-tpm-list
- print dataset tzpfms metadata
zfs-tpm-list
[-H] [-r|-d depth] [-a|-b back-end] [-u|-l] [filesystem|volume]…
zfs-tpm-list(8) lists the following properties on encryption roots:
name
,back-end
: the tzpfms back-end (e.g. "TPM2" for zfs-tpm2-change-key(8) or "TPM1.X" for zfs-tpm1x-change-key(8)),
or "-" if none is configured,keystatus
: "available" or "unavailable",coherent
: "yes" if either both xyz.nabijaczleweli:tzpfms.backend
and xyz.nabijaczleweli:tzpfms.key
are present or missing, "no" otherwise.Incoherent datasets require immediate operator attention, with either the appropriate zfs-tpm*-clear-key program or zfs(8) change-key and zfs(8) inherit — if the key becomes unloaded, they will require restoration from back-up. However, they should never occur, unless something went terribly wrong with the dataset properties.
If no datasets are specified, lists all matching encryption roots.
The default filter is to list all roots managed by tzpfms.
The -a
and -b
OPTIONS can be used to either list all roots or only ones backed by a particular end, respectively.
-H
-r
-d
depth
-a
-b
back-end
-l
-u
$ zfs-tpm-list
NAME BACK-END KEYSTATUS COHERENT
owo/venc TPM2 unavailable yes
owo/enc TPM1.X available yes
$ zfs-tpm-list -ad0
NAME BACK-END KEYSTATUS COHERENT
awa - available yes
$ zfs-tpm-list -b TPM2
NAME BACK-END KEYSTATUS COHERENT
owo/venc TPM2 unavailable yes
$ zfs-tpm-list -ra owo
NAME BACK-END KEYSTATUS COHERENT
owo/venc TPM2 unavailable yes
owo/vtnc - available yes
owo/v nc - available yes
owo/enc TPM1.X available yes
$ zfs-tpm-list -al
NAME BACK-END KEYSTATUS COHERENT
awa - available yes
owo/vtnc - available yes
owo/v nc - available yes
owo/enc TPM1.X available yes
Written by наб <nabijaczleweli@nabijaczleweli.xyz>
To all who support further development, in particular:
<https://todo.sr.ht/~nabijaczleweli/tzpfms>
<~nabijaczleweli/tzpfms@lists.sr.ht>, archived at <https://lists.sr.ht/~nabijaczleweli/tzpfms>