You want zfs_get_user_props(), which will return an nvlist of all user properties. With the caveat that it's an unstable interface, of course ;-)
- Eric On Wed, Oct 03, 2007 at 01:46:04PM -0700, J Duff wrote: > How do I access the value of a user property from within my version of the > kernel code? > > For example, I am using a user property named ?myscope:myprop?. I can set the > user property via the command line as follows: > > zfs set myscope:myprop=2 mypool/myfs > > I can retrieve the user property from the command line as follows: > > zfs get myscope:myprop mypool/myfs > > But? how do I access the user property from within my version of the kernel > code? I have looked at the zfs_get_prop(?), and zfs_get_prop_name(?) > routines, but these seem to apply to properties which are not user properties. > > Any help you can give would be appreciated. > > Duff > -- > This messages posted from opensolaris.org > _______________________________________________ > zfs-code mailing list > zfs-code at opensolaris.org > http://mail.opensolaris.org/mailman/listinfo/zfs-code -- Eric Schrock, Solaris Kernel Development http://blogs.sun.com/eschrock