From mboxrd@z Thu Jan 1 00:00:00 1970 From: Steven Whitehouse Date: Wed, 09 Mar 2011 09:58:11 +0000 Subject: [Cluster-devel] [GFS2 PATCH] - Bug 675944 - gfs2 quota allows exceeding hard limit In-Reply-To: <956492768.330676.1299598842750.JavaMail.root@zmail05.collab.prod.int.phx2.redhat.com> References: <956492768.330676.1299598842750.JavaMail.root@zmail05.collab.prod.int.phx2.redhat.com> Message-ID: <1299664691.2587.0.camel@dolmen> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Hi, On Tue, 2011-03-08 at 10:40 -0500, Abhijith Das wrote: > 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 Now in the -nmw git tree. Thanks, Steve.