R
Roedy Green
I just notice how when I create files with Java, they often are badly
fragmented, with ten or more fragments.
This could be avoided with a simple strategy. When you open the file
for write you specify the estimated size of the file. The OS then
looks for a continuous hunk of disk space to satisfy. If you guess too
big, you return the tail to the free space pool. If you guess too
small, it adds another extent or two.
fragmented, with ten or more fragments.
This could be avoided with a simple strategy. When you open the file
for write you specify the estimated size of the file. The OS then
looks for a continuous hunk of disk space to satisfy. If you guess too
big, you return the tail to the free space pool. If you guess too
small, it adds another extent or two.