rpms/e2fsprogs/devel e2fsprogs-resize-minimum-fix.patch, NONE, 1.1 e2fsprogs.spec, 1.149, 1.150
Josef Bacik
josef at fedoraproject.org
Thu Sep 10 21:51:52 UTC 2009
- Previous message (by thread): rpms/gdb/devel .cvsignore, 1.36, 1.37 gdb-6.3-large-core-20051206.patch, 1.9, 1.10 gdb-6.3-pie-20050110.patch, 1.21, 1.22 gdb-6.3-test-pie-20050107.patch, 1.10, 1.11 gdb-6.6-buildid-locate-rpm.patch, 1.5, 1.6 gdb-6.6-buildid-locate.patch, 1.25, 1.26 gdb-6.8-bz254229-gcore-prpsinfo.patch, 1.3, 1.4 gdb-6.8-bz457187-largefile.patch, 1.2, 1.3 gdb-6.8-bz466901-backtrace-full-prelinked.patch, 1.5, 1.6 gdb-6.8-inlining-addon.patch, 1.7, 1.8 gdb-archer.patch, 1.28, 1.29 gdb-readline-6.0.patch, 1.1, 1.2 gdb.spec, 1.382, 1.383 sources, 1.35, 1.36 gdb-6.8.50.20090818-upstream.patch, 1.1, NONE gdb-bz520129-drow-bitfields.patch, 1.1, NONE
- Next message (by thread): rpms/telepathy-gabble/devel .cvsignore, 1.53, 1.54 sources, 1.53, 1.54 telepathy-gabble.spec, 1.65, 1.66
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: josef
Update of /cvs/pkgs/rpms/e2fsprogs/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv15305
Modified Files:
e2fsprogs.spec
Added Files:
e2fsprogs-resize-minimum-fix.patch
Log Message:
- fixing resize -m bug (#519131)
e2fsprogs-resize-minimum-fix.patch:
resize2fs.c | 20 +++++++++++++++++---
1 file changed, 17 insertions(+), 3 deletions(-)
--- NEW FILE e2fsprogs-resize-minimum-fix.patch ---
---
resize/resize2fs.c | 20 +++++++++++++++++---
1 files changed, 17 insertions(+), 3 deletions(-)
diff --git a/resize/resize2fs.c b/resize/resize2fs.c
index c0b00b6..648e1f9 100644
--- a/resize/resize2fs.c
+++ b/resize/resize2fs.c
@@ -1900,6 +1900,8 @@ blk_t calculate_minimum_resize_size(ext2_filsys fs)
blk_t inode_count, blks_needed, groups, data_blocks;
blk_t grp, data_needed, last_start;
int overhead = 0, num_of_superblocks = 0;
+ int extra_groups = 0;
+ int flexbg_size = 1 << fs->super->s_log_groups_per_flex;
/*
* first figure out how many group descriptors we need to
@@ -1934,11 +1936,9 @@ blk_t calculate_minimum_resize_size(ext2_filsys fs)
* of inode tables of slack space so the resize
* operation can be guaranteed to finish.
*/
- int flexbg_size = 1 << fs->super->s_log_groups_per_flex;
- int extra_groups;
-
extra_groups = flexbg_size - (groups & (flexbg_size - 1));
data_needed += META_OVERHEAD(fs) * extra_groups;
+ extra_groups = groups % flexbg_size;
}
/*
@@ -2002,6 +2002,20 @@ blk_t calculate_minimum_resize_size(ext2_filsys fs)
}
groups += extra_grps;
+ extra_groups += extra_grps;
+ if (fs->super->s_feature_incompat
+ & EXT4_FEATURE_INCOMPAT_FLEX_BG
+ && extra_groups > flexbg_size) {
+ /*
+ * For ext4 we need to allow for up to a flex_bg worth
+ * of inode tables of slack space so the resize
+ * operation can be guaranteed to finish.
+ */
+ extra_groups = flexbg_size -
+ (groups & (flexbg_size - 1));
+ data_needed += META_OVERHEAD(fs) * extra_groups;
+ extra_groups = groups % flexbg_size;
+ }
}
/* now for the fun voodoo */
Index: e2fsprogs.spec
===================================================================
RCS file: /cvs/pkgs/rpms/e2fsprogs/devel/e2fsprogs.spec,v
retrieving revision 1.149
retrieving revision 1.150
diff -u -p -r1.149 -r1.150
--- e2fsprogs.spec 24 Aug 2009 04:53:38 -0000 1.149
+++ e2fsprogs.spec 10 Sep 2009 21:51:50 -0000 1.150
@@ -4,7 +4,7 @@
Summary: Utilities for managing ext2, ext3, and ext4 filesystems
Name: e2fsprogs
Version: 1.41.9
-Release: 1%{?dist}
+Release: 2%{?dist}
# License tags based on COPYING file distinctions for various components
License: GPLv2
@@ -14,6 +14,7 @@ Source1: ext2_types-wrapper.h
Patch2: e2fsprogs-1.40.4-sb_feature_check_ignore.patch
Patch3: e2fsprogs-1.41.9-defrag.patch
+Patch4: e2fsprogs-resize-minimum-fix.patch
Url: http://e2fsprogs.sourceforge.net/
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@@ -141,6 +142,7 @@ It was originally inspired by the Multic
%patch2 -p1 -b .featurecheck
# defrag command for testing, from non-release branch
%patch3 -p1 -b .defrag
+%patch4 -p1 -b .resize
%build
%configure --enable-elf-shlibs --enable-nls --disable-uuidd --disable-fsck \
@@ -301,6 +303,9 @@ exit 0
%{_libdir}/pkgconfig/ss.pc
%changelog
+* Thu Sep 10 2009 Josef Bacik <josef at toxicpanda.com> 1.41.9-2
+- Fix resize -m bug with flexbg (#519131)
+
* Sun Aug 23 2009 Eric Sandeen <sandeen at redhat.com> 1.41.9-1
- New upstream release
- Previous message (by thread): rpms/gdb/devel .cvsignore, 1.36, 1.37 gdb-6.3-large-core-20051206.patch, 1.9, 1.10 gdb-6.3-pie-20050110.patch, 1.21, 1.22 gdb-6.3-test-pie-20050107.patch, 1.10, 1.11 gdb-6.6-buildid-locate-rpm.patch, 1.5, 1.6 gdb-6.6-buildid-locate.patch, 1.25, 1.26 gdb-6.8-bz254229-gcore-prpsinfo.patch, 1.3, 1.4 gdb-6.8-bz457187-largefile.patch, 1.2, 1.3 gdb-6.8-bz466901-backtrace-full-prelinked.patch, 1.5, 1.6 gdb-6.8-inlining-addon.patch, 1.7, 1.8 gdb-archer.patch, 1.28, 1.29 gdb-readline-6.0.patch, 1.1, 1.2 gdb.spec, 1.382, 1.383 sources, 1.35, 1.36 gdb-6.8.50.20090818-upstream.patch, 1.1, NONE gdb-bz520129-drow-bitfields.patch, 1.1, NONE
- Next message (by thread): rpms/telepathy-gabble/devel .cvsignore, 1.53, 1.54 sources, 1.53, 1.54 telepathy-gabble.spec, 1.65, 1.66
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the fedora-extras-commits
mailing list