[Nix-dev] Re: [Nix-commits] SVN commit: nix - 15436 - raskin - nix/trunk/src/libutil

Eelco Dolstra e.dolstra at tudelft.nl
Wed May 6 11:25:32 CEST 2009


Michael Raskin wrote:

> You can view the changes in this commit at:
>    https://svn.nixos.org/viewvc/nix?rev=15436&view=rev
> 
> Modified:
>    nix/trunk/src/libutil/archive.cc
>    nix/trunk/src/libutil/archive.hh
> 
> Log:
> Add an ftruncate call paired with fallocate to play safe with  some FSes (namely, BtrFS fallocate sets file size to allocated size, i.e. multiple of block size)

That seems like a fairly large bug in BtrFS...

(And should we have workarounds for bugs in pre-alpha filesystems?)

-- 
Eelco Dolstra | http://www.st.ewi.tudelft.nl/~dolstra/



More information about the nix-dev mailing list