BSD filesystem defragmentation question

Bret McKee mckee at hpfcdc.HP.COM
Fri Aug 11 09:04:12 AEST 1989


>Assume I have an 8k/1k filesystem and create a file with 789
>bytes in it.  This gives me one fragment.
>
>Now, let's say I add to the file so it grows to be 3875 bytes,
>taking 4 fragments, and that these fragments are not all in
>the same block.

This is an impossible setup.  You would have one file taking up a 4k
"fragment".  At most, a file will occupy one incomplete block.

---
Bret Mckee

Hewlett Packard 
HP-UX Development Lab
Phone:(303)229-6116	email: mckee at hpfcls or mckee%hpfcde at hplabs.hp.com
 
Of course, these are just my opinions...



More information about the Comp.unix.wizards mailing list