Re: QUOTA Xlator question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.


[Index of Archives]     [Gluster Users]     [Ceph Users]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux