summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Sandeen <sandeen@fedoraproject.org>2010-07-13 21:31:56 +0000
committerEric Sandeen <sandeen@fedoraproject.org>2010-07-13 21:31:56 +0000
commitbcad33d4cfceb7632b3596a0111368542e589158 (patch)
tree73ef3f17d044fc17a2bafc9be7e5018d41ef3ca0
parent41314dec3211f05a524584f1ca69468df053a3d2 (diff)
downloade2fsprogs-bcad33d4cfceb7632b3596a0111368542e589158.tar.gz
e2fsprogs-bcad33d4cfceb7632b3596a0111368542e589158.tar.xz
e2fsprogs-bcad33d4cfceb7632b3596a0111368542e589158.zip
* Mon Jul 13 2010 Eric Sandeen <sandeen@redhat.com> 1.41.12-5e2fsprogs-1_41_12-5_fc14
- Relax fsck requirements for resize2fs -P
-rw-r--r--e2fsprogs-1.41.12-relax-resize2fs-P.patch33
-rw-r--r--e2fsprogs.spec12
2 files changed, 44 insertions, 1 deletions
diff --git a/e2fsprogs-1.41.12-relax-resize2fs-P.patch b/e2fsprogs-1.41.12-relax-resize2fs-P.patch
new file mode 100644
index 0000000..3fa25c7
--- /dev/null
+++ b/e2fsprogs-1.41.12-relax-resize2fs-P.patch
@@ -0,0 +1,33 @@
+(sent upstream, not yet merged/committed)
+
+[PATCH] resize2fs: relax requirements for -P output a bit
+
+Requiring an immediate pre-fsck before printing a minimum
+resize size seems a bit draconian; if the fs isn't clean or marked
+with error, then certainly, but for an informational minimum
+size, I don't think we need to require a fsck since last mount.
+
+I had simply copied the checks from the actual resize path,
+previously.
+
+Installers use this option (-P) to gather minimum resize info,
+and requiring an actual fsck before use just seems to go too far.
+
+Signed-off-by: Eric Sandeen <sandeen@redhat.com>
+---
+
+diff --git a/resize/main.c b/resize/main.c
+index 7c4f4dd..7d8b287 100644
+--- a/resize/main.c
++++ b/resize/main.c
+@@ -345,8 +345,7 @@ int main (int argc, char ** argv)
+ min_size = calculate_minimum_resize_size(fs);
+
+ if (print_min_size) {
+- if (!force && ((fs->super->s_lastcheck < fs->super->s_mtime) ||
+- (fs->super->s_state & EXT2_ERROR_FS) ||
++ if (!force && ((fs->super->s_state & EXT2_ERROR_FS) ||
+ ((fs->super->s_state & EXT2_VALID_FS) == 0))) {
+ fprintf(stderr,
+ _("Please run 'e2fsck -f %s' first.\n\n"),
+
diff --git a/e2fsprogs.spec b/e2fsprogs.spec
index 6cb419d..62c5a45 100644
--- a/e2fsprogs.spec
+++ b/e2fsprogs.spec
@@ -4,7 +4,7 @@
Summary: Utilities for managing ext2, ext3, and ext4 filesystems
Name: e2fsprogs
Version: 1.41.12
-Release: 3%{?dist}
+Release: 5%{?dist}
# License tags based on COPYING file distinctions for various components
License: GPLv2
@@ -14,6 +14,7 @@ Source1: ext2_types-wrapper.h
Patch1: e2fsprogs-1.40.4-sb_feature_check_ignore.patch
Patch2: e2fpsrogs-1.41.12-EOFBLOCKS-test.patch
+Patch3: e2fsprogs-1.41.12-relax-resize2fs-P.patch
Url: http://e2fsprogs.sourceforge.net/
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@@ -151,6 +152,8 @@ It was originally inspired by the Multics SubSystem library.
# Test for EOFBLOCKS was backwards
%patch2 -p1 -b .EOFBLOCKS
+# relax resize2fs -P requirements a bit
+%patch3 -p1 -b .resize2fs
%build
%configure --enable-elf-shlibs --enable-nls --disable-uuidd --disable-fsck \
@@ -271,6 +274,7 @@ exit 0
%files static
%defattr(-,root,root)
+%doc COPYING
%{_libdir}/*.a
%files devel
@@ -314,6 +318,12 @@ exit 0
%{_libdir}/pkgconfig/ss.pc
%changelog
+* Mon Jul 13 2010 Eric Sandeen <sandeen@redhat.com> 1.41.12-5
+- Relax fsck requirements for resize2fs -P
+
+* Mon Jul 12 2010 Eric Sandeen <sandeen@redhat.com> 1.41.12-4
+- Add COPYING file to the static subpackage
+
* Wed Jun 02 2010 Eric Sandeen <sandeen@redhat.com> 1.41.12-3
- Reinstate static libs in dedicated package (#596377)