[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Gluster-devel] QUOTA Xlator question
From: |
Anand Avati |
Subject: |
Re: [Gluster-devel] QUOTA Xlator question |
Date: |
Mon, 21 Jan 2008 05:44:01 +0530 |
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.