[Gluster-devel] QUOTA Xlator question

Anand Avati avati at zresearch.com
Mon Jan 21 00:14:01 UTC 2008


Comments inline.


> - notify works, future plannings on doing "du -chs" like ops on init for
> accounting previous run files.
>
> - statfs return correct values forcing scheduler's to choose other nodes
> on quota hit
>
> - I can account for data blocks write ops on write_cbk ops.
>
> On unlink my plan is:
>         place a call to stat for calculating file size, place
> pre_unlink_stat_cbk for return
>         on pre_unlink_stat_cbk copy buf->st_size on a calloc'ed
> *int32_t  and place it on frame ->local
>                 and then put a call to unlink downwards for delete file,
> place unlink_cbk for return
>         on successfull unlink_cbk will account for freed bytes
> (frame->local) and return (unwind) for parent.


why not do a fresh statfs()  instead of a stat() ? I am assuming this is for
limiting overall size and not per-user or per-directory.

avati

-- 
If I traveled to the end of the rainbow
As Dame Fortune did intend,
Murphy would be there to tell me
The pot's at the other end.



More information about the Gluster-devel mailing list