You are not logged in.

#1 2014-03-07 08:49:58

serseri
Member
Registered: 2014-02-22
Posts: 4

about BTRFS, why a non-cloned file gets fragmented by writing over it?

Hello people. By saying non-cloned, I mean any file that has the CoW attribute but doesn't use it. Writing over it (non-truncating) makes allocations outside boundaries of original file. Original file is being protected like if it is cloned. That doesn't make sense.

Can somebody explain that?

Offline

#2 2014-03-17 17:23:21

anatolik
Developer
Registered: 2012-09-27
Posts: 458

Re: about BTRFS, why a non-cloned file gets fragmented by writing over it?

Maybe because btrfs does not really enabled CoW on it? CoW can be enabled on empty files only. If you had a non-empty file and then set +C attribute then btrfs still be going to use CoW for this file.


Read it before posting http://www.catb.org/esr/faqs/smart-questions.html
Ruby gems repository done right https://bbs.archlinux.org/viewtopic.php?id=182729
Fast initramfs generator with security in mind https://wiki.archlinux.org/index.php/Booster

Offline

Board footer

Powered by FluxBB