How can I list out all the properties available for a filesystem? Banging away in man zfs seems to be going nowhere pretty fast.
James C. McPherson
2009-Jun-21 23:46 UTC
[zfs-discuss] zfs find list of properties per dataset
On Sun, 21 Jun 2009 18:28:56 -0500 Harry Putnam <reader at newsguy.com> wrote:> How can I list out all the properties available for a filesystem? > > Banging away in man zfs seems to be going nowhere pretty fast.Is "zfs get all datasetname" not helping? $ zfs get all rpool NAME PROPERTY VALUE SOURCE rpool type filesystem - rpool creation Wed May 6 21:51 2009 - rpool used 85.9G - rpool available 115G - rpool referenced 81.5K - rpool compressratio 1.00x - rpool mounted yes - rpool quota none default rpool reservation none default rpool recordsize 128K default rpool mountpoint /rpool default rpool sharenfs off default rpool checksum on default rpool compression off default rpool atime on default rpool devices on default rpool exec on default rpool setuid on default rpool readonly off default rpool zoned off default rpool snapdir hidden default rpool aclmode groupmask default rpool aclinherit restricted default rpool canmount on default rpool shareiscsi off default rpool xattr on default rpool copies 1 default rpool version 3 - rpool utf8only off - rpool normalization none - rpool casesensitivity sensitive - rpool vscan off default rpool nbmand off default rpool sharesmb off default rpool refquota none default rpool refreservation none default rpool primarycache all default rpool secondarycache all default rpool usedbysnapshots 0 - rpool usedbydataset 81.5K - rpool usedbychildren 85.9G - rpool usedbyrefreservation 0 - rpool org.opensolaris.caiman:install ready local James C. McPherson -- Senior Kernel Software Engineer, Solaris Sun Microsystems http://blogs.sun.com/jmcp http://www.jmcp.homeunix.com/blog Kernel Conference Australia - http://au.sun.com/sunnews/events/2009/kernel
"James C. McPherson" <James.McPherson at Sun.COM> writes: [...]> Is "zfs get all datasetname" not helping?[...] Gack... quite the reverse
James C. McPherson
2009-Jun-21 23:54 UTC
[zfs-discuss] zfs find list of properties per dataset
On Sun, 21 Jun 2009 18:47:30 -0500 Harry Putnam <reader at newsguy.com> wrote:> "James C. McPherson" <James.McPherson at Sun.COM> writes: > > [...] > > > Is "zfs get all datasetname" not helping? > > [...] > > Gack... quite the reverseyour original question was somewhat vague - could you clarify what it is you need to find out? James -- Senior Kernel Software Engineer, Solaris Sun Microsystems http://blogs.sun.com/jmcp http://www.jmcp.homeunix.com/blog Kernel Conference Australia - http://au.sun.com/sunnews/events/2009/kernel
"James C. McPherson" <James.McPherson at Sun.COM> writes:> > your original question was somewhat vague - could you clarify > what it is you need to find out? >I wanted to see a list of all the properties available to zfs on a filesystem. Your answer was very helpful... thanks.... My quick reply may not have conveyed that I was happy with your answer and that it helps a lot. The actual exact thing I was looking into was where snapdir was hidden and where visible. But I didn''t know the name of the option (snapdir). Once I saw the full list... of course it was obvious.
Richard Elling
2009-Jun-22 03:49 UTC
[zfs-discuss] zfs find list of properties per dataset
Harry Putnam wrote:> "James C. McPherson" <James.McPherson at Sun.COM> writes: > > >> your original question was somewhat vague - could you clarify >> what it is you need to find out? >> >> > > I wanted to see a list of all the properties available to zfs on a > filesystem. >NB, the user and group quotas are stored as properties, but "get all" does not return them. So it is not a true statement that "get all" returns all of the properties. -- richard
Darren J Moffat
2009-Jun-22 08:59 UTC
[zfs-discuss] zfs find list of properties per dataset
Richard Elling wrote:> Harry Putnam wrote: >> "James C. McPherson" <James.McPherson at Sun.COM> writes: >> >> >>> your original question was somewhat vague - could you clarify >>> what it is you need to find out? >>> >>> >> >> I wanted to see a list of all the properties available to zfs on a >> filesystem. >> > > NB, the user and group quotas are stored as properties, but "get all" does > not return them. So it is not a true statement that "get all" returns > all of > the properties.There are are other "hidden" properties too. ''zfs get all'' should be returning the complete list of things that can be manipulated with ''zfs set'' (subject to appropriate privilege or delegation). Other things may be stored as a property but that is an implementation artefact. -- Darren J Moffat
[...] Richard wrote:>> NB, the user and group quotas are stored as properties, but "get all" does >> not return them. So it is not a true statement that "get all" >> returns all of >> the properties.Darren M responded:> There are are other "hidden" properties too. > > ''zfs get all'' should be returning the complete list of things that can > be manipulated with ''zfs set'' (subject to appropriate privilege or > delegation). > > Other things may be stored as a property but that is an implementation > artefact.Not sure I''m getting your meaning here. Are you saying that `get all'' does return all properties that can be manipulated with `zfs set''? And that these `hidden'' properties cannot be manipulated by `zfs set''?
Darren J Moffat
2009-Jun-22 15:14 UTC
[zfs-discuss] zfs find list of properties per dataset
Harry Putnam wrote:> [...] > > Richard wrote: >>> NB, the user and group quotas are stored as properties, but "get all" does >>> not return them. So it is not a true statement that "get all" >>> returns all of >>> the properties. > > Darren M responded: >> There are are other "hidden" properties too. >> >> ''zfs get all'' should be returning the complete list of things that can >> be manipulated with ''zfs set'' (subject to appropriate privilege or >> delegation). >> >> Other things may be stored as a property but that is an implementation >> artefact. > > Not sure I''m getting your meaning here. Are you saying that `get all'' > does return all properties that can be manipulated with `zfs set''?Yes.> And that these `hidden'' properties cannot be manipulated by `zfs set''?They should not be attempted to be manipulated via zfs set, they are hidden for a reason because they are private implementation details. For example there is a public and settable via ''zfs set'' shareiscsi property but there is also a hidden iscsioptions property. Similarly there is a private useraccounting property but the interface to user space accounting is via the ''zfs userspace'' and ''zfs groupspace'' commands. -- Darren J Moffat