ZFS-TPM-LIST(8) System Manager's Manual ZFS-TPM-LIST(8)

zfs-tpm-listprint dataset tzpfms metadata

zfs-tpm-list [-H] [-r|-d depth] [-a|-b back-end] [-u|-l] [filesystem|volume]…

Lists the following properties on encryption roots:

 
the tzpfms back-end (e.g. TPM2 for zfs-tpm2-change-key(8) or for zfs-tpm1x-change-key(8)), or "-" if none is configured
or
if either both xyz.nabijaczleweli:tzpfms.backend and xyz.nabijaczleweli:tzpfms.key are present or missing, otherwise

Incoherent datasets require immediate operator attention, with either the appropriate zfs-tpm*-clear-key program or zfs change-key and zfs 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. -ab can be used to either list all roots or only ones backed by a particular end, respectively.

Scripting mode — do not print headers and separate fields by a single tab instead of columnating with spaces.

Recurse into all descendants of specified datasets.
depth
Recurse at most depth datasets deep. Default: .

List all encryption roots, even ones not managed by tzpfms.
back-end
List only encryption roots with tzpfms back-end back-end.

List only encryption roots whose keys are available.
List only encryption roots whose keys are unavailable.

$ 
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

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.

https://git.sr.ht/~nabijaczleweli/tzpfms

October 17, 2021 tzpfms 0.1-7