From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf1-f176.google.com (mail-pf1-f176.google.com [209.85.210.176]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 12D342ED84C for ; Mon, 20 Oct 2025 21:43:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.176 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760996593; cv=none; b=SNe3MyGyhXfK3mfFUXBLekqN5T6DIsHxJjkClq5WkmgRuCy/c6p+qdYuDUXj5gCYTFbxnF2E61+6KpwAJ7QeZ49MHIYeqLw5rE/1A9dOTUM/JXYdZJSkUphJIv+I1Q6MBJmgBjFb/Z78AjnXucgZV+Gn/SqPdBMcd8EAb/7b8jU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760996593; c=relaxed/simple; bh=y2m25W7zkJm4lmZAqrSB8Op5PkRsIhwCbtsRZflqNDw=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=sEYyQMc9I/IoXz8zUutCJxWoUzrPPb0xt6OLduf/ebJ/HvqxuBt1FoBvLm95NRPOCtx9cJQykjA2IlQ4xXmkgrJxppEW8qqNMx9cOmBk2pkbypxgUChFclQX4PZIxBxbLhL55754+5hmDArCR6MEgO8LAHldG+9MAbwoFaDL6mY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=fromorbit.com; spf=pass smtp.mailfrom=fromorbit.com; dkim=pass (2048-bit key) header.d=fromorbit-com.20230601.gappssmtp.com header.i=@fromorbit-com.20230601.gappssmtp.com header.b=bCqF63Fc; arc=none smtp.client-ip=209.85.210.176 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=fromorbit.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=fromorbit.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=fromorbit-com.20230601.gappssmtp.com header.i=@fromorbit-com.20230601.gappssmtp.com header.b="bCqF63Fc" Received: by mail-pf1-f176.google.com with SMTP id d2e1a72fcca58-79ef9d1805fso4490076b3a.1 for ; Mon, 20 Oct 2025 14:43:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fromorbit-com.20230601.gappssmtp.com; s=20230601; t=1760996591; x=1761601391; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=LQOa5MIIi+7CgnSuXmOmCMZIcE9hFQ3mA2YcxpQezgc=; b=bCqF63FcLxJQ/OV38f81uNkBz/+g2HrlN3yo0wwWS9kJuir8mmOD4kIagjZ9kC3449 lEgtmftxq15FfqD7HBdxO2dJzWigu4f5x7QSw+xuPgWiTLJVpyx20FwK4AUQt2x0ulXU R79bA3G8B6ISlCjzBgu1bneuaC92KgNjHNU1bKFuvXuTTvQqmfOoM1JVW/2Qp6UdyBjH r6avvWdgNIzFtBf6lADLi2oMXwNuPGkDzdK/ySlVTekXFyiPBqcvUj3AMsiZfhs7AWaR QMQbVlSHOqRaaR1XuZ99ZkIuSPvoK//NTXi2C0t2MhPLBszHgkHSls2L1VH1PCZrvY7p XlPA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1760996591; x=1761601391; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=LQOa5MIIi+7CgnSuXmOmCMZIcE9hFQ3mA2YcxpQezgc=; b=WFer0c3biR+c/ZBDWMBO/w7NO9lSIt3LfmNORf3iSiZ1O+N8fd6BGhIz4Rp00AOExo PBLoc0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OTlztv/NSJpMhRfSbA7KZpViYePBOTXDJQlldupatbqjRCb7qVsG4PmXw== X-Received: by 2002:a05:6a00:230a:b0:781:16de:cc1a with SMTP id d2e1a72fcca58-7a220d37785mr19816985b3a.32.1760996591191; Mon, 20 Oct 2025 14:43:11 -0700 (PDT) Received: from dread.disaster.area (pa49-180-91-142.pa.nsw.optusnet.com.au. [49.180.91.142]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-7a22ff184basm9336482b3a.15.2025.10.20.14.43.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Oct 2025 14:43:10 -0700 (PDT) Received: from dave by dread.disaster.area with local (Exim 4.98.2) (envelope-from ) id 1vAxel-0000000HUpj-3jCY; Tue, 21 Oct 2025 08:43:07 +1100 Date: Tue, 21 Oct 2025 08:43:07 +1100 From: Dave Chinner To: Anand Jain Cc: Christoph Hellwig , =?iso-8859-1?Q?Andr=E9?= Almeida , linux-kernel@vger.kernel.org, linux-btrfs@vger.kernel.org, linux-unionfs@vger.kernel.org, linux-fsdevel@vger.kernel.org, kernel-dev@igalia.com, Miklos Szeredi , Amir Goldstein , Chris Mason , David Sterba , "Guilherme G . Piccoli" Subject: Re: [RFC PATCH 1/1] ovl: Use fsid as unique identifier for trusted origin Message-ID: References: <20251014015707.129013-1-andrealmeid@igalia.com> <20251014015707.129013-2-andrealmeid@igalia.com> <5137ce36-c3b4-4a0a-83af-e00892feaf43@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <5137ce36-c3b4-4a0a-83af-e00892feaf43@gmail.com> On Wed, Oct 15, 2025 at 07:46:34AM +0800, Anand Jain wrote: > On 14-Oct-25 12:39 PM, Christoph Hellwig wrote: > > On Mon, Oct 13, 2025 at 10:57:07PM -0300, André Almeida wrote: > > > Some filesystem have non-persistent UUIDs, that can change > > > between mounting, even if the filesystem is not modified. To > > > prevent false-positives when mounting overlayfs with index > > > enabled, use the fsid reported from statfs that is persistent > > > across mounts. > > > > Please fix btrfs to not change uuids, as that completely defeats > > the point of uuids. > > We needed cloned device mount support for an A/B testing use case, > but changing the on-disk UUID defeats the purpose. > > Right now, ext4 and Btrfs can mount identical devices, but XFS > can't. Absolutely not true. XFS has been able to mount filesystems with duplicate UUIDs on Linux for almost 25 years. The "-o nouuid" mount option (introduced in 2001) to bypass the duplicate uuid checks done at mount time. XFS tracks all mounted filesystem UUIDs largely to prevent multiple mounts of the same filesystem due to multipath storage presenting it via multiple different block devices. The nouuid mount option was added back when enterprise storage arrays started supporting hardware level thinp and LUN clone/snapshot functionality. Adding "-o nouuid" allowed cloned LUNs to be mounted for for backup/recovery purposes whilst the main filesystem was still mounted and in active use. > How about extending this to the common > VFS layer and adding a parameter to tell apart a cloned > device from the same device accessed through multiple > paths? Perhaps we should lift the XFS UUID tracking code to the VFS and intercept "-o nouuid" at the VFS to allow duplicates only when that mount option is set? -Dave. -- Dave Chinner david@fromorbit.com