GFS2: quota allows exceeding hard limit
authorAbhijith Das <adas@redhat.com>
Tue, 8 Mar 2011 15:40:42 +0000 (10:40 -0500)
committerSteven Whitehouse <swhiteho@redhat.com>
Wed, 9 Mar 2011 09:32:44 +0000 (09:32 +0000)
Immediately after being synced to disk, cached quotas are zeroed out and a
subsequent access of the cached quotas results in incorrect zero values. This
meant that gfs2 assumed the actual usage to be the zero (or near-zero) usage
values it found in the cached quotas and comparison against warn/limits never
triggered a quota violation.

This patch adds a new flag QDF_REFRESH that is set after a sync so that the
cached quotas are forcefully refreshed from disk on a subsequent access on
seeing this flag set.

Resolves: rhbz#675944
Signed-off-by: Abhi Das <adas@redhat.com>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>

No differences found