Received: by 2002:ab2:710b:0:b0:1ef:a325:1205 with SMTP id z11csp202358lql; Sun, 10 Mar 2024 22:30:48 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX4FtbLYmOO35aeW448EqOGVAThfGS9mnzx0xjvb6DWXSWUdqXplMHOLs9YgNl3eL4eWCSx787s2KzWjHs2yd+TVh5bDTX0XDa/mRdcHQ== X-Google-Smtp-Source: AGHT+IF3U+Eh/JgC7s79y8WwrSCG+X7pqbnI5P+foczjAGXTGbXvcuqsHY/6CXG9ck8m3QIheQsI X-Received: by 2002:a0c:e646:0:b0:690:b43d:4f9b with SMTP id c6-20020a0ce646000000b00690b43d4f9bmr6656748qvn.23.1710135048527; Sun, 10 Mar 2024 22:30:48 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710135048; cv=pass; d=google.com; s=arc-20160816; b=gAxuGR1kV8YPKtLXQNwUBqFmXtFWCZMqM7VFZg1SlUOY7qu0VUgsJy3ukWI/cfyWiq LaiiNYQ8/NnwGHHWjfIcKlHkeFLMta44JXx0mT6hyiQIZ/waaJlFThrF6tIyhU36iW3Q WfUBA3+C00IY/Si/3oiA0z4ENBAf1yXSsOKYSqF02EsQtMLlptDPwa5XGvafRDyBWAZP inDg6mnhuaAPNj9X3NJL3FxO3xrtKT3qn/3QwFUpN5jsXKovDiWFURgyuRcXY28J5IMb ANTAfQEZAgIGJIjaT2J/vp23xZZfEWtPop/GBrWH3RFpeE+f52b1roNEyrzEcwBu+vGN xF+g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=Rizr8l7uC7l+AymItuBELPZGqhV97QKiNctOnrHH7eM=; fh=Bkvrx6BGzddcdNfAdWfC/DBQLJ50fTNTf/7Swo5tQeo=; b=foGGFV6wABbrT8labgrkURceCnFIZWrPmWRdxEI7lcK9yeI3HQsaQbKdohGfqGShty kdEWP9mTz4VkodXrEzmfsCaYwyXsrutvJVt555FBfbsSZPXv9vxrHlmMCYlZxfkflQ7D KWUNlV9mqDo2CP6GxO2ZiiO0w9YC7vmYpSEPYhlGKxhXxuZGkIgLXm3t4Sir1iRRjpO4 ZbX1VN4Mm2PRW4WbqWDUeaXnewdkcOfjk5/5L6hrdE21y1mmnXkQinjTEiiHh71no58i KAigxbVGLgjHMxoD8qCDmNyeXoQZ3cjmXnZnG259pW+Osw0DvNhgHJo0Bw0rUqmV4HOs Ix+Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@szeredi.hu header.s=google header.b="ZigxOb/w"; arc=pass (i=1 spf=pass spfdomain=szeredi.hu dkim=pass dkdomain=szeredi.hu dmarc=pass fromdomain=szeredi.hu); spf=pass (google.com: domain of linux-kernel+bounces-98475-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-98475-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=szeredi.hu Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id m15-20020ad45dcf000000b0068fff2fd84fsi4518802qvh.210.2024.03.10.22.30.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 10 Mar 2024 22:30:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-98475-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@szeredi.hu header.s=google header.b="ZigxOb/w"; arc=pass (i=1 spf=pass spfdomain=szeredi.hu dkim=pass dkdomain=szeredi.hu dmarc=pass fromdomain=szeredi.hu); spf=pass (google.com: domain of linux-kernel+bounces-98475-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-98475-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=szeredi.hu Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 461E71C21359 for ; Mon, 11 Mar 2024 05:30:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 216A7CA50; Mon, 11 Mar 2024 05:30:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=szeredi.hu header.i=@szeredi.hu header.b="ZigxOb/w" Received: from mail-ej1-f48.google.com (mail-ej1-f48.google.com [209.85.218.48]) (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 5783C8F5C for ; Mon, 11 Mar 2024 05:30:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.48 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710135036; cv=none; b=JRDcz/jiO9zTbXvBi0dkttwRGRr1N9ndH6XJtQSeIccwB9ngD/vAN5NiSazC6Hzo7df/LAKPu7J6q5aM013I3nWctldfMvW75teIm4GW8EckF0unGLcL/o7hQhQFYrmInfojehyDEVVTyxzzwwvzBDIiLRnWVb07ePQg+ax6OBQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710135036; c=relaxed/simple; bh=QSULCMgM4RBYyGQMMGu8HEaWE6kxcqd/HD0+6A0t17I=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=Bq+Em7OUOY9APxUbZFb/Bmzp0WnHtgJF3p6bB/JxmwN/IKlCr6/zPrHhyuzaxu0EyU3CGz3Zrk9mFKy/XUiFqJibrOA6sDlEarnBxrAau/xj3JANAUv4NHKXuaqteQFXZjyrdPukDlJXxHrHOtuX0EuJSqJzRjicBpAPt/QA/Mo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=szeredi.hu; spf=pass smtp.mailfrom=szeredi.hu; dkim=pass (1024-bit key) header.d=szeredi.hu header.i=@szeredi.hu header.b=ZigxOb/w; arc=none smtp.client-ip=209.85.218.48 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=szeredi.hu Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=szeredi.hu Received: by mail-ej1-f48.google.com with SMTP id a640c23a62f3a-a45c006ab82so454048266b.3 for ; Sun, 10 Mar 2024 22:30:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=szeredi.hu; s=google; t=1710135032; x=1710739832; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=Rizr8l7uC7l+AymItuBELPZGqhV97QKiNctOnrHH7eM=; b=ZigxOb/wYr7pH3fQe3EPwOBrgZ2shDNnr19MYFw85rRJ+0F+hHDarSBBwzClZQzqs6 BuDrQ7gWA4nZybFg9jMExlYlhap2s9OTc/f7wWsfbtl41TKNYqpJuysgTEyVeRs5vww/ QlZg419zeQfYE8j8QLPcDoPbn7vjdz8/L5IdE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710135032; x=1710739832; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Rizr8l7uC7l+AymItuBELPZGqhV97QKiNctOnrHH7eM=; b=m3jBWdc4LtWYpDYSYPueIJmdwdjx0uf0Mriz4qOMXkjieBbqfgjunEzY7NcnAdq4jL RC9voq1Gr4sLBuAz8/5CkYKLxSZi8AYonZUQv0oglpvx6/2qTkpi5gsJi5oAYN0iMCmW KrG/TrDtMZ99CAPfWsWqa3D+S2Rmke0pfjtLcdilvE8AcNTv66mTn87bFXK7+xqp0EBX DeeVX8fkmYqDXqtn1isyIDEiX8zyI7zzp2PfL82ek68gD6m4yWCH8d82Xz+MAAe2C5BO ak88nQFp5YKdEgDkT/Vx26v3jan2BYqZUPxcfv6iGF6+yhRZrpnDRWhZ0CD6ptHc7Ole I2XQ== X-Forwarded-Encrypted: i=1; AJvYcCVPb0eJJSkU/4mMg+0ap4LWAkxlCJOaLE0x0LmNme/zuFMF7Fvd7Ba7si2HUsxYQM2+qVO5nSrv7CUKjomsCdH3CW3xjc8C4qlHthA0 X-Gm-Message-State: AOJu0YzFgN4zN/kk6wGZvePLL9+hI9SOl4sWMHkZubQeMKAsX6dXRRHO FaHcpiDD+cCFz6AbVHj9qTLAdHU1X7I9lkmO70ounkzkG5dF9BPoOFyOoV3lgmQxudLOfP+dcex DSPMu6NijqQMaF1NN9zxV7oOnEpqykvYkDnD/aw== X-Received: by 2002:a17:906:1398:b0:a45:f5e1:1050 with SMTP id f24-20020a170906139800b00a45f5e11050mr3259326ejc.18.1710135032450; Sun, 10 Mar 2024 22:30:32 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240308022914.196982-1-kent.overstreet@linux.dev> <2uk6u4w7dp4fnd3mrpoqybkiojgibjodgatrordacejlsxxmxz@wg5zymrst2td> <20240308165633.GO6184@frogsfrogsfrogs> In-Reply-To: From: Miklos Szeredi Date: Mon, 11 Mar 2024 06:30:21 +0100 Message-ID: Subject: Re: [PATCH v2] statx: stx_subvol To: Dave Chinner Cc: "Darrick J. Wong" , Kent Overstreet , Neal Gompa , linux-fsdevel@vger.kernel.org, linux-bcachefs@vger.kernel.org, linux-btrfs@vger.kernel.org, linux-kernel@vger.kernel.org, Josef Bacik , Miklos Szeredi , Christian Brauner , David Howells Content-Type: text/plain; charset="UTF-8" On Mon, 11 Mar 2024 at 03:17, Dave Chinner wrote: > > On Fri, Mar 08, 2024 at 08:56:33AM -0800, Darrick J. Wong wrote: > > Should the XFS data and rt volumes be reported with different stx_vol > > values? > > No, because all the inodes are on the data volume and the same inode > can have data on the data volume or the rt volume. i.e. "data on rt, > truncate, clear rt, copy data back into data dev". It's still the > same inode, and may have exactly the same data, so why should change > stx_vol and make it appear to userspace as being a different inode? Because stx_vol must not be used by userspace to distinguish between unique inodes. To determine if two inodes are distinct within a filesystem (which may have many volumes) it should query the file handle and compare that. If we'll have a filesystem that has a different stx_vol but the same fh, all the better. Thanks, Miklos