

It counts files with more than one extent as fragmented, while it knows that the extents are contiguous: $ sudo filefrag file.file I have just found that I cannot rely on e4defrag output. One idea I have is to move the files to other filesystem and then copy them back somehow telling the filesystem to store them contiguously. Moreover, I have other filesystem available with enough space to use as a buffer. I do not need the filesystem mounted while defragmenting. There are several free blocks (according to df -h: 434M available of 85G and 80G used) which can be used as buffer. The filesystem has all files in it already (they are not to be changed in any way) and it is almost full. Sadly e4defrag (advised here: How to defrag an ext4 filesystem) fails to defragment several files. I want all my files in an ext4 filesystem not fragmented because of reasons.
