data blocks question

Nehal nehalmistry at
Wed Sep 29 10:14:07 PDT 2004

on my ufs2 partition, there is a file that has a size of 65536,
and has 2 direct blocks only. the block size of the fs is 16k and
fragment block size is 2k.

how can this be possible? wouldn't 2 direct blocks mean that the
maximum size is 2x16k = 32k? or am i not understanding something

i've made a copy of the file, and the new file has 4 direct

it is a binary file, and i can read it fine (ie, cat it). i've
done fsck on the filesystem and it found no problem.


More information about the freebsd-fs mailing list