From: Steven Whitehouse <swhiteho@redhat.com>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] [GFS2 PATCH] inode size inconsistency
Date: Wed, 27 Jun 2007 17:02:58 +0100 [thread overview]
Message-ID: <1182960178.3386.17.camel@localhost.localdomain> (raw)
In-Reply-To: <46827B73.8040802@redhat.com>
Hi,
Now in the -nmw git tree. Thanks,
Steve.
On Wed, 2007-06-27 at 11:00 -0400, Wendy Cheng wrote:
> This should have been part of the NFS patch #1 but somehow I missed it
> when packaging the patches. It is not a critical issue as the others (I
> hope). RHEL 5.1 31.el5 kernel runs fine without this change.
>
> Our truncate code is chopped into two parts, one for vfs inode changes
> (in vmtruncate()) and one of gfs inode (in gfs2_truncatei()). These two
> operatons are, unfortunately, not atomic. So it could happens that
> vmtruncate() succeeds (inode->i_size is changed) but gfs2_truncatei
> fails (say kernel temporarily out of memory). This would leave gfs inode
> i_di.di_size out of sync with vfs inode i_size. It will later confuse
> gfs2_commit_write() if a write is issued. Last time I checked, it will
> cause file corruption.
>
> -- Wendy
>
prev parent reply other threads:[~2007-06-27 16:02 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-27 15:00 [Cluster-devel] [GFS2 PATCH] inode size inconsistency Wendy Cheng
2007-06-27 16:02 ` Steven Whitehouse [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1182960178.3386.17.camel@localhost.localdomain \
--to=swhiteho@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.