summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2010-10-07 16:17:50 +0000
committerMike Frysinger <vapier@gentoo.org>2010-10-07 16:17:50 +0000
commitb5ffc0e9196d37a2be83ec1a9e766930cb54ed0b (patch)
tree12c69d889255979e6e87e43630c83b8a8e428f93 /sys-fs/e2fsprogs/files
parentia64/s390/sh stable #337270 (diff)
downloadhistorical-b5ffc0e9196d37a2be83ec1a9e766930cb54ed0b.tar.gz
historical-b5ffc0e9196d37a2be83ec1a9e766930cb54ed0b.tar.bz2
historical-b5ffc0e9196d37a2be83ec1a9e766930cb54ed0b.zip
old
Diffstat (limited to 'sys-fs/e2fsprogs/files')
-rw-r--r--sys-fs/e2fsprogs/files/e2fsprogs-1.39-makefile.patch72
-rw-r--r--sys-fs/e2fsprogs/files/e2fsprogs-1.40.5-libintl.patch15
-rw-r--r--sys-fs/e2fsprogs/files/e2fsprogs-1.41.0-makefile.patch87
-rw-r--r--sys-fs/e2fsprogs/files/e2fsprogs-1.41.10-e2fsck-corruption.patch38
-rw-r--r--sys-fs/e2fsprogs/files/e2fsprogs-1.41.2-makefile.patch80
-rw-r--r--sys-fs/e2fsprogs/files/e2fsprogs-1.41.3-tune2fs-opt.patch99
6 files changed, 0 insertions, 391 deletions
diff --git a/sys-fs/e2fsprogs/files/e2fsprogs-1.39-makefile.patch b/sys-fs/e2fsprogs/files/e2fsprogs-1.39-makefile.patch
deleted file mode 100644
index 4eaebba15d23..000000000000
--- a/sys-fs/e2fsprogs/files/e2fsprogs-1.39-makefile.patch
+++ /dev/null
@@ -1,72 +0,0 @@
---- Makefile.in
-+++ Makefile.in
-@@ -48,3 +48,3 @@
- install-shlibs-libs-recursive install-doc-libs
-- if test ! -d e2fsck && test ! -d debugfs && test ! -d misc && test ! -d ext2ed ; then $(MAKE) install-libs ; fi
-+ $(MAKE) install-libs
-
---- e2fsck/Makefile.in
-+++ e2fsck/Makefile.in
-@@ -163,6 +163,6 @@
- @echo " LINK $(root_sbindir)/fsck.ext2"
-- @$(LN) -f $(DESTDIR)$(root_sbindir)/e2fsck \
-+ @$(LN_S) -f e2fsck \
- $(DESTDIR)$(root_sbindir)/fsck.ext2
- @echo " LINK $(root_sbindir)/fsck.ext3"
-- @$(LN) -f $(DESTDIR)$(root_sbindir)/e2fsck \
-+ @$(LN_S) -f e2fsck \
- $(DESTDIR)$(root_sbindir)/fsck.ext3
-@@ -176,6 +176,6 @@
- @echo " LINK $(man8dir)/fsck.ext2.8"
-- @$(LN) -f $(DESTDIR)$(man8dir)/e2fsck.8 \
-+ @$(LN_S) -f e2fsck.8 \
- $(DESTDIR)$(man8dir)/fsck.ext2.8
- @echo " LINK $(man8dir)/fsck.ext3.8"
-- @$(LN) -f $(DESTDIR)$(man8dir)/e2fsck.8 \
-+ @$(LN_S) -f e2fsck.8 \
- $(DESTDIR)$(man8dir)/fsck.ext3.8
---- misc/Makefile.in
-+++ misc/Makefile.in
-@@ -228,12 +228,12 @@
- @echo " LINK $(root_sbindir)/mkfs.ext2"
-- @$(LN) -f $(DESTDIR)$(root_sbindir)/mke2fs \
-+ @$(LN_S) -f mke2fs \
- $(DESTDIR)$(root_sbindir)/mkfs.ext2
- @echo " LINK $(root_sbindir)/mkfs.ext3"
-- @$(LN) -f $(DESTDIR)$(root_sbindir)/mke2fs \
-+ @$(LN_S) -f mke2fs \
- $(DESTDIR)$(root_sbindir)/mkfs.ext3
- @echo " LINK $(root_sbindir)/e2label"
-- @$(LN) -f $(DESTDIR)$(root_sbindir)/tune2fs \
-+ @$(LN_S) -f tune2fs \
- $(DESTDIR)$(root_sbindir)/e2label
- @echo " LINK $(root_sbindir)/findfs"
-- @$(LN) -f $(DESTDIR)$(root_sbindir)/tune2fs \
-+ @$(LN_S) -f tune2fs \
- $(DESTDIR)$(root_sbindir)/findfs
-@@ -257,6 +257,6 @@
- @echo " LINK mkfs.ext2.8"
-- @$(LN) -f $(DESTDIR)$(man8dir)/mke2fs.8 \
-+ @$(LN_S) -f mke2fs.8 \
- $(DESTDIR)$(man8dir)/mkfs.ext2.8
- @echo " LINK mkfs.ext3.8"
-- @$(LN) -f $(DESTDIR)$(man8dir)/mke2fs.8 \
-+ @$(LN_S) -f mke2fs.8 \
- $(DESTDIR)$(man8dir)/mkfs.ext3.8
---- lib/uuid/Makefile.in
-+++ lib/uuid/Makefile.in
-@@ -148,5 +148,5 @@
- @echo " LINK $(man3dir)/uuid_generate_random.3"
-- @$(LN) -f $(DESTDIR)$(man3dir)/uuid_generate.3 $(DESTDIR)$(man3dir)/uuid_generate_random.3
-+ @$(LN_S) -f uuid_generate.3 $(DESTDIR)$(man3dir)/uuid_generate_random.3
- @echo " LINK $(man3dir)/uuid_generate_time.3"
-- @$(LN) -f $(DESTDIR)$(man3dir)/uuid_generate.3 $(DESTDIR)$(man3dir)/uuid_generate_time.3
-+ @$(LN_S) -f uuid_generate.3 $(DESTDIR)$(man3dir)/uuid_generate_time.3
- @echo " INSTALL_DATA $(libdir)/pkgconfig/uuid.pc"
---- lib/Makefile.elf-lib
-+++ lib/Makefile.elf-lib
-@@ -49,3 +49,3 @@
- @echo " SYMLINK $(libdir)/$(ELF_IMAGE).so"
-- @$(LN_S) -f $(ELF_INSTALL_DIR)/$(ELF_SONAME) \
-+ @$(LN_S) -f $(ELF_SONAME) \
- $(DESTDIR)$(libdir)/$(ELF_IMAGE).so
diff --git a/sys-fs/e2fsprogs/files/e2fsprogs-1.40.5-libintl.patch b/sys-fs/e2fsprogs/files/e2fsprogs-1.40.5-libintl.patch
deleted file mode 100644
index 272807368cff..000000000000
--- a/sys-fs/e2fsprogs/files/e2fsprogs-1.40.5-libintl.patch
+++ /dev/null
@@ -1,15 +0,0 @@
-Fixes libintl handling on non-glibc
-
-http://bugs.gentoo.org/122368
-
---- e2fsprogs-1.40/MCONFIG.in
-+++ e2fsprogs-1.40/MCONFIG.in
-@@ -71,7 +71,7 @@
- LIBEXT2FS = $(LIB)/libext2fs@LIB_EXT@
- LIBUUID = $(LIB)/libuuid@LIB_EXT@ @SOCKET_LIB@
- LIBBLKID = $(LIB)/libblkid@LIB_EXT@ @STATIC_BLKID_DEVMAPPER_LIBS@
--LIBINTL = @LIBINTL@
-+LIBINTL = @LTLIBINTL@
- DEPLIBUUID = $(LIB)/libuuid@LIB_EXT@
- DEPLIBBLKID = $(LIB)/libblkid@LIB_EXT@
-
diff --git a/sys-fs/e2fsprogs/files/e2fsprogs-1.41.0-makefile.patch b/sys-fs/e2fsprogs/files/e2fsprogs-1.41.0-makefile.patch
deleted file mode 100644
index f4c95e14dbd0..000000000000
--- a/sys-fs/e2fsprogs/files/e2fsprogs-1.41.0-makefile.patch
+++ /dev/null
@@ -1,87 +0,0 @@
---- e2fsck/Makefile.in
-+++ e2fsck/Makefile.in
-@@ -199,12 +199,12 @@
- @echo " LINK $(root_sbindir)/fsck.ext2"
-- @$(LN) -f $(DESTDIR)$(root_sbindir)/e2fsck \
-+ @$(LN_S) -f e2fsck \
- $(DESTDIR)$(root_sbindir)/fsck.ext2
- @echo " LINK $(root_sbindir)/fsck.ext3"
-- @$(LN) -f $(DESTDIR)$(root_sbindir)/e2fsck \
-+ @$(LN_S) -f e2fsck \
- $(DESTDIR)$(root_sbindir)/fsck.ext3
- @echo " LINK $(root_sbindir)/fsck.ext4"
-- @$(LN) -f $(DESTDIR)$(root_sbindir)/e2fsck \
-+ @$(LN_S) -f e2fsck \
- $(DESTDIR)$(root_sbindir)/fsck.ext4
- @echo " LINK $(root_sbindir)/fsck.ext4dev"
-- @$(LN) -f $(DESTDIR)$(root_sbindir)/e2fsck \
-+ @$(LN_S) -f e2fsck \
- $(DESTDIR)$(root_sbindir)/fsck.ext4dev
-@@ -225,12 +225,12 @@
- @echo " LINK $(man8dir)/fsck.ext2.8"
-- @$(LN) -f $(DESTDIR)$(man8dir)/e2fsck.8 \
-+ @$(LN_S) -f e2fsck.8 \
- $(DESTDIR)$(man8dir)/fsck.ext2.8
- @echo " LINK $(man8dir)/fsck.ext3.8"
-- @$(LN) -f $(DESTDIR)$(man8dir)/e2fsck.8 \
-+ @$(LN_S) -f e2fsck.8 \
- $(DESTDIR)$(man8dir)/fsck.ext3.8
- @echo " LINK $(man8dir)/fsck.ext4.8"
-- @$(LN) -f $(DESTDIR)$(man8dir)/e2fsck.8 \
-+ @$(LN_S) -f e2fsck.8 \
- $(DESTDIR)$(man8dir)/fsck.ext4.8
- @echo " LINK $(man8dir)/fsck.ext4.8"
-- @$(LN) -f $(DESTDIR)$(man8dir)/e2fsck.8 \
-+ @$(LN_S) -f e2fsck.8 \
- $(DESTDIR)$(man8dir)/fsck.ext4dev.8
---- misc/Makefile.in
-+++ misc/Makefile.in
-@@ -279,18 +279,18 @@
- @echo " LINK $(root_sbindir)/mkfs.ext2"
-- @$(LN) -f $(DESTDIR)$(root_sbindir)/mke2fs \
-+ @$(LN_S) -f mke2fs \
- $(DESTDIR)$(root_sbindir)/mkfs.ext2
- @echo " LINK $(root_sbindir)/mkfs.ext3"
-- @$(LN) -f $(DESTDIR)$(root_sbindir)/mke2fs \
-+ @$(LN_S) -f mke2fs \
- $(DESTDIR)$(root_sbindir)/mkfs.ext3
- @echo " LINK $(root_sbindir)/mkfs.ext4"
-- @$(LN) -f $(DESTDIR)$(root_sbindir)/mke2fs \
-+ @$(LN_S) -f mke2fs \
- $(DESTDIR)$(root_sbindir)/mkfs.ext4
- @echo " LINK $(root_sbindir)/mkfs.ext4dev"
-- @$(LN) -f $(DESTDIR)$(root_sbindir)/mke2fs \
-+ @$(LN_S) -f mke2fs \
- $(DESTDIR)$(root_sbindir)/mkfs.ext4dev
- @echo " LINK $(root_sbindir)/e2label"
-- @$(LN) -f $(DESTDIR)$(root_sbindir)/tune2fs \
-+ @$(LN_S) -f tune2fs \
- $(DESTDIR)$(root_sbindir)/e2label
- @echo " LINK $(root_sbindir)/findfs"
-- @$(LN) -f $(DESTDIR)$(root_sbindir)/tune2fs \
-+ @$(LN_S) -f tune2fs \
- $(DESTDIR)$(root_sbindir)/findfs
-@@ -314,12 +314,12 @@
- @echo " LINK mkfs.ext2.8"
-- @$(LN) -f $(DESTDIR)$(man8dir)/mke2fs.8 \
-+ @$(LN_S) -f mke2fs.8 \
- $(DESTDIR)$(man8dir)/mkfs.ext2.8
- @echo " LINK mkfs.ext3.8"
-- @$(LN) -f $(DESTDIR)$(man8dir)/mke2fs.8 \
-+ @$(LN_S) -f mke2fs.8 \
- $(DESTDIR)$(man8dir)/mkfs.ext3.8
- @echo " LINK mkfs.ext4.8"
-- @$(LN) -f $(DESTDIR)$(man8dir)/mke2fs.8 \
-+ @$(LN_S) -f mke2fs.8 \
- $(DESTDIR)$(man8dir)/mkfs.ext4.8
- @echo " LINK mkfs.ext4dev.8"
-- @$(LN) -f $(DESTDIR)$(man8dir)/mke2fs.8 \
-+ @$(LN_S) -f mke2fs.8 \
- $(DESTDIR)$(man8dir)/mkfs.ext4dev.8
---- lib/Makefile.elf-lib
-+++ lib/Makefile.elf-lib
-@@ -49,3 +49,3 @@
- @echo " SYMLINK $(libdir)/$(ELF_IMAGE).so"
-- @$(LN_S) -f $(ELF_INSTALL_DIR)/$(ELF_SONAME) \
-+ @$(LN_S) -f $(ELF_SONAME) \
- $(DESTDIR)$(libdir)/$(ELF_IMAGE).so
diff --git a/sys-fs/e2fsprogs/files/e2fsprogs-1.41.10-e2fsck-corruption.patch b/sys-fs/e2fsprogs/files/e2fsprogs-1.41.10-e2fsck-corruption.patch
deleted file mode 100644
index 4f24b9ada8cc..000000000000
--- a/sys-fs/e2fsprogs/files/e2fsprogs-1.41.10-e2fsck-corruption.patch
+++ /dev/null
@@ -1,38 +0,0 @@
-From: Theodore Ts'o <tytso@mit.edu>
-Date: Tue, 23 Feb 2010 04:51:26 +0000 (-0500)
-Subject: e2fsck: Fix bug which can cause e2fsck -fD to corrupt non-indexed directories
-X-Git-Url: http://git.kernel.org/?p=fs%2Fext2%2Fe2fsprogs.git;a=commitdiff_plain;h=53fbfb2bc3490d0ff317666322dd077c08116e0c
-
-e2fsck: Fix bug which can cause e2fsck -fD to corrupt non-indexed directories
-
-E2fsprogs 1.41.10 introduced a regression (in commit b71e018) where
-e2fsck -fD can corrupt non-indexed directories when are exists one or
-more file names which alphabetically sort before ".". This can happen
-with ext2 filesystems or for small directories (take less than a
-block) which contain filenames that begin with a space or some other
-punctuation mark.
-
-Fix this by making sure we never reorder the '.' or '..' entry in the
-directory, since they must be first.
-
-Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
----
-
-diff --git a/e2fsck/rehash.c b/e2fsck/rehash.c
-index 780742e..ceb8543 100644
---- a/e2fsck/rehash.c
-+++ b/e2fsck/rehash.c
-@@ -763,7 +763,12 @@ retry_nohash:
-
- /* Sort the list */
- resort:
-- qsort(fd.harray, fd.num_array, sizeof(struct hash_entry), hash_cmp);
-+ if (fd.compress)
-+ qsort(fd.harray+2, fd.num_array-2, sizeof(struct hash_entry),
-+ hash_cmp);
-+ else
-+ qsort(fd.harray, fd.num_array, sizeof(struct hash_entry),
-+ hash_cmp);
-
- /*
- * Look for duplicates
diff --git a/sys-fs/e2fsprogs/files/e2fsprogs-1.41.2-makefile.patch b/sys-fs/e2fsprogs/files/e2fsprogs-1.41.2-makefile.patch
deleted file mode 100644
index 1704b7ce3730..000000000000
--- a/sys-fs/e2fsprogs/files/e2fsprogs-1.41.2-makefile.patch
+++ /dev/null
@@ -1,80 +0,0 @@
---- e2fsck/Makefile.in
-+++ e2fsck/Makefile.in
-@@ -199,12 +199,12 @@
- @echo " LINK $(root_sbindir)/fsck.ext2"
-- @$(LN) -f $(DESTDIR)$(root_sbindir)/e2fsck \
-+ @$(LN_S) -f e2fsck \
- $(DESTDIR)$(root_sbindir)/fsck.ext2
- @echo " LINK $(root_sbindir)/fsck.ext3"
-- @$(LN) -f $(DESTDIR)$(root_sbindir)/e2fsck \
-+ @$(LN_S) -f e2fsck \
- $(DESTDIR)$(root_sbindir)/fsck.ext3
- @echo " LINK $(root_sbindir)/fsck.ext4"
-- @$(LN) -f $(DESTDIR)$(root_sbindir)/e2fsck \
-+ @$(LN_S) -f e2fsck \
- $(DESTDIR)$(root_sbindir)/fsck.ext4
- @echo " LINK $(root_sbindir)/fsck.ext4dev"
-- @$(LN) -f $(DESTDIR)$(root_sbindir)/e2fsck \
-+ @$(LN_S) -f e2fsck \
- $(DESTDIR)$(root_sbindir)/fsck.ext4dev
-@@ -225,12 +225,12 @@
- @echo " LINK $(man8dir)/fsck.ext2.8"
-- @$(LN) -f $(DESTDIR)$(man8dir)/e2fsck.8 \
-+ @$(LN_S) -f e2fsck.8 \
- $(DESTDIR)$(man8dir)/fsck.ext2.8
- @echo " LINK $(man8dir)/fsck.ext3.8"
-- @$(LN) -f $(DESTDIR)$(man8dir)/e2fsck.8 \
-+ @$(LN_S) -f e2fsck.8 \
- $(DESTDIR)$(man8dir)/fsck.ext3.8
- @echo " LINK $(man8dir)/fsck.ext4.8"
-- @$(LN) -f $(DESTDIR)$(man8dir)/e2fsck.8 \
-+ @$(LN_S) -f e2fsck.8 \
- $(DESTDIR)$(man8dir)/fsck.ext4.8
- @echo " LINK $(man8dir)/fsck.ext4.8"
-- @$(LN) -f $(DESTDIR)$(man8dir)/e2fsck.8 \
-+ @$(LN_S) -f e2fsck.8 \
- $(DESTDIR)$(man8dir)/fsck.ext4dev.8
---- misc/Makefile.in
-+++ misc/Makefile.in
-@@ -279,18 +279,18 @@
- @echo " LINK $(root_sbindir)/mkfs.ext2"
-- @$(LN) -f $(DESTDIR)$(root_sbindir)/mke2fs \
-+ @$(LN_S) -f mke2fs \
- $(DESTDIR)$(root_sbindir)/mkfs.ext2
- @echo " LINK $(root_sbindir)/mkfs.ext3"
-- @$(LN) -f $(DESTDIR)$(root_sbindir)/mke2fs \
-+ @$(LN_S) -f mke2fs \
- $(DESTDIR)$(root_sbindir)/mkfs.ext3
- @echo " LINK $(root_sbindir)/mkfs.ext4"
-- @$(LN) -f $(DESTDIR)$(root_sbindir)/mke2fs \
-+ @$(LN_S) -f mke2fs \
- $(DESTDIR)$(root_sbindir)/mkfs.ext4
- @echo " LINK $(root_sbindir)/mkfs.ext4dev"
-- @$(LN) -f $(DESTDIR)$(root_sbindir)/mke2fs \
-+ @$(LN_S) -f mke2fs \
- $(DESTDIR)$(root_sbindir)/mkfs.ext4dev
- @echo " LINK $(root_sbindir)/e2label"
-- @$(LN) -f $(DESTDIR)$(root_sbindir)/tune2fs \
-+ @$(LN_S) -f tune2fs \
- $(DESTDIR)$(root_sbindir)/e2label
- @echo " LINK $(root_sbindir)/findfs"
-- @$(LN) -f $(DESTDIR)$(root_sbindir)/tune2fs \
-+ @$(LN_S) -f tune2fs \
- $(DESTDIR)$(root_sbindir)/findfs
-@@ -314,12 +314,12 @@
- @echo " LINK mkfs.ext2.8"
-- @$(LN) -f $(DESTDIR)$(man8dir)/mke2fs.8 \
-+ @$(LN_S) -f mke2fs.8 \
- $(DESTDIR)$(man8dir)/mkfs.ext2.8
- @echo " LINK mkfs.ext3.8"
-- @$(LN) -f $(DESTDIR)$(man8dir)/mke2fs.8 \
-+ @$(LN_S) -f mke2fs.8 \
- $(DESTDIR)$(man8dir)/mkfs.ext3.8
- @echo " LINK mkfs.ext4.8"
-- @$(LN) -f $(DESTDIR)$(man8dir)/mke2fs.8 \
-+ @$(LN_S) -f mke2fs.8 \
- $(DESTDIR)$(man8dir)/mkfs.ext4.8
- @echo " LINK mkfs.ext4dev.8"
-- @$(LN) -f $(DESTDIR)$(man8dir)/mke2fs.8 \
-+ @$(LN_S) -f mke2fs.8 \
- $(DESTDIR)$(man8dir)/mkfs.ext4dev.8
diff --git a/sys-fs/e2fsprogs/files/e2fsprogs-1.41.3-tune2fs-opt.patch b/sys-fs/e2fsprogs/files/e2fsprogs-1.41.3-tune2fs-opt.patch
deleted file mode 100644
index 35e8a57fa3a4..000000000000
--- a/sys-fs/e2fsprogs/files/e2fsprogs-1.41.3-tune2fs-opt.patch
+++ /dev/null
@@ -1,99 +0,0 @@
-http://bugs.gentoo.org/253162
-
-From 27c6de45a4187a348ec0960472d4a113ee6ea425 Mon Sep 17 00:00:00 2001
-From: Theodore Ts'o <tytso@mit.edu>
-Date: Sat, 15 Nov 2008 00:32:39 -0500
-Subject: [PATCH] tune2fs: Fix inefficient O(n**2) algorithms when expanding the inode size
-
-When running "tune2fs -I 256" on moderate to large filesystems, the
-time required to run tune2fs can take many hours (20+ before some
-users gave up in disgust). This was due to some O(n**2) and O(n*m)
-algorithms in move_block() and inode_scan_and_fix(), respectively.
-
-Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
----
- misc/tune2fs.c | 25 +++++++++++++------------
- 1 files changed, 13 insertions(+), 12 deletions(-)
-
-diff --git a/misc/tune2fs.c b/misc/tune2fs.c
-index b29b344..e72518a 100644
---- a/misc/tune2fs.c
-+++ b/misc/tune2fs.c
-@@ -1011,13 +1011,13 @@ static int move_block(ext2_filsys fs, ext2fs_block_bitmap bmap)
- if (retval)
- return retval;
-
-- for (blk = fs->super->s_first_data_block;
-- blk < fs->super->s_blocks_count; blk++) {
-+ for (new_blk = blk = fs->super->s_first_data_block;
-+ blk < fs->super->s_blocks_count; blk++) {
-
- if (!ext2fs_test_block_bitmap(bmap, blk))
- continue;
-
-- retval = ext2fs_new_block(fs, blk, NULL, &new_blk);
-+ retval = ext2fs_new_block(fs, new_blk, NULL, &new_blk);
- if (retval)
- goto err_out;
-
-@@ -1068,12 +1068,14 @@ static int process_block(ext2_filsys fs EXT2FS_ATTR((unused)),
- e2_blkcnt_t blockcnt EXT2FS_ATTR((unused)),
- blk_t ref_block EXT2FS_ATTR((unused)),
- int ref_offset EXT2FS_ATTR((unused)),
-- void *priv_data EXT2FS_ATTR((unused)))
-+ void *priv_data)
- {
- int ret = 0;
- blk_t new_blk;
-+ ext2fs_block_bitmap bmap = (ext2fs_block_bitmap) priv_data;
-
--
-+ if (!ext2fs_test_block_bitmap(bmap, *block_nr))
-+ return 0;
- new_blk = transalate_block(*block_nr);
- if (new_blk) {
- *block_nr = new_blk;
-@@ -1086,7 +1088,7 @@ static int process_block(ext2_filsys fs EXT2FS_ATTR((unused)),
- return ret;
- }
-
--static int inode_scan_and_fix(ext2_filsys fs)
-+static int inode_scan_and_fix(ext2_filsys fs, ext2fs_block_bitmap bmap)
- {
- errcode_t retval = 0;
- ext2_ino_t ino;
-@@ -1122,8 +1124,8 @@ static int inode_scan_and_fix(ext2_filsys fs)
- * Do we need to fix this ??
- */
-
-- if (inode.i_file_acl) {
--
-+ if (inode.i_file_acl &&
-+ ext2fs_test_block_bitmap(bmap, inode.i_file_acl)) {
- blk = transalate_block(inode.i_file_acl);
- if (!blk)
- continue;
-@@ -1142,9 +1144,8 @@ static int inode_scan_and_fix(ext2_filsys fs)
- if (!ext2fs_inode_has_valid_blocks(&inode))
- continue;
-
-- retval = ext2fs_block_iterate2(fs, ino, 0,
-- block_buf, process_block,
-- 0);
-+ retval = ext2fs_block_iterate2(fs, ino, 0, block_buf,
-+ process_block, bmap);
- if (retval)
- goto err_out;
-
-@@ -1344,7 +1345,7 @@ static int resize_inode(ext2_filsys fs, unsigned long new_size)
- if (retval)
- goto err_out;
-
-- retval = inode_scan_and_fix(fs);
-+ retval = inode_scan_and_fix(fs, bmap);
- if (retval)
- goto err_out;
-
---
-1.6.0.6
-