rpms/e2fsprogs/devel e2fpsrogs-1.41.12-EOFBLOCKS-test.patch, NONE, 1.1 e2fsprogs.spec, 1.164, 1.165

Eric Sandeen sandeen at fedoraproject.org
Thu May 20 19:20:32 UTC 2010


Author: sandeen

Update of /cvs/pkgs/rpms/e2fsprogs/devel
In directory cvs01.phx2.fedoraproject.org:/tmp/cvs-serv312

Modified Files:
	e2fsprogs.spec 
Added Files:
	e2fpsrogs-1.41.12-EOFBLOCKS-test.patch 
Log Message:
* Wed May 19 2010 Eric Sandeen <sandeen at redhat.com> 1.41.12-2
- Fix fsck thinko in 1.41.12 release


e2fpsrogs-1.41.12-EOFBLOCKS-test.patch:
 pass1.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- NEW FILE e2fpsrogs-1.41.12-EOFBLOCKS-test.patch ---
From: Eric Sandeen <sandeen at redhat.com>
Date: Wed, 19 May 2010 18:20:13 +0000 (-0500)
Subject: e2fsck: correct test for EOFBLOCKS
X-Git-Url: http://git.kernel.org/?p=fs%2Fext2%2Fe2fsprogs.git;a=commitdiff_plain;h=ae2272f8459f75c064b2644320db4ec5213d40a9

e2fsck: correct test for EOFBLOCKS

This test, added to e2fsprogs-1.41.12, is backwards.

If EOFBLOCKS is set, then the size -should- be less than
the last physical block...

xfstests 013 caught this.

Signed-off-by: Eric Sandeen <sandeen at redhat.com>
Signed-off-by: Theodore Ts'o <tytso at mit.edu>
---

diff --git a/e2fsck/pass1.c b/e2fsck/pass1.c
index c35937f..4bf80d2 100644
--- a/e2fsck/pass1.c
+++ b/e2fsck/pass1.c
@@ -2013,7 +2013,7 @@ static void check_blocks(e2fsck_t ctx, struct problem_context *pctx,
 		 * doesn't need to be.
 		 */
 		if ((inode->i_flags & EXT4_EOFBLOCKS_FL) &&
-		    (size <= (((__u64)pb.last_block + 1) * fs->blocksize))) {
+		    (size >= (((__u64)pb.last_block + 1) * fs->blocksize))) {
 			pctx->blkcount = pb.last_block;
 			if (fix_problem(ctx, PR_1_EOFBLOCKS_FL_SET, pctx)) {
 				inode->i_flags &= ~EXT4_EOFBLOCKS_FL;



Index: e2fsprogs.spec
===================================================================
RCS file: /cvs/pkgs/rpms/e2fsprogs/devel/e2fsprogs.spec,v
retrieving revision 1.164
retrieving revision 1.165
diff -u -p -r1.164 -r1.165
--- e2fsprogs.spec	18 May 2010 04:46:20 -0000	1.164
+++ e2fsprogs.spec	20 May 2010 19:20:32 -0000	1.165
@@ -4,7 +4,7 @@
 Summary: Utilities for managing ext2, ext3, and ext4 filesystems
 Name: e2fsprogs
 Version: 1.41.12
-Release: 1%{?dist}
+Release: 2%{?dist}
 
 # License tags based on COPYING file distinctions for various components
 License: GPLv2
@@ -12,7 +12,8 @@ Group: System Environment/Base
 Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
 Source1: ext2_types-wrapper.h
 
-Patch2: e2fsprogs-1.40.4-sb_feature_check_ignore.patch
+Patch1: e2fsprogs-1.40.4-sb_feature_check_ignore.patch
+Patch2: e2fpsrogs-1.41.12-EOFBLOCKS-test.patch
 
 Url: http://e2fsprogs.sourceforge.net/
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@@ -134,7 +135,10 @@ It was originally inspired by the Multic
 # ignore some flag differences on primary/backup sb feature checks
 # mildly unsafe but 'til I get something better, avoid full fsck
 # after an selinux install...
-%patch2 -p1 -b .featurecheck
+%patch1 -p1 -b .featurecheck
+
+# Test for EOFBLOCKS was backwards
+%patch2 -p1 -b .EOFBLOCKS
 
 %build
 %configure --enable-elf-shlibs --enable-nls --disable-uuidd --disable-fsck \
@@ -294,6 +298,9 @@ exit 0
 %{_libdir}/pkgconfig/ss.pc
 
 %changelog
+* Wed May 19 2010 Eric Sandeen <sandeen at redhat.com> 1.41.12-2
+- Fix fsck thinko in 1.41.12 release
+
 * Mon May 17 2010 Eric Sandeen <sandeen at redhat.com> 1.41.12-1
 - New upstream version
 



More information about the scm-commits mailing list