Hi,

We've found that there is a function called ext2fs_blocks_count (within block.c and cli.cc files) which are:

blk64_t ext2fs_blocks_count(struct ext2_super_block *super) {
    return super->s_blocks_count;
}

Should we adapt it like that?

blk64_t ext2fs_blocks_count(struct ext2_super_block *super) {
    return super->s_blocks_count |
        (super->s_feature_incompat & EXT4_FEATURE_INCOMPAT_64BIT ?
        (__u64) super->s_blocks_count_hi << 32 : 0);
}

Is there something else we should modify ?

Thank you.

On 01/15/2014 06:13 PM, extundelete-users@lists.sourceforge.net wrote:
I am sorry, I missed your answer.
Here are both outputs, some of the parameters do match but some of them don't, the problem why I didn't run extundelete from CD is because this is a production environment, and therefore I first tried compiling the latest version, then I ran into this bug and I tried with the compiled version that comes with Ubuntu, and it seems that have another bug, which seems related with 64bit filesystem support, and I haven't tried it with a Live CD neither because the version that comes with Backtrack is the same that the Ubuntu one. Should I try to run any other live distro?

Thanks.


This is the output from  :

root@boole:/tmp/extundelete-0.2.4/src# ./extundelete --superblock /dev/mapper/vgdata-lvdata
NOTICE: Extended attributes are not restored.
Inodes count: 724463616
Blocks count: 3001453568
Reserved blocks count: 579569408
Free blocks count: 125142346
Free inodes count: 720230077
First Data Block: 0
Block size: 4096
Fragment size: 4096
# Blocks per group: 32768
# Fragments per group: 1
# Inodes per group: 2048
Mount time: 1387374327
Write time: 1387374981
Mount count: 22
Maximal mount count: -1
Magic signature: 61267
File system state: 1
Behaviour when detecting errors: 1
minor revision level: 0
time of last check: 1358939852
max. time between checks: 0
OS: 0
Revision level: 1
Default uid for reserved blocks: 0
Default gid for reserved blocks: 0
First non-reserved inode: 11
size of inode structure: 256
block group # of this superblock: 0
compatible feature set: 44
incompatible feature set: 706
readonly-compatible feature set: 123
128-bit uuid for volume: 33a9819a0b0a48c39b3caf9aa2132456
For compression: 0
Nr to preallocate for dirs: 0
Per group table for online growth: 0
uuid of journal superblock: 00000000000000000000000000000000
inode number of journal file: 8
device number of journal file: 0
start of list of inodes to delete: 0
HTREE hash seed: 2382291e3347fe3b930113b980f20c06
Default hash version to use: 1
Default type of journal backup: 1
First metablock group: 0
When the filesystem was created: 1358939852
Compatible feature set: HAS_JOURNAL EXT_ATTR DIR_INDEX
Incompatible feature set: FILETYPE
Read only compatible feature set: SPARSE_SUPER LARGE_FILE

And here is the output from dumpe2fs:

root@boole:/tmp/extundelete-0.2.4/src# dumpe2fs -h /dev/mapper/vgdata-lvdata
dumpe2fs 1.42 (29-Nov-2011)
Filesystem volume name:   <none>
Last mounted on:          /export/ic3data
Filesystem UUID:          33a9819a-0b0a-48c3-9b3c-af9aa2132456
Filesystem magic number:  0xEF53
Filesystem revision #:    1 (dynamic)
Filesystem features:      has_journal ext_attr dir_index filetype extent 64bit flex_bg sparse_super large_file huge_file uninit_bg dir_nlink extra_isize
Filesystem flags:         signed_directory_hash
Default mount options:    user_xattr acl
Filesystem state:         clean
Errors behavior:          Continue
Filesystem OS type:       Linux
Inode count:              724463616
Block count:              11591388160
Reserved block count:     579569408
Free blocks:              8715076938
Free inodes:              720230077
First block:              0
Block size:               4096
Fragment size:            4096
Blocks per group:         32768
Fragments per group:      32768
Inodes per group:         2048
Inode blocks per group:   128
Flex block group size:    16
Filesystem created:       Wed Jan 23 12:17:32 2013
Last mount time:          Wed Dec 18 14:45:27 2013
Last write time:          Wed Dec 18 14:56:21 2013
Mount count:              22
Maximum mount count:      -1
Last checked:             Wed Jan 23 12:17:32 2013
Check interval:           0 (<none>)
Lifetime writes:          39 TB
Reserved blocks uid:      0 (user root)
Reserved blocks gid:      0 (group root)
First inode:              11
Inode size:              256
Required extra isize:     28
Desired extra isize:      28
Journal inode:            8
Default directory hash:   half_md4
Directory Hash Seed:      1e298223-3bfe-4733-b913-0193060cf280
Journal backup:           inode blocks
Journal features:         journal_incompat_revoke FEATURE_I1
Journal size:             128M
Journal length:           32768
Journal sequence:         0x00062098
Journal start:            0

On 01/10/2014 05:42 PM, extundelete-users@lists.sourceforge.net wrote:
extundelete --superblock /dev/mapper/vgdata-lvdata

-- 
---------------------------
Josep Manel Andrés Moscardó
IT Technician at IC3
---------------------------


------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk


_______________________________________________
Extundelete-users mailing list
Extundelete-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/extundelete-users

-- 
---------------------------
Josep Manel Andrés Moscardó
IT Technician at IC3
Institut Català de Ciències del Clima (IC3)
Doctor Trueta 203 - 08005 Barcelona
Tel:+34 93 567 99 77 EXT 315
---------------------------