On Mon, Aug 18, 2008 at 04:02:26PM -0400, Suvendra Nath Dutta wrote:
>     uid = pw->pw_uid;
>     gid = pw->pw_gid;
>     sprintf(szpath, "/n/circelfs");
>     memset(&qctl, 0, sizeof(qctl));
>     qctl.qc_cmd = LUSTRE_Q_GETQUOTA;
>     qctl.qc_id = gid;
>     qctl.qc_type = UGQUOTA;

In this case, you want to get the quota limit and usage for a particular group,
so qc_type should be set to GRPQUOTA. FYI, we have recently (will be available
in 1.6.6) added a man page for llapi_quotactl:
https://bugzilla.lustre.org/attachment.cgi?id=17864

That being said, we should return an error and no nodes should crash when 
passing
a wrong value for lqc_type. Could you please file a bugzilla ticket for this?
Thanks in advance.

Cheers,
Johann
_______________________________________________
Lustre-discuss mailing list
[email protected]
http://lists.lustre.org/mailman/listinfo/lustre-discuss

Reply via email to