Received: by 2002:ac0:aa62:0:0:0:0:0 with SMTP id w31-v6csp1219774ima; Wed, 24 Oct 2018 17:02:07 -0700 (PDT) X-Google-Smtp-Source: AJdET5fI85u/NZrwfFUlL3+7tKc5fR3IajafVIh3agV3fU0FLBoz7RR8Vkuqzek4cs20ditaMDee X-Received: by 2002:a62:fcd8:: with SMTP id e207-v6mr4559234pfh.132.1540425727536; Wed, 24 Oct 2018 17:02:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540425727; cv=none; d=google.com; s=arc-20160816; b=yHuyJvAgVAOmrkLvabDsj1uoV5RssMGJrTfFu8OtkgnoikgBNprTgxhSBEpdlN7b2P CAS4OORpIN8DMwfmNg4Shn+RXl7zQXWrfxHmpnsrfnjnZUMTZnTTYvhgqX0Cq0WbFZx1 aAt+1uCpBF335vf5QaY+9KMog2KCghusX+lixamAHXK9SvpqORXfaq7Oabe1GoVBb1W3 mIGLwHBRHfltWjzNYhA6BX7TIcaRH9ta8UqgZwhlg4uJUrqzlNp1/CDw4tjKtW6/RE6o 4bHA2gzNoctwgPSVHKe/YIDrvJ0R0Eaf1TXVE2E5vAexWSWPgoewJcp9M5VI4V542oEc 72UQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:organization:in-reply-to :content-disposition:mime-version:references:mail-followup-to :message-id:subject:cc:to:from:date; bh=WWsqgNbv2xcEDiZcYHNqw/OknjQ6gdrHi7bTV6p6Plo=; b=tEFQ1DAukn4wiYLqisT9GA9jPdoBuIKBumkeOc8ZH4d4CUmzd9lc1ztooW2rR6pnHo +Q27bOqq8He2qBMlE6NIfMYMt2aeJTdJkENWrQn8W4FvlI2d/tNo+BcC0u6mslU59EPR iECdAil6i/siYuKnfeIBrFhBLKZ6gV54I8q6YpbPWiQEpzRGTJyPKgnK5oGxsuiJtSRW VpR2ATf2lZvnRRmeUG0/QaQN01bCBacPSerieKmlBS1ybXdE7JRf54sScc3aAisAIz1l mML7JpK2ndtCzdFA7Dx5ynQxW5hz7PTBS10l20msmtV/v3EruqDjHMCDUetts9Mvs3B5 6iaA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q16-v6si6099547pgb.266.2018.10.24.17.01.51; Wed, 24 Oct 2018 17:02:07 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726909AbeJYIbk (ORCPT + 99 others); Thu, 25 Oct 2018 04:31:40 -0400 Received: from mx1.redhat.com ([209.132.183.28]:36334 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726497AbeJYIbk (ORCPT ); Thu, 25 Oct 2018 04:31:40 -0400 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 1D33AC05090A; Thu, 25 Oct 2018 00:01:29 +0000 (UTC) Received: from agk-dp.fab.redhat.com (agk-dp.fab.redhat.com [10.33.15.10]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 274775D75D; Thu, 25 Oct 2018 00:01:25 +0000 (UTC) Received: from agk by agk-dp.fab.redhat.com with local (Exim 4.69) (envelope-from ) id 1gFT5X-00067Y-Qf; Thu, 25 Oct 2018 01:01:23 +0100 Date: Thu, 25 Oct 2018 01:01:23 +0100 From: Alasdair G Kergon To: Paul Lawrence Cc: Mikulas Patocka , Alasdair Kergon , Mike Snitzer , linux-doc@vger.kernel.org, kernel-team@android.com, Jonathan Corbet , linux-kernel@vger.kernel.org, linux-raid@vger.kernel.org, dm-devel@redhat.com, Shaohua Li Subject: Re: [dm-devel] [RFC] dm-bow working prototype Message-ID: <20181025000123.GB22722@agk-dp.fab.redhat.com> Mail-Followup-To: Paul Lawrence , Mikulas Patocka , Alasdair Kergon , Mike Snitzer , linux-doc@vger.kernel.org, kernel-team@android.com, Jonathan Corbet , linux-kernel@vger.kernel.org, linux-raid@vger.kernel.org, dm-devel@redhat.com, Shaohua Li References: <20181023212358.60292-1-paullawrence@google.com> <20181023221819.GB17552@agk-dp.fab.redhat.com> <296148c2-f2d9-5818-ea76-d71a0d6f5cd4@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: Red Hat UK Ltd. Registered in England and Wales, number 03798903. Registered Office: Peninsular House, 30-36 Monument Street, 4th Floor, London, England, EC3R 8NB. User-Agent: Mutt/1.5.18 (2008-05-17) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.31]); Thu, 25 Oct 2018 00:01:29 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 24, 2018 at 03:24:29PM -0400, Mikulas Patocka wrote: > What about allocating a big file, using the FIEMAP ioctl to find the For reference, dmfilemapd in the lvm2 tree (in daemons/) uses FIEMAP (in libdm/libdm-stats.c) for monitoring I/O by file. > If you decide that rollback is no longer needed, you just unload the > snapshot target and delete the big file. If you decide that you want to > rollback, you can use the snapshot merge functionality (or you can write a > userspace utility that does offline merge). There's some old code from Mark McLoughlin for userspace snapshot merging here: https://people.gnome.org/~markmc/code/merge-dm-snapshot.c Alasdair