[kernel] r12349 - in dists/trunk/redhat-cluster/redhat-cluster/debian: . patches

Frederik Schüler fs at alioth.debian.org
Mon Oct 20 07:53:47 UTC 2008


Author: fs
Date: Mon Oct 20 07:53:46 2008
New Revision: 12349

Log:
Fix gfs1 filesystem corruption. (Closes: #502081)


Added:
   dists/trunk/redhat-cluster/redhat-cluster/debian/patches/02_gfs-kernel-fix.dpatch   (contents, props changed)
Modified:
   dists/trunk/redhat-cluster/redhat-cluster/debian/changelog
   dists/trunk/redhat-cluster/redhat-cluster/debian/patches/00list

Modified: dists/trunk/redhat-cluster/redhat-cluster/debian/changelog
==============================================================================
--- dists/trunk/redhat-cluster/redhat-cluster/debian/changelog	(original)
+++ dists/trunk/redhat-cluster/redhat-cluster/debian/changelog	Mon Oct 20 07:53:46 2008
@@ -1,3 +1,9 @@
+redhat-cluster (2.20080801-3) unstable; urgency=high
+
+  * Fix gfs1 filesystem corruption. (Closes: #502081)
+
+ -- Frederik Schüler <fs at debian.org>  Mon, 20 Oct 2008 09:49:12 +0200
+
 redhat-cluster (2.20080801-2) unstable; urgency=high
 
   * Fix alpha FTBFS.

Modified: dists/trunk/redhat-cluster/redhat-cluster/debian/patches/00list
==============================================================================
--- dists/trunk/redhat-cluster/redhat-cluster/debian/patches/00list	(original)
+++ dists/trunk/redhat-cluster/redhat-cluster/debian/patches/00list	Mon Oct 20 07:53:46 2008
@@ -1 +1,2 @@
 01_qdisk-uninitialized.dpatch
+02_gfs-kernel-fix.dpatch

Added: dists/trunk/redhat-cluster/redhat-cluster/debian/patches/02_gfs-kernel-fix.dpatch
==============================================================================
--- (empty file)
+++ dists/trunk/redhat-cluster/redhat-cluster/debian/patches/02_gfs-kernel-fix.dpatch	Mon Oct 20 07:53:46 2008
@@ -0,0 +1,28 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 02_gfs-kernel-fix.dpatch by Frederik Schüler <fs at debian.org>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: gfs-kernel: bz 458765 - In linux-2.6.26 / 2.03.06, GFS1 can't create more than 4kb file
+## DP: git commit e85d18d96a209bd05688045cb85cecc2df928ab5
+## DP: Author: Abhijith Das <adas at redhat.com>
+
+ at DPATCH@
+diff --git a/gfs-kernel/src/gfs/ops_address.c b/gfs-kernel/src/gfs/ops_address.c
+index 98c3384..0a9c7cd 100644
+--- a/gfs-kernel/src/gfs/ops_address.c
++++ b/gfs-kernel/src/gfs/ops_address.c
+@@ -379,9 +379,14 @@ gfs_commit_write(struct file *file, struct page *page,
+ 		if (inode->i_size < file_size)
+ 			i_size_write(inode, file_size);
+ 	} else {
++		loff_t pos = ((loff_t)page->index << PAGE_CACHE_SHIFT) + to;
+ 		error = block_commit_write(page, from, to);
+ 		if (error)
+ 			goto fail;
++		if (pos > inode->i_size) {
++			i_size_write(inode, pos);
++			mark_inode_dirty(inode);
++		}
+ 	}
+ 
+ 	ip->gfs_file_aops.commit_write = NULL;



More information about the Kernel-svn-changes mailing list