diff -Nru ext4magic-0.3.2/debian/changelog ext4magic-0.3.2/debian/changelog --- ext4magic-0.3.2/debian/changelog 2014-10-26 21:52:45.000000000 +0000 +++ ext4magic-0.3.2/debian/changelog 2015-11-30 00:55:29.000000000 +0000 @@ -1,3 +1,12 @@ +ext4magic (0.3.2-3) unstable; urgency=medium + + * debian/patches/fix-recover-examine.patch: added as a temporary work + around to fix an issue which makes impossible to recover or examine + Ext4 filesystems. Thanks to Roberto Maar , the + ext4magic upstream. (see #802089 for more details) + + -- Joao Eriberto Mota Filho Sun, 29 Nov 2015 22:49:23 -0200 + ext4magic (0.3.2-2) unstable; urgency=medium * Bumped Standards-Version to 3.9.6. diff -Nru ext4magic-0.3.2/debian/patches/fix-recover-examine ext4magic-0.3.2/debian/patches/fix-recover-examine --- ext4magic-0.3.2/debian/patches/fix-recover-examine 1970-01-01 00:00:00.000000000 +0000 +++ ext4magic-0.3.2/debian/patches/fix-recover-examine 2015-11-30 00:53:54.000000000 +0000 @@ -0,0 +1,56 @@ +Description: temporary work around to fix an issue which makes impossible to + recover or examine Ext4 filesystems. (see #802089) +Author: Roberto Maar +Last-Update: 2015-10-18 +Index: ext4magic-0.3.2/src/block.c +=================================================================== +--- ext4magic-0.3.2.orig/src/block.c ++++ ext4magic-0.3.2/src/block.c +@@ -130,7 +130,8 @@ int read_block64 ( ext2_filsys fs, blk64 + + + +- ++//FIXME : Debian Bug #802089 (temporary work around) ++/* + errcode_t local_ext2fs_extent_open(ext2_filsys fs, struct ext2_inode inode, + ext2_extent_handle_t *ret_handle) { + +@@ -189,7 +190,7 @@ errcode_t local_ext2fs_extent_open(ext2_ + + return 0; + } +- ++*/ + + static int mark_extent_block(ext2_filsys fs, char *extent_block ){ + struct ext3_extent_header *eh; +@@ -613,7 +614,10 @@ errcode_t local_block_iterate3(ext2_fils + int uninit; + unsigned int j; + +- ctx.errcode = local_ext2fs_extent_open(fs, inode, &handle); ++//FIXME : Debian Bug #802089 (temporary work around) ++// ctx.errcode = local_ext2fs_extent_open(fs, inode, &handle); ++ ctx.errcode = ext2fs_extent_open2(fs,0,&inode,&handle); ++// + if (ctx.errcode) + goto abort_exit; + +Index: ext4magic-0.3.2/src/inode.c +=================================================================== +--- ext4magic-0.3.2.orig/src/inode.c ++++ ext4magic-0.3.2/src/inode.c +@@ -112,8 +112,10 @@ static void local_dump_extents(FILE *f, + unsigned int printed = 0; + errcode_t errcode; + +- +- errcode = local_ext2fs_extent_open(current_fs, *inode, &handle); ++//FIXME : Debian Bug #802089 (temporary work around) ++// errcode = local_ext2fs_extent_open(current_fs, *inode, &handle); ++ errcode = ext2fs_extent_open2(current_fs,0,inode,&handle); ++// + if (errcode) + return; + diff -Nru ext4magic-0.3.2/debian/patches/series ext4magic-0.3.2/debian/patches/series --- ext4magic-0.3.2/debian/patches/series 1970-01-01 00:00:00.000000000 +0000 +++ ext4magic-0.3.2/debian/patches/series 2015-11-30 00:39:05.000000000 +0000 @@ -0,0 +1 @@ +fix-recover-examine