Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp545004pxa; Tue, 11 Aug 2020 09:06:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyIO4iUFeY95FT/iOswP4IwBn0jCcp3YX4vYmA+6I5iXHiBH/ndWm0DXlvKRxvq17P8sXfg X-Received: by 2002:a17:906:5f8a:: with SMTP id a10mr27782316eju.379.1597161997848; Tue, 11 Aug 2020 09:06:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597161997; cv=none; d=google.com; s=arc-20160816; b=usLQAeKHsMpoWZOz9VnFhMzI7Dma5hFMEt1bXzuNKhMwujzkP+pIw/c2ccq7yEyNpZ jLQDMcxPn5RCAoLkgS3LR1hXQhmbhZVPbkk0ChAuEC6jQ5tUp3bg1wpsysUB8EvkgP3+ E75K5j7K6UG5DFHQRVX1myByD2wamtsaz9e7nftWKKXAJAkIrq52fv4Rbq03nfgPM2EV 03dIwfoTx4lCuYR+iypfqfLKhvIOxaGCvDhF72gEWpf+vxruWPK5m1HeniTcWgShulew /EvQNbuU1scdSmNwxY6n8XYnlUdxh2Osj3ycNixcbj05XEWbpoqgeCjtuGWjDm7ZgrAz Jv/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=4zGY1Za0x3HzeZzAV4uj6Zaw/HdrxpAm8O+HlSaJkNI=; b=N7HdxmgM17M7x9e/wVaRHccQF0yNMNhZzcxI6x1IiKGUNb7qscQh7vLyjrOgvIQC5G wGx0MmeBAVu9tKFHLtyWO3QSRf0CaxYhcFzWE7k90bckfoRcr9BZ5ZvSvzaIh1vMyJPk SzgEEk3Hw+hzNEXADvwsCa3muFhgAZMQv7MPmIAQWBWYsb8xLIY82NWPOuVxmGcq5nrY Cn/HsNjfUNYarwIVtl1sZ2PZotCxgnI9sfFzMZ92yA02akgRdWmm8mTXAyovwBBSc4rl 3lpO8smNaz0n6agRsibdx88KkDIm3YpCbrYj0dqRdz2P5PuU7mOdJ533ec5bTOtj2wtF 8FyQ== 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 x25si12204424edq.539.2020.08.11.09.06.14; Tue, 11 Aug 2020 09:06:37 -0700 (PDT) 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 S1729015AbgHKQFm (ORCPT + 99 others); Tue, 11 Aug 2020 12:05:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37412 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728797AbgHKQFl (ORCPT ); Tue, 11 Aug 2020 12:05:41 -0400 Received: from ZenIV.linux.org.uk (zeniv.linux.org.uk [IPv6:2002:c35c:fd02::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BAF4BC06174A; Tue, 11 Aug 2020 09:05:41 -0700 (PDT) Received: from viro by ZenIV.linux.org.uk with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1k5WmM-00DeT8-FM; Tue, 11 Aug 2020 16:05:34 +0000 Date: Tue, 11 Aug 2020 17:05:34 +0100 From: Al Viro To: Linus Torvalds Cc: Miklos Szeredi , linux-fsdevel , David Howells , Karel Zak , Jeff Layton , Miklos Szeredi , Nicolas Dichtel , Christian Brauner , Lennart Poettering , Linux API , Ian Kent , LSM , Linux Kernel Mailing List Subject: Re: file metadata via fs API (was: [GIT PULL] Filesystem Information) Message-ID: <20200811160534.GL1236603@ZenIV.linux.org.uk> References: <1842689.1596468469@warthog.procyon.org.uk> <1845353.1596469795@warthog.procyon.org.uk> <20200811135419.GA1263716@miu.piliscsaba.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 11, 2020 at 08:20:24AM -0700, Linus Torvalds wrote: > I don't think this works for the reasons Al says, but a slight > modification might. > > IOW, if you do something more along the lines of > > fd = open(""foo/bar", O_PATH); > metadatafd = openat(fd, "metadataname", O_ALT); > > it might be workable. > > So you couldn't do it with _one_ pathname, because that is always > fundamentally going to hit pathname lookup rules. > > But if you start a new path lookup with new rules, that's fine. Except that you suddenly see non-directory dentries get children. And a lot of dcache-related logics needs to be changed if that becomes possible. I agree that xattrs are garbage, but this approach won't be a straightforward solution. Can those suckers be passed to ...at() as starting points? Can they be bound in namespace? Can something be bound *on* them? What do they have for inodes and what maintains their inumbers (and st_dev, while we are at it)? Can _they_ have secondaries like that (sensu Swift)? Is that a flat space, or can they be directories? Only a part of the problems is implementation-related (and those are not trivial at all); most the fun comes from semantics of those things. And answers to the implementation questions are seriously dependent upon that...