Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp830066pxa; Wed, 12 Aug 2020 14:31:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy2yuuSGNN/95MIcywnax3rDv0h8O10/J7YJougkyEKswFkok9Cvzd/frTrZQcquKUVXaBU X-Received: by 2002:a17:906:3890:: with SMTP id q16mr1761133ejd.107.1597267911682; Wed, 12 Aug 2020 14:31:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597267911; cv=none; d=google.com; s=arc-20160816; b=zkU6L5YaOqen5qsnZd286+m6CCeJgvXmnPRmCZ3sWIZtcgUe/i2rvRGevJ2Ne+/2jq cTVUNVQzmQvNJPWHYESqC8S5sgEWqMjWrsQYXKGP83EfmqZlrij/iRTlnSOBPrWpP4+L znwC5REAqWLSyVTj4+jLVIDgdvYH9CqBqJU/aXKBROCn77k0xjMDOZvQHAAcdNISu+hd Ry/LhR54gogGkRnynlOcmIQwzsMphzRGZDDe2m5kqUva2CKZJPSIMHOriVpd8ui9FgkH PaIW6jf5smjAUxSMdTaUnxtW/bhKYBiGAjQiY/GFoGry97Dd0Xep+LAWhI7LRLV+98vb ISFA== 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=1QUWwk6bd8WuQwegcJS8pZawoCOq09+CA95zxgJs3lQ=; b=yygdU/+9ebYwmjVo0a6oiuJJg+45QL0Sew1z80Hf6tfzJinfaoMJ8X8ldsQTVdmxW5 eMu9p2E1AVPiL1ufSvBt/rfFBKkBezs9npYwP1ndkw5DWgm7sD0nHO/TL0gBhqFd8/qU AkteHmYINnwV5fW7pdy2WQ5jlfUBfxAW7+AfeygFiT9xpGQK004iJl9PiBdR+43EmcWA RIgx7Tv9S5tNlPXTZwTpI7VoptHaIseiOa2Orc6ocIFe5iux0Nsb6uxhj3vL8eZFXwKe hcnHemogO7CxF+ufJ7Cn6IAMkbYRcuQiAWdnpXIAt2fWiPoeX7V5/9nXAEhziUhoJDwl Uo6A== 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 l7si1930400edn.510.2020.08.12.14.31.27; Wed, 12 Aug 2020 14:31:51 -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 S1726567AbgHLVa7 (ORCPT + 99 others); Wed, 12 Aug 2020 17:30:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54832 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726030AbgHLVa6 (ORCPT ); Wed, 12 Aug 2020 17:30:58 -0400 Received: from ZenIV.linux.org.uk (zeniv.linux.org.uk [IPv6:2002:c35c:fd02::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 11F36C061383; Wed, 12 Aug 2020 14:30:58 -0700 (PDT) Received: from viro by ZenIV.linux.org.uk with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1k5yKX-00EISw-Ml; Wed, 12 Aug 2020 21:30:41 +0000 Date: Wed, 12 Aug 2020 22:30:41 +0100 From: Al Viro To: Miklos Szeredi Cc: Linus Torvalds , Jann Horn , Casey Schaufler , Andy Lutomirski , 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: <20200812213041.GV1236603@ZenIV.linux.org.uk> References: <20200812143957.GQ1236603@ZenIV.linux.org.uk> <20200812150807.GR1236603@ZenIV.linux.org.uk> <20200812163347.GS1236603@ZenIV.linux.org.uk> <20200812173911.GT1236603@ZenIV.linux.org.uk> <20200812183326.GU1236603@ZenIV.linux.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200812183326.GU1236603@ZenIV.linux.org.uk> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 12, 2020 at 07:33:26PM +0100, Al Viro wrote: > BTW, what would such opened files look like from /proc/*/fd/* POV? And > what would happen if you walk _through_ that symlink, with e.g. ".." > following it? Or with names of those attributes, for that matter... > What about a normal open() of such a sucker? It won't know where to > look for your ->private_data... > > FWIW, you keep refering to regularity of this stuff from the syscall > POV, but it looks like you have no real idea of what subset of the > things available for normal descriptors will be available for those. Another question: what should happen with that sucker on umount of the filesystem holding the underlying object? Should it be counted as pinning that fs? Who controls what's in that tree? If we plan to have xattrs there, will they be in a flat tree, or should it mirror the hierarchy of xattrs? When is it populated? open() time? What happens if we add/remove an xattr after that point? If we open the same file several times, what should we get? A full copy of the tree every time, with all coherency being up to whatever's putting attributes there? What are the permissions needed to do lookups in that thing? All of that is about semantics and the answers are needed before we start looking into implementations. "Whatever my implementation does" is _not_ a good way to go, especially since that'll be cast in stone as soon as API becomes exposed to userland...