My current solution is a -d option that takes a colon set of aruments min:max 
giving the minimum and maximum depth so 

zfs list -d 1:1 tank

behaves like zfs list -c is described and only lists the direct children of 
tank.  

zfs list -d 1: tank

Will list all the descendants of tank

zfs list -d :1 tank

lists tank and it's direct children

I would propose that 

zfs list -d 1 tank

be short hand for "zfs list -d :1 tank".

This seems to give all the functionality and a bit more of both options with 
out adding two flags. 

--chris
-- 
This message posted from opensolaris.org
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss
  • [zfs-discuss]... Chris Gerhard
    • Re: [zfs... Richard Morris - Sun Microsystems - Burlington United States
      • Re: ... Mike Futerko
        • ... Richard Morris - Sun Microsystems - Burlington United States
      • Re: ... Tim Foster
        • ... Richard Morris - Sun Microsystems - Burlington United States
          • ... Will Murnane
            • ... Ross
              • ... Richard Morris - Sun Microsystems - Burlington United States
                • ... Ross Smith
          • ... Chris Gerhard

Reply via email to