|
Description
|
There's no easy way to show all snapshots of a given dataset from the command line,
other than:
zfs list -r -t filesystem,snapshot rpool | grep rpool@
Having a depth argument to zfs list might be neat for this purpose, and it
might turn out to be useful elsewhere too. For example:
zfs list -r --depth 0 -t snapshot rpool
to show immediate snapshots of rpool,
zfs list -r --depth 1 -t snapshot rpool
to show snapshots of rpool and it's immediate children
zfs list -r --depth 1 -t filesystem rpool
to show rpool and it's child filesystems.
mmus suggested the synposis should be:
"zfs command too shallow; needs some depth" :-)
|