Re: [Lustre-discuss] Liblustreapi crash

2008-08-25 Thread Johann Lombardi
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

Re: [Lustre-discuss] Liblustreapi crash

2008-08-21 Thread Suvendra N. Dutta
t: Re: [Lustre-discuss] Liblustreapi crash My first post was code based on Jim Garlick's rquota code. That is what crashed the MDS. Suvendra. On 8/21/08 5:12 AM, "Andreas Dilger" <[EMAIL PROTECTED]> wrote: > On Aug 19, 2008 10:36 -0400, Suvendra Nath Dutta wrote: >

Re: [Lustre-discuss] Liblustreapi crash

2008-08-21 Thread Suvendra Nath Dutta
My first post was code based on Jim Garlick's rquota code. That is what crashed the MDS. Suvendra. On 8/21/08 5:12 AM, "Andreas Dilger" <[EMAIL PROTECTED]> wrote: > On Aug 19, 2008 10:36 -0400, Suvendra Nath Dutta wrote: >> Since this got no response, I wanted to add that fundamentally we just

Re: [Lustre-discuss] Liblustreapi crash

2008-08-21 Thread Andreas Dilger
On Aug 19, 2008 10:36 -0400, Suvendra Nath Dutta wrote: > Since this got no response, I wanted to add that fundamentally we just want > to get group quota limits. So right now we are reduced to calling lfs quota > -g group and then parsing the output of that call to something sensible and > printi

Re: [Lustre-discuss] Liblustreapi crash

2008-08-19 Thread Suvendra Nath Dutta
Since this got no response, I wanted to add that fundamentally we just want to get group quota limits. So right now we are reduced to calling lfs quota -g group and then parsing the output of that call to something sensible and printing to screen. Is this the expected protocol? Any thought on how t

[Lustre-discuss] Liblustreapi crash

2008-08-18 Thread Suvendra Nath Dutta
I am trying to run the Code: #include #include #include #include #include #include #include int main(int argc, char *argv[]) { struct if_quotactl qctl; char szpath[FILENAME_MAX]; struct passwd *pw; uid_t uid; gid_t gid; int rc; pw = getpwuid(geteuid()); if