From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-it0-f49.google.com ([209.85.214.49]:36912 "EHLO mail-it0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751238AbdILTM4 (ORCPT ); Tue, 12 Sep 2017 15:12:56 -0400 Received: by mail-it0-f49.google.com with SMTP id o200so1033454itg.0 for ; Tue, 12 Sep 2017 12:12:56 -0700 (PDT) Subject: Re: qemu-kvm VM died during partial raid1 problems of btrfs To: Christoph Hellwig , Adam Borowski Cc: Marat Khalili , Duncan <1i5t5.duncan@cox.net>, linux-btrfs References: <69e843f4-1233-261a-3b88-306359ef20c9@rqc.ru> <20170912103214.6dzjlugcr7q47x6g@angband.pl> <2a0186c7-7c56-2132-fa0d-da2129cde22c@rqc.ru> <20170912111159.jcwej7s6uluz4dsz@angband.pl> <2679f652-2fee-b1ee-dcce-8b77b02f9b01@rqc.ru> <20170912172125.rb6gtqdxqneb36js@angband.pl> <20170912184359.hovirdaj55isvwwg@angband.pl> <20170912184749.GA4359@infradead.org> From: "Austin S. Hemmelgarn" Message-ID: Date: Tue, 12 Sep 2017 15:12:52 -0400 MIME-Version: 1.0 In-Reply-To: <20170912184749.GA4359@infradead.org> Content-Type: text/plain; charset=utf-8; format=flowed Sender: linux-btrfs-owner@vger.kernel.org List-ID: On 2017-09-12 14:47, Christoph Hellwig wrote: > On Tue, Sep 12, 2017 at 08:43:59PM +0200, Adam Borowski wrote: >> For now, though, I wonder -- should we send fine folks at util-linux a patch >> to make fallocate -d restore mtime, either always or on an option? > > Don't do that. Please just add a new ioctl or fallocate command > that punches a hole if the range is zeroed, similar to what dedup > does. It can probably even reuse a few helpers. > Agreed, that would be far preferred.