On Tue, Sep 12, 2006 at 07:23:00AM -0400, Jeff A. Earickson wrote: > > Modify the dovecot IMAP server so that it can get zfs quota information > to be able to implement the QUOTA feature of the IMAP protocol (RFC 2087). > In this case pull the zfs quota numbers for quoted home directory/zfs > filesystem. Just like what quotactl() would do with UFS. > > I am really surprised that there is no zfslib API to query/set zfs > filesystem properties. Doing a fork/exec just to execute a "zfs get" > or "zfs set" is expensive and inelegant.
The libzfs API will be made public at some point. However, we need to finish implementing the bulk of our planned features before we can feel comfortable with the interfaces. It will take a non-trivial amount of work to clean up all the interfaces as well as document them. It will be done eventually, but I wouldn't expect it any time soon - there are simply too many important things to get done first. If you don't care about unstable interfaces, you're welcome to use them as-is. If you want a stable interface, you are correct that the only way is through invoking 'zfs get' and 'zfs set'. - Eric -- Eric Schrock, Solaris Kernel Development http://blogs.sun.com/eschrock _______________________________________________ zfs-discuss mailing list zfs-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/zfs-discuss