Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp2273678pxf; Sat, 13 Mar 2021 14:09:20 -0800 (PST) X-Google-Smtp-Source: ABdhPJxGnv2VHspCO4lS3CNKQxaGgmuGbJKjZnU8VVptAHJE+vohbOoIVEKBS3JAcg1uLVrQDzv0 X-Received: by 2002:aa7:d294:: with SMTP id w20mr22167003edq.68.1615673360558; Sat, 13 Mar 2021 14:09:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615673360; cv=none; d=google.com; s=arc-20160816; b=CXSU9bmlrppTUj52/ki74Gf+ldCyXfKJLmKBKj6GUiTaZkASuNHCWTzGBsrR5v6c5x 22ObYqAgdaH9isNs07Zl3J8CwAPwJ/YNgMD3O8XRddxPPQcqieUFbkDavgIBymlJ7lsr YvzQ85Fh0/ouU4HzG6I80EtK04rK4K1Zms1zsvLMAfv+PsfGLBIF32h3wYdfJD48qMrY t56wIk4Rc3q2CZIz0aIBfwdo+cFo//DZX999YXjoez+cOYqvorVlcdjUUk7kacIBtToC 4ywulEkXbtg+hCVh5q5R3RLFtDa+n3pH8rgcuzxEyQK7XVXq+Sr4zNNuPU20IipvDlmW JuOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=bgeq5/lKFlPIMfPgiEPgD45cARxzV1PeBbiRZMNddNI=; b=Vt5tImr7pFZ6WAvVTetjKt547cB7dhAD6szCMWJsUlJFNT+i1DUKnKm+LNfPztsgCb GezT5jjvrourSwEhbf99bA98KyxZmtI4fZiQAOsnZV05o7/wJyjkPfVwlmVKHURRyqJJ KbAvahEp1Im9J/PdSRH9Ck+J4HokHSA9/nFRDWbG3nPS4uyHazZp7Gj8yJ9ZVe1FdKur ZfWYavP9PzUCRj/g74ootEQoVYhAWgQG0Wr7+CADIF/vZ7eVDg6v4ovaFvBp1RPUKd0n 8j1xw5Eq4+cBkwa33d/viazlGECagrfchqCWaskzXY3Nb7hXlBSvmsxPRybsM2ZAZ8py UJKw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id lh6si7242614ejb.613.2021.03.13.14.08.57; Sat, 13 Mar 2021 14:09:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234788AbhCMWID (ORCPT + 99 others); Sat, 13 Mar 2021 17:08:03 -0500 Received: from tartarus.angband.pl ([51.83.246.204]:41154 "EHLO tartarus.angband.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234758AbhCMWHh (ORCPT ); Sat, 13 Mar 2021 17:07:37 -0500 Received: from kilobyte by tartarus.angband.pl with local (Exim 4.94) (envelope-from ) id 1lLCJc-00GN3W-3k; Sat, 13 Mar 2021 23:00:56 +0100 Date: Sat, 13 Mar 2021 23:00:56 +0100 From: Adam Borowski To: Neal Gompa Cc: Matthew Wilcox , Goldwyn Rodrigues , Shiyang Ruan , Linux Kernel Mailing List , linux-xfs , linux-nvdimm , linux-fsdevel , "Darrick J. Wong" , Jan Kara , Al Viro , Btrfs BTRFS , ocfs2-devel@oss.oracle.com, david , Christoph Hellwig Subject: Re: [PATCH v2 00/10] fsdax,xfs: Add reflink&dedupe support for fsdax Message-ID: References: <20210226002030.653855-1-ruansy.fnst@fujitsu.com> <20210310130227.GN3479805@casper.infradead.org> <20210310142159.kudk7q2ogp4yqn36@fiona> <20210310142643.GQ3479805@casper.infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Junkbait: aaron@angband.pl, zzyx@angband.pl X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: kilobyte@angband.pl X-SA-Exim-Scanned: No (on tartarus.angband.pl); SAEximRunCond expanded to false Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Mar 13, 2021 at 11:24:00AM -0500, Neal Gompa wrote: > On Sat, Mar 13, 2021 at 8:09 AM Adam Borowski wrote: > > > > On Wed, Mar 10, 2021 at 02:26:43PM +0000, Matthew Wilcox wrote: > > > On Wed, Mar 10, 2021 at 08:21:59AM -0600, Goldwyn Rodrigues wrote: > > > > DAX on btrfs has been attempted[1]. Of course, we could not > > > > > > But why? A completeness fetish? I don't understand why you decided > > > to do this work. > > > > * xfs can shapshot only single files, btrfs entire subvolumes > > * btrfs-send|receive > > * enumeration of changed parts of a file > > XFS cannot do snapshots since it lacks metadata COW. XFS reflinking is > primarily for space efficiency. A reflink is a single-file snapshot. My work team really wants this very patchset -- reflinks on DAX allow backups and/or checkpointing, without stopping the world (there's a single file, "pool", here). Besides, you can still get poor-man's whole-subvolume(/directory) snapshots by manually walking the tree and reflinking everything. That's not atomic -- but rsync isn't atomic either. That's enough for eg. dnf/dpkg purposes. Meow! -- ⢀⣴⠾⠻⢶⣦⠀ ⣾⠁⢰⠒⠀⣿⡁ ⢿⡄⠘⠷⠚⠋⠀ NADIE anticipa la inquisición de españa! ⠈⠳⣄⠀⠀⠀⠀