Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp1166442rbb; Mon, 26 Feb 2024 00:15:23 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWlarbcBDmWYh792fQ6n7kzo82S/Uq1VfbVEhY+iTmPGVXfiurPo1WqXxIPimGZdsQb/ODFe2WS6drognX3EnzKQeH7bc2ZfsJiBYOI/A== X-Google-Smtp-Source: AGHT+IGDEp71OWFrOkO+BeZXR0+SrTM5MLoHGEgjykfpGtZDY7etVciYwbxMyqxlMr4T+O1ju3HL X-Received: by 2002:a17:906:c34b:b0:a42:f194:9cd6 with SMTP id ci11-20020a170906c34b00b00a42f1949cd6mr3400165ejb.7.1708935323600; Mon, 26 Feb 2024 00:15:23 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708935323; cv=pass; d=google.com; s=arc-20160816; b=qdmDpC1JQ3qQfYEIaM8MEBBtF7xurkV1g+AFmv3BxwrWWHnW2+cvxIdqO4UGzo2VKy 1210o5Os8zgt/4qCxtBdGwFbClY5ck24YQO/vQQUIahnSbv06Gwr9foj3Tva3REpeXq3 1fs+ixKsWok0Wu2jDrcACebWAGx9eOv6neR8HlAKx/iTjqNnw/sxtYxjb0PjhniI9VXr tLrCgaGMbG82lEO9YITJskIiRnk4dmqaZkc/gWyzQO4FAr89wIJK2SIrtNnPH3u3NYjD Lvg10lD/pJxJfZFO59vLpjnihA2fg/9uJdHNiO2xrztfk/5g1evcJbzSg88jEDR1v0vl Mk1A== 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=tXChnYM6jqoevNoB06P78tnxuorT/1Io0Mk4HtClhXM=; fh=mJp3Y5eNOWStnmRAaHG2Oare0NprIsqwrVhjn/79Ly4=; b=E32VsqtWk4ayJyhMo56dTF8Vc4WKrAe2x96SOFTdsBollh20z3+E6/QtG7cnFbHIfl sgQ1L2c/dlP3AUGmO8AR+w6pdWIqGBdzj53a9BJV8EpJamqrl37cF/zPyO9KX9rrKnWZ Z1LFLktl6GFjnHazKjNvxRQYoy2qTKlH64VJad9EpLGLnh7Gs1AsESGrkFeYEkZDJRSE VbOnPimBYQySwc/1bKXGKpqEQPdFVosp47VIi+3j7vqQHplMMzcZK9RN2Onk0DEp6weW Q9FakL2/nrYx9ThurUtaQVUfRezzqgF0Uad/qTV8Q1GAyhBzk22cc//9wMLmZPfwYPPD teng==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@szeredi.hu header.s=google header.b=Iv1w8886; 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-80736-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-80736-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=szeredi.hu Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id ce9-20020a170906b24900b00a3f5e8b3046si1874132ejb.414.2024.02.26.00.15.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Feb 2024 00:15:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-80736-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@szeredi.hu header.s=google header.b=Iv1w8886; 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-80736-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-80736-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 5ED331F23809 for ; Mon, 26 Feb 2024 08:15:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 489D91CAB2; Mon, 26 Feb 2024 08:15:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=szeredi.hu header.i=@szeredi.hu header.b="Iv1w8886" 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 CFBD11C6A7 for ; Mon, 26 Feb 2024 08:15:04 +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=1708935307; cv=none; b=rP4oi2vQwfFNTg+BxM3GkqaoSB04aPO7jvVwTCmTgwn3xANApom12fqhZ3WaAs3hSMM+AAyOjWKSgvlbTU6xSkyRfCr7d0mrKDzN6wru5GI1q4GEkcIpxsiXgRlGNAwNkZ7rg4N0fDJceY+T/qRNHGjHvRfZUU3KP/6sRmaApRU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708935307; c=relaxed/simple; bh=wc6imTjryGlZEGM8Hd8Jr4/OgAt8z10WVDMkwzjaplg=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=nl5JUWcwloCs+WHkfyMmyxBH5IDk00W7MLXqRs5oxo7Nfc43akaPztO+YMIoggy3zzauNRWigkll+jk2GmWChfImUasQMRKeOBGf/gB/tT17AeqDcHeuH2BXnR6ODGuuJ65PAku+vmuMkvOeFET1iQkZ9OQkzb9mlyQXetLPsz8= 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=Iv1w8886; 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-a3e72ec566aso336226166b.2 for ; Mon, 26 Feb 2024 00:15:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=szeredi.hu; s=google; t=1708935303; x=1709540103; 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=tXChnYM6jqoevNoB06P78tnxuorT/1Io0Mk4HtClhXM=; b=Iv1w8886SfgA19CpcF2knQdSFAMl+enITl8gv1lm9dBe3PwBmUuUPD2vm0BEu+YFfe eF9Wn7aQ+52lonyWUn1a0crWNWzTYP8bahasZi+RGlu6/0nyK3b5qWuTEmocvB6FeHMh To0jQbVy9polW3MgJemaT4cG4ovUH2+8XuMAQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708935303; x=1709540103; 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=tXChnYM6jqoevNoB06P78tnxuorT/1Io0Mk4HtClhXM=; b=VTXDJAtElcC/Ygaxe9/WNBH0r3J3rwh/DngY0nS6CpCKt6JHTXPDYbES2IiMQ0NuR9 gxKCeyyw/NgWh0ItYmIcLvp0oSv3Fxn9BU6EAO1Rpktuxp0A8vbz18gDvVhne5XGH0Dh jrFk6hTsSwHpURKGJKMTCAX2Dc5OLe5yPJFqu+Jm3fr/nyxPrItT481L5pRQiVDtbaSJ PN3CYkRQkph88T5vmzKHkNAKm5kEvWOICFRmZRykyS3UOuul5HnrKN76EoE3Ch8+NRZV 69BIhQTbRDht12gzjMX0PwWv+GERjFLNBFfCETvdq4upIfKQ6AY7NNibiWNMDl261lBr gelA== X-Forwarded-Encrypted: i=1; AJvYcCUoBEsZ2IgIk6TcLQnTT4q1bPYmHrsw+N40ZLTjTroL0V8MhaWaWDTDh0g2lm3JqTdDCpZzbUQn210Zpw18pynH3kAh7Ah3lKRMbBe0 X-Gm-Message-State: AOJu0YxPI49JqqqtNjC0PBxZz+lWRsmxm5XLacRm50ZXshziLC374rTU gNS31qA6YIA8b8PUjOFhefOxuvNCkfO/oAPN56pW78apSWvjHPyBS/sRtoUS10a70mvKBESPElO m5O7XRp5pqaHQf3kq80y0XWDm1IwcHt58T4D09w== X-Received: by 2002:a17:906:3657:b0:a3e:127b:690e with SMTP id r23-20020a170906365700b00a3e127b690emr3685184ejb.70.1708935303115; Mon, 26 Feb 2024 00:15:03 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <2uvhm6gweyl7iyyp2xpfryvcu2g3padagaeqcbiavjyiis6prl@yjm725bizncq> <20240221210811.GA1161565@perftesting> <20240222154802.GA1219527@perftesting> In-Reply-To: <20240222154802.GA1219527@perftesting> From: Miklos Szeredi Date: Mon, 26 Feb 2024 09:14:51 +0100 Message-ID: Subject: Re: [LSF TOPIC] statx extensions for subvol/snapshot filesystems & more To: Josef Bacik Cc: Kent Overstreet , linux-bcachefs@vger.kernel.org, linux-btrfs@vger.kernel.org, linux-fsdevel@vger.kernel.org, Jan Kara , linux-kernel@vger.kernel.org, lsf-pc@lists.linux-foundation.org Content-Type: text/plain; charset="UTF-8" On Thu, 22 Feb 2024 at 16:48, Josef Bacik wrote: > Right, nobody is arguing that. Our plan is to > > 1) Introduce some sort of statx mechanism to expose this information. > 2) Introduce an incompat fs feature flag to give unique inode numbers for people > that want them, and there stop doing the st_dev thing we currently do. I don't get it. What does the filesystem (the actual bits on disk) have anything to do with how st_dev is exposed to userspace applications? This is not a filesystem feature, this is an interface feature. And I even doubt that salvaging st_dev is worth it. Userspace should just be converted to use something else. In other words st_ino *and* st_dev are legacy and we need to find superior alternatives. Seems like there's an agreement about file handle being able to replace st_ino. I'm not quite sure fsid or uuid can replace st_dev, but that's up for discussion. Thanks, Miklos