Re: [OT] Re: Undeletion utililty for ext3/4

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On May 03, 2009  10:03 -0700, Christian Kujau wrote:
> On Thu, 30 Apr 2009, Number9652 wrote:
> > I have recently released a project on sourceforge
> > ( http://extundelete.sourceforge.net ) that can undelete a file from an 
> > ext3 or ext4 partition.  It uses code from ext3grep to parse 
> > command-line options, and uses libext2fs to read the partitions.
> 
> Hm, compiling with g++ 4.4 gave me a few compiling errors[0] - the patch 
> attached "fixes" them, but when extundelete is actually used, it crashes:
> 
> # ./extundelete /dev/md0
> Running extundelete version 0.0.3
> extundelete: extundelete.cc:894: void load_super_block(struct_ext2_filsys*):
> Assertion `(super_block.s_feature_compat & 0x0004)' failed.
> Aborted
> 
> ...but maybe that has been caused by the patch. Hm.

This is probably due to a new ext4 feature.  Look at this line of the
code and see what feature it is checking for.

> Christian.
> 
> [0] http://nerdbynature.de/bits/extundelete/
> -- 
> All infinite sets are countable -- by Bruce Schneier.

> diff -Nrup extundelete-0.0.3/src/insertionops.cc extundelete-0.0.3.edited/src/insertionops.cc
> --- extundelete-0.0.3/src/insertionops.cc	2009-04-28 20:17:32.000000000 +0200
> +++ extundelete-0.0.3.edited/src/insertionops.cc	2009-05-03 12:54:14.000000000 +0200
> @@ -8,6 +8,8 @@
>  #include <ext2fs/ext2fs.h>
>  #include "kernel-jbd.h"
>  #include "undel.h"
> +#include <stdint.h>
> +#include <assert.h>
>  
>  // Below are a bunch of functions to allow us to print information
>  // about various types of data we encounter in this program.
> diff -Nrup extundelete-0.0.3/src/undel-priv.h extundelete-0.0.3.edited/src/undel-priv.h
> --- extundelete-0.0.3/src/undel-priv.h	2009-04-28 20:17:32.000000000 +0200
> +++ extundelete-0.0.3.edited/src/undel-priv.h	2009-05-03 12:50:39.000000000 +0200
> @@ -4,6 +4,7 @@
>  #include <iomanip>
>  #include <list>
>  #include <ext2fs/ext2fs.h>
> +#include <stdint.h>
>  
>  // Global variables
>  #ifdef USE_SVN

> _______________________________________________
> Ext3-users mailing list
> Ext3-users@xxxxxxxxxx
> https://www.redhat.com/mailman/listinfo/ext3-users


Cheers, Andreas
--
Andreas Dilger
Sr. Staff Engineer, Lustre Group
Sun Microsystems of Canada, Inc.

_______________________________________________
Ext3-users mailing list
Ext3-users@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/ext3-users

[Index of Archives]         [Linux RAID]     [Kernel Development]     [Red Hat Install]     [Video 4 Linux]     [Postgresql]     [Fedora]     [Gimp]     [Yosemite News]

  Powered by Linux