Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp540976pxa; Wed, 12 Aug 2020 08:09:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxtSMsNFGz62VWJdX55d+KkFzLs7BfOztphZLb/OLAPzycwraRnxiDQiiAoE9TYkjSfolc4 X-Received: by 2002:a05:6402:3070:: with SMTP id bs16mr324892edb.269.1597244968828; Wed, 12 Aug 2020 08:09:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597244968; cv=none; d=google.com; s=arc-20160816; b=thfb6edGjGIX3oeoCWi7LUVkPQFAlWyNH12VTJRaJucLrA8ZhUWf0jwbT3lDEZSH0k pwiTPH/JELc1px91QB7g7IyzhfgeZIx1yEUip/tZJm6QXW9UU8tsQuLF1ZeHy96PqCOT 1PJAcl9mOZjvTCg8cJPJcjnyScjiiMWexTTCDI31DLn6k9e0wzQlyiKhcj4L46U3+DsQ 1NYvg2Y5g+pnqHnsdTxamPd9G/xINF+N59y0BbTvTvEd9EDQQcLn+qB68j6PBVDOrp0N ACBDfkEvm56LAdWQYvrza/AmA5slASJBMh9vvs8vWSBsmW6F0K3Qs6AC2W09gWXtnI+C 367g== 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=emp+P1vD1KGaRSPNaY8WhFm4Yu+sD4sSIFVjeFSSsbE=; b=L7tsWd4DMPMQX+lH3UnBGQV20yN/VZI17f7bKzKvyNeSP2gdGt4p0BlZLBxs+ET0xv 2ebWP7yTc2fhJ7dknDkHEtxrmft4ZWy9Zfph5/QUqyH0zVTm7xKydnYwNpHx5eiNlVpV D/WmFq7+6gtarL6EZnekzahw/FWhSN274dIWoJe/3pr+55JjB9kXXB+ctDi7/lXBCctG UV8gCxMSWGywFiG84IA6WPtaJ0jSS7WFhnqetIY69349qnfofsNxYaA6lF0ei9kNpbqs TPkq+2WwPIKyY/lt/rbl9fGUzT38MsRFGlyIepqMW0CGmU++S0/WSSO4RxURPLDXpToE JpWQ== 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 p6si1452659edx.443.2020.08.12.08.09.05; Wed, 12 Aug 2020 08:09:28 -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 S1726609AbgHLPIZ (ORCPT + 99 others); Wed, 12 Aug 2020 11:08:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52502 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726477AbgHLPIX (ORCPT ); Wed, 12 Aug 2020 11:08:23 -0400 Received: from ZenIV.linux.org.uk (zeniv.linux.org.uk [IPv6:2002:c35c:fd02::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 05E8FC061383; Wed, 12 Aug 2020 08:08:23 -0700 (PDT) Received: from viro by ZenIV.linux.org.uk with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1k5sMJ-00E8Uk-5O; Wed, 12 Aug 2020 15:08:07 +0000 Date: Wed, 12 Aug 2020 16:08:07 +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: <20200812150807.GR1236603@ZenIV.linux.org.uk> References: <5C8E0FA8-274E-4B56-9B5A-88E768D01F3A@amacapital.net> <20200812143957.GQ1236603@ZenIV.linux.org.uk> 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 Wed, Aug 12, 2020 at 04:46:20PM +0200, Miklos Szeredi wrote: > > "Can those suckers be passed to > > ...at() as starting points? > > No. Lovely. And what of fchdir() to those? Are they all non-directories? Because the starting point of ...at() can be simulated that way... > > Can they be bound in namespace? > > No. > > > Can something be bound *on* them? > > No. > > > What do they have for inodes > > and what maintains their inumbers (and st_dev, while we are at > > it)? > > Irrelevant. Can be some anon dev + shared inode. > > The only attribute of an attribute that I can think of that makes > sense would be st_size, but even that is probably unimportant. > > > Can _they_ have secondaries like that (sensu Swift)? > > Reference? http://www.online-literature.com/swift/3515/ So, naturalists observe, a flea Has smaller fleas that on him prey; And these have smaller still to bite 'em, And so proceed ad infinitum. of course ;-) IOW, can the things in those trees have secondary trees on them, etc.? Not "will they have it in your originally intended use?" - "do we need the architecture of the entire thing to be capable to deal with that?" > > Is that a flat space, or can they be directories?" > > Yes it has a directory tree. But you can't mkdir, rename, link, > symlink, etc on anything in there. That kills the "shared inode" part - you'll get deadlocks from hell that way. "Can't mkdir" doesn't save you from that. BTW, what of unlink()? If the tree shape is not a hardwired constant, you get to decide how it's initially populated... Next: what will that tree be attached to? As in, "what's the parent of its root"? And while we are at it, what will be the struct mount used with those - same as the original file, something different attached to it, something created on the fly for each pathwalk and lazy-umounted? And see above re fchdir() - if they can be directories, it's very much in the game.