Re: "detect-zeroes=unmap" support in Btrfs?

2017-07-18 Thread Roman Mamedov
On Tue, 18 Jul 2017 16:57:10 +0500 Roman Mamedov wrote: > if a block written consists of zeroes entirely, instead of writing zeroes to > the backing storage, converts that into an "unmap" operation > (FALLOC_FL_PUNCH_HOLE[1]). BTW I found that it is very easy to "offline" process preexisting fil

"detect-zeroes=unmap" support in Btrfs?

2017-07-18 Thread Roman Mamedov
Hello, Qemu/KVM has this nice feature in its storage layer, "detect-zeroes=unmap". Basically the VM host detects if a block written by the guest consists of zeroes entirely, and instead of writing zeroes to the backing storage, converts that into an "unmap" operation (FALLOC_FL_PUNCH_HOLE[1]). I