summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Sandeen <sandeen@fedoraproject.org>2008-10-08 20:57:05 +0000
committerEric Sandeen <sandeen@fedoraproject.org>2008-10-08 20:57:05 +0000
commit9ba2642d8c56873e3951b5983a63c19d4ed5d808 (patch)
tree0db06f798c56480941eb2e30cdeea2398a7395a8
parent39baca9f1c3b67ac122078326f0898f149ccf300 (diff)
downloade2fsprogs-9ba2642d8c56873e3951b5983a63c19d4ed5d808.tar.gz
e2fsprogs-9ba2642d8c56873e3951b5983a63c19d4ed5d808.tar.xz
e2fsprogs-9ba2642d8c56873e3951b5983a63c19d4ed5d808.zip
* Thu Oct 02 2008 Eric Sandeen <sandeen@redhat.com> 1.41.2-2e2fsprogs-1_41_2-2_fc10
- Fix blkid to recognize ext4dev filesystems as ext4-mountable
-rw-r--r--e2fsprogs-fix-blkid.patch31
-rw-r--r--e2fsprogs.spec8
2 files changed, 38 insertions, 1 deletions
diff --git a/e2fsprogs-fix-blkid.patch b/e2fsprogs-fix-blkid.patch
new file mode 100644
index 0000000..4780757
--- /dev/null
+++ b/e2fsprogs-fix-blkid.patch
@@ -0,0 +1,31 @@
+If only ext4 is available (as a module or in /proc/filesystems)
+blkid wasn't properly testing for it, because the time checks
+were backwards and always failed. This caused old ext4dev
+filesystems to fail to mount as ext4. With this patch it works
+fine.
+
+Signed-off-by: Eric Sandeen <sandeen@redhat.com>
+---
+
+Index: e2fsprogs/lib/blkid/probe.c
+===================================================================
+--- e2fsprogs.orig/lib/blkid/probe.c 2008-09-12 10:37:52.000000000 -0500
++++ e2fsprogs/lib/blkid/probe.c 2008-10-08 13:28:42.218001472 -0500
+@@ -243,7 +243,7 @@ static int system_supports_ext4(void)
+ static int ret = -1;
+ time_t now = time(0);
+
+- if (ret != -1 || (last_check - now) < 5)
++ if (ret != -1 || (now - last_check) < 5)
+ return ret;
+ last_check = now;
+ ret = (fs_proc_check("ext4") || check_for_modules("ext4"));
+@@ -256,7 +256,7 @@ static int system_supports_ext4dev(void)
+ static int ret = -1;
+ time_t now = time(0);
+
+- if (ret != -1 || (last_check - now) < 5)
++ if (ret != -1 || (now - last_check) < 5)
+ return ret;
+ last_check = now;
+ ret = (fs_proc_check("ext4dev") || check_for_modules("ext4dev"));
diff --git a/e2fsprogs.spec b/e2fsprogs.spec
index 321ece6..43ad2c7 100644
--- a/e2fsprogs.spec
+++ b/e2fsprogs.spec
@@ -4,7 +4,7 @@
Summary: Utilities for managing the second and third extended (ext2/ext3) filesystems
Name: e2fsprogs
Version: 1.41.2
-Release: 1%{?dist}
+Release: 2%{?dist}
# License based on upstream-modified COPYING file,
# which clearly states "V2" intent.
License: GPLv2
@@ -16,6 +16,7 @@ Source3: uuidd.init
Patch1: e2fsprogs-1.38-etcblkid.patch
Patch2: e2fsprogs-1.40.4-sb_feature_check_ignore.patch
Patch3: e2fsprogs-journal-move.patch
+Patch4: e2fsprogs-fix-blkid.patch
Url: http://e2fsprogs.sourceforge.net/
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@@ -94,6 +95,8 @@ SMP systems.
%patch2 -p1 -b .featurecheck
# Only change the journal placement for ext4, for now.
%patch3 -p1 -b .journalmove
+# Fix blkid to recognize ext4dev as mountable by ext4
+%patch4 -p1 -b .blkid
%build
%configure --enable-elf-shlibs --enable-nls --disable-e2initrd-helper --enable-blkid-devmapper --enable-blkid-selinux
@@ -292,6 +295,9 @@ fi
%dir %attr(2775, uuidd, uuidd) /var/lib/libuuid
%changelog
+* Thu Oct 02 2008 Eric Sandeen <sandeen@redhat.com> 1.41.2-2
+- Fix blkid to recognize ext4dev filesystems as ext4-mountable
+
* Thu Oct 02 2008 Eric Sandeen <sandeen@redhat.com> 1.41.2-1
- New upstream version
- Updated default dir hash (half_md4) for better perf & fewer collisions