[Haiku-commits] r30960 - haiku/trunk/src/system/kernel/cache

Axel Dörfler axeld at pinc-software.de
Fri Jun 5 21:14:26 CEST 2009

Ingo Weinhold <ingo_weinhold at gmx.de> wrote:
> > So what happened if a program overwrites some file's contents, even 
> > if
> > they end up being the same size or larger than before?
> If opened with O_TRUNC -- which should be the case when overwriting -
> - it 
> would at least be truncated. Whether it uses the same space on disk 
> supposedly depends on BFS's allocation strategy. Axel certainly 
> knows.

A data stream allocation would always happen at the same place, but 
only if that is possible. If there already is a stream in the way, the 
new one will be created later. And if that earlier stream will be 
deleted, the new allocation might be at another place. In short: 
anything can happen.


More information about the Haiku-commits mailing list