rpms/kernel/devel linux-2.6-ext4-root-inode-xattrs.patch, NONE, 1.1 kernel.spec, 1.394, 1.395

Eric Sandeen (sandeen) fedora-extras-commits at redhat.com
Wed Jan 30 15:01:58 UTC 2008


Author: sandeen

Update of /cvs/pkgs/rpms/kernel/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv4159

Modified Files:
	kernel.spec 
Added Files:
	linux-2.6-ext4-root-inode-xattrs.patch 
Log Message:
* Wed Jan 30 2008 Eric Sandeen <sandeen at redhat.com>
- Allow xattrs in body of root ext4 inode (#429857)
  Should fix selinux installs.


linux-2.6-ext4-root-inode-xattrs.patch:

--- NEW FILE linux-2.6-ext4-root-inode-xattrs.patch ---
Index: linux-2.6.24.noarch/fs/ext4/inode.c
===================================================================
--- linux-2.6.24.noarch.orig/fs/ext4/inode.c
+++ linux-2.6.24.noarch/fs/ext4/inode.c
@@ -2750,13 +2750,7 @@ void ext4_read_inode(struct inode * inod
 		ei->i_data[block] = raw_inode->i_block[block];
 	INIT_LIST_HEAD(&ei->i_orphan);
 
-	if (inode->i_ino >= EXT4_FIRST_INO(inode->i_sb) + 1 &&
-	    EXT4_INODE_SIZE(inode->i_sb) > EXT4_GOOD_OLD_INODE_SIZE) {
-		/*
-		 * When mke2fs creates big inodes it does not zero out
-		 * the unused bytes above EXT4_GOOD_OLD_INODE_SIZE,
-		 * so ignore those first few inodes.
-		 */
+	if (EXT4_INODE_SIZE(inode->i_sb) > EXT4_GOOD_OLD_INODE_SIZE) {
 		ei->i_extra_isize = le16_to_cpu(raw_inode->i_extra_isize);
 		if (EXT4_GOOD_OLD_INODE_SIZE + ei->i_extra_isize >
 		    EXT4_INODE_SIZE(inode->i_sb)) {


Index: kernel.spec
===================================================================
RCS file: /cvs/pkgs/rpms/kernel/devel/kernel.spec,v
retrieving revision 1.394
retrieving revision 1.395
diff -u -r1.394 -r1.395
--- kernel.spec	30 Jan 2008 02:14:50 -0000	1.394
+++ kernel.spec	30 Jan 2008 15:01:04 -0000	1.395
@@ -653,6 +653,7 @@
 Patch2100: linux-2.6-ext4-jbd2-support-patch-queue.patch
 Patch2101: linux-2.6-ext4-jbd2-patch-queue.patch
 Patch2102: linux-2.6-ext4-extent-mount-check.patch
+Patch2103: linux-2.6-ext4-root-inode-xattrs.patch
 
 # linux1394 git patches
 Patch2200: linux-2.6-firewire-git-update.patch
@@ -1185,9 +1186,13 @@
 ApplyPatch linux-2.6-git-initial-r500-drm.patch
 
 # ext4/jbd2 patches (and support) headed for 2.6.25
+# These are now in Linus's 2.6.24-git7
 ApplyPatch linux-2.6-ext4-jbd2-support-patch-queue.patch
 ApplyPatch linux-2.6-ext4-jbd2-patch-queue.patch
+# Allow xattrs in-inode on root ext4 inode (also slated for 2.6.25)
+ApplyPatch linux-2.6-ext4-root-inode-xattrs.patch
 # Temporary safety valve to not mount ext3 as ext4 accidentally
+# Will be replaced by "production fs" flag patch upstream.
 ApplyPatch linux-2.6-ext4-extent-mount-check.patch
 
 # linux1394 git patches
@@ -1771,6 +1776,10 @@
 %kernel_variant_files -a /%{image_install_path}/xen*-%{KVERREL} -e /etc/ld.so.conf.d/kernelcap-%{KVERREL}.conf %{with_xen} xen
 
 %changelog
+* Wed Jan 30 2008 Eric Sandeen <sandeen at redhat.com>
+- Allow xattrs in body of root ext4 inode (#429857)
+  Should fix selinux installs.
+
 * Tue Jan 29 2008 Roland McGrath <roland at redhat.com>
 - Fix i686 exec-shield vs fixmap vDSO (vm.vdso_enabled=2). (#427641)
 




More information about the fedora-extras-commits mailing list