> Hi everyone, please CC any replies as I'm not on the list.
>
> I've just started using Disk Quotas with Redhat 6.2, and 2.2.19 kernel, ext2.
>
> Everything is working ok except I notice an anomoly - if I have an apache
> log file (which is kept open while apache is running) which is owned by a
> normal user account, and I chown it to root, the quotas are not updated to
> reflect the fact that the user who used to own the file should have less
> space "used" from their quota. There should be a decrease in the amount of
> space used in their quota by the size of the file.
>
> If I then chown the file back to them again there *is* an increase in space
> used on their quota. chowning the file back to root again a second time
> *does* cause a decrease in space used from their quota, but only back to
> the previous incorrect amount.
>
> If I then run quotacheck -avug to force a manual refresh of all the quotas,
> the discrepancy is corrected.
Hmm.. Strange. It looks like a bug in quota code. I'll try to reproduce it...
> Whats going on here ? Is the quota code buggy ? Is this something which has
> been fixed in 2.4 ?
I have no report of such bug in 2.4 :).
Honza
-- Jan Kara <jack@suse.cz> SuSE CR Labs - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/