9

This is an output from dumpe2fs:

root: ~/# dumpe2fs -h /dev/sdb3 | grep -i 'fragment|block size'
dumpe2fs 1.39 (29-May-2006)
Block size:               4096
Fragment size:            4096
Fragments per group:      32768

Is this related to disk fragmentation?

1 Answer 1

11

No. ext3fs doesn't support block fragmentation so a one byte file will use a whole 4096 block.

On the opposite, for example UFS supports multiple fragments in a block so small files won't fill a file system as fast as they will do on ext3fs.

This is unrelated to file system fragmentation which is about file data blocks not being contiguous and sequential.

10
  • 2
    Thanks for the answer. The mkfs manual is very cryptic-only a one liner for the "-f fragment-size" option. If block fragmentation is not supported in ext2/3/4, why does the -f option appear in the mke2fs manual? Nothing serious, just curious.
    – JBraganza
    Commented Jul 9, 2011 at 0:50
  • 3
    Just in case someone want to implement it. See the BUGS section in the very same manual page: mke2fs accepts the -f option but currently ignores it because the second extended file system does not support fragments yet.
    – jlliagre
    Commented Jul 9, 2011 at 1:27
  • It is one of those things that was put in as a planned feature, but never implemented.
    – psusi
    Commented Jul 9, 2011 at 1:28
  • @psusi: actually, it's one of those things that was put to make ext2fs more like UFS and FFS. Probably noone ever expected it to be implemented in the future.
    – ninjalj
    Commented Jul 10, 2011 at 20:38
  • 1
    @jlliagre : I know, and I agree. It just goes to show that the term fragmentation can have different meanings in different contexts. In any case, I also put the link to Oracle's doc, because it's a concise description of what a fragment is in FFS/UFS
    – ChennyStar
    Commented Jan 8 at 9:14

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .