cluster-devel.redhat.com archive mirror
 help / color / mirror / Atom feed
* [Cluster-devel] [GFS2 PATCH] data corruption fix
@ 2007-09-18 13:19 Wendy Cheng
  0 siblings, 0 replies; only message in thread
From: Wendy Cheng @ 2007-09-18 13:19 UTC (permalink / raw)
  To: cluster-devel.redhat.com

* GFS2 has been using i_cache array to store its indirect meta blocks. 
Its flush routine doesn't correctly clean up all the entries. The 
problem would show while multiple nodes do simultaneous writes to the 
same file. Upon glock exclusive lock transfer, if the file is a sparse 
file with large file size where the indirect meta blocks span multiple 
array entries with "zero" entries in between. The flush routine 
prematurely stops the flushing that leaves old (stale) entries around. 
This leads to several nasty issues, including data corruption.
* Fix gfs2_get_block_noalloc checking to correctly return EIO upon 
unmapped buffer.
* Simplify gfs2 code path by disabling gfs2_writepages. The 
implementation currently generates unmapped dirty buffers with mmap 
calls that do not work well with rest of the gfs2 journaling code. Defer 
the writepages implementation to later time frame. All writepage 
function now goes thru gfs2_writepage call with this change.

-- Wendy


-------------- next part --------------
A non-text attachment was scrubbed...
Name: gfs2_meta_fix.patch
Type: text/x-patch
Size: 1821 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/cluster-devel/attachments/20070918/30c59f88/attachment.bin>

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-09-18 13:19 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-18 13:19 [Cluster-devel] [GFS2 PATCH] data corruption fix Wendy Cheng

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).