OpenSolaris

Printable Version Enter a New Search
Bug ID 6762432
Synopsis zfs list --depth
State 10-Fix Delivered (Fix available in build)
Category:Subcategory utility:zfs
Keywords rtiq_reviewed
Responsible Engineer Chris Gerhard
Reported Against
Duplicate Of
Introduced In
Commit to Fix snv_114
Fixed In snv_114
Release Fixed solaris_nevada(snv_114) , solaris_10u8(s10u8_03) (Bug ID:2178553)
Related Bugs 6352014 , 6828265
Submit Date 22-October-2008
Last Update Date 6-May-2009
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" :-)
Work Around
N/A
Comments
N/A