On Thu, Jan 14, 2010 at 12:19:48PM +1100, Dave Chinner wrote:
> > Tested by running the quota_nld daemon while running the xfstest quota
> > tests and observing the warnings. I'll see how I can get a more formal
> > testcase for it written.
> Sounds like it needs something similar to the dmapi event listeners
> we use for testing that the dmapi events are generated correctly....
That's what quota_nld does, just need to tie it up properly.
> This appears to send "over block quota" warnings even when
> the error is caused by the number of inodes going over limit.
> For inode count warnings we should be sending QUOTA_NL_IHARDWARN or
> QUOTA_NL_ISOFTWARN. That could be easily done if the "hard"
> parameter is changed to the type of warning which is set up
> in the calling function.
> We could probably even return the grace limit expired versions
> as well when over the soft limits with a slight change to the
> soft limit warning logic as well...
Indeed, I did copy this from gfs2 which only does the block quotas
and no differciated soft warnings. I'll respin it.