From: Stelian Pop Date: Mon, 21 Feb 2011 10:36:47 +0000 (+0000) Subject: Fix incorrect hole handling. X-Git-Tag: release_0_4b44~9 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=221107b058053e59e420bfffede2e01396051267;p=dump.git Fix incorrect hole handling. --- diff --git a/CHANGES b/CHANGES index c3ac8f8..2f8cdc6 100644 --- a/CHANGES +++ b/CHANGES @@ -1,4 +1,4 @@ -$Id: CHANGES,v 1.319 2010/12/06 14:26:50 stelian Exp $ +$Id: CHANGES,v 1.320 2011/02/21 10:36:47 stelian Exp $ Changes between versions 0.4b43 and 0.4b44 (released ?????????????) @@ -14,6 +14,10 @@ Changes between versions 0.4b43 and 0.4b44 (released ?????????????) volumes and are starting on 2nd tape or later (RedHat bug #507948). +3. Fix a bug in dump when dumping files with holes. This bug + was introduced in 0.4b42 while adding ext4 support. + (Sourceforge bug #3133762). + Changes between versions 0.4b42 and 0.4b43 (released June 11, 2010) =================================================================== diff --git a/dump/traverse.c b/dump/traverse.c index 6ed1d28..34be0ec 100644 --- a/dump/traverse.c +++ b/dump/traverse.c @@ -37,7 +37,7 @@ #ifndef lint static const char rcsid[] = - "$Id: traverse.c,v 1.71 2010/06/10 12:17:35 stelian Exp $"; + "$Id: traverse.c,v 1.72 2011/02/21 10:36:47 stelian Exp $"; #endif /* not lint */ #include @@ -992,7 +992,7 @@ dumpino(struct dinode *dp, dump_ino_t ino, int metaonly) bc.buf = (int *)malloc (bc.max * sizeof (int)); bc.cnt = 0; bc.ino = ino; - bc.next_block = NDADDR; + bc.next_block = 0; ext2fs_block_iterate2(fs, (ext2_ino_t)ino, BLOCK_FLAG_DATA_ONLY, NULL, dumponeblock, (void *)&bc); /* deal with holes at the end of the inode */