Re: fiemap is broken for sparse file in ext4?

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Eric Sandeen
Date: Thursday, June 10, 2010 - 9:08 pm

Tao Ma wrote:

What are you using to call fiemap?  Here it seems to be working:

# dd if=/dev/zero of=testfile1 bs=1M count=1 seek=1;

# filefrag -v testfile1
Filesystem type is: ef53
Filesystem cylinder groups is approximately 119
File size of testfile1 is 2097152 (512 blocks, blocksize 4096)
 ext logical physical expected length flags
   0     256   151946               1 merged
   1     257   151951   151946      2 merged
   2     259   152434   151952    253 merged,eof
testfile1: 4 extents found

And with my homegrown fiemap tester:

# ./fiemap-test testfile1
ext:   0 logical: [     256..     256] phys:   151946..  151946 flags: 0x1000 tot: 1
ext:   1 logical: [     257..     258] phys:   151951..  151952 flags: 0x1000 tot: 2
ext:   2 logical: [     259..     511] phys:   152434..  152686 flags: 0x1001 tot: 253

... seems ok here, aside from the fragmentation :) ...

-Eric
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
fiemap is broken for sparse file in ext4?, Tao Ma, (Thu Jun 10, 7:15 pm)
Re: fiemap is broken for sparse file in ext4?, Eric Sandeen, (Thu Jun 10, 9:08 pm)
Re: fiemap is broken for sparse file in ext4?, Tao Ma, (Thu Jun 10, 10:05 pm)
Re: fiemap is broken for sparse file in ext4?, Eric Sandeen, (Fri Jun 11, 6:43 am)
Re: fiemap is broken for sparse file in ext4?, Eric Sandeen, (Fri Jun 11, 8:46 am)
Re: fiemap is broken for sparse file in ext4?, Greg Freemyer, (Fri Jun 11, 9:46 am)
Re: fiemap is broken for sparse file in ext4?, Eric Sandeen, (Fri Jun 11, 9:56 am)
Re: fiemap is broken for sparse file in ext4?, Tao Ma, (Fri Jun 11, 4:46 pm)