> > I'm getting strange results when I map out the blocks used in files > > larger than a several thousand KB. I never seem to get any more than > > 1024 contiguous data blocks in a row. > > > filefrag command comes with e2fsprogs will print the file fragmentation > info. I guess you can try filefrag -v command and see if that matches > what your scripts reported. Thanks for the pointer. It seems my program only counts data blocks, so it sees the indirect block for each 1024 data blocks as a space between extents. I will have to read the filefrag source and account for that. Cheers, Eric
Attachment:
signature.asc
Description: This is a digitally signed message part