On Tue, 12 Sep 2006, Darren J Moffat wrote:

Date: Tue, 12 Sep 2006 10:30:33 +0100
From: Darren J Moffat <[EMAIL PROTECTED]>
To: Jeff A. Earickson <[EMAIL PROTECTED]>
Cc: zfs-discuss@opensolaris.org
Subject: Re: [zfs-discuss] ZFS API (again!), need quotactl(7I)

Jeff A. Earickson wrote:
Hi,

I was looking for the zfs system calls to check zfs quotas from
within C code, analogous to the quotactl(7I) interface for UFS,
and realized that there was nothing similar.  Is anything like this
planned?  Why no public API for ZFS?

Do I start making calls to zfs_prop_get_int(), like in the df
code, to find out what I want?  Will this blow up later?

What is it that you are trying to do here ?

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.

Jeff Earickson
Colby College
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to