Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp5376817iob; Mon, 9 May 2022 15:12:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw+RK0VAISm4Z7vhOoGDfoCMP6AmmJMAKbREnvWJVd3LAojvpRqX55bjW87687CLfB3BHGq X-Received: by 2002:a05:6402:368c:b0:428:715f:5cf7 with SMTP id ej12-20020a056402368c00b00428715f5cf7mr16138243edb.158.1652134343064; Mon, 09 May 2022 15:12:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652134343; cv=none; d=google.com; s=arc-20160816; b=0vXnw0fi9ZJypO1gzoHpgqShEIENMj+zBAqkj7F44tsWmy5pCEMT28Ql6vEAwNHbDB UzmegQmSKOrbQ7qH+kjYOgW73SpJVCCVAPy0qcnLQt0IjimkJZEdP9l8W+aYZcJdR4/0 Qlq327eQvBvDUloU5LFsQGdgLPpNEO/Kui/pU1yeNbMiCYAkcnl2ZJ+RZBNGS4p2B9Bd rdx1H0rPMq0wOL0DjXe1XPDoI8Y5QV3BgAKAehNAFOc4m7vEKRAM+PqhcrNfga6VEDM6 6He7i5KQf6UJa66t+0bmseHvhsyRLFy0HvTDLTOvLGs6a/7D/IyDEWr4F3jtworncKeL j40g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=QL1F9UPYT7jlxdo3Go3SmyooqLgW/z19aEMgC8ZMp+U=; b=BERhHDIGe142DbRr9OYDBfX/Vk7mtILFpd4pjvu14gI9esPJxMh3WBjz/iJpOzCA+o 72pwU8RQAbbdlfO86ihYwU5X3r1hnTjNlCtmmgeVsEOhpHtqYLeikbRdTlqckslqu4hU a2a3Xzm66yDNL3ySVK9F5moApScmFnfWnYGImlzDg30JOm5/6nUFMC9kioJUSGeM42cX oIYf4Jy6vYnCxpqumMmtOQCYC+V62e9d3EnHUcGXCl1SYvk9kaHSQTS++kgBe6sc7q66 PVmokiPXicLX/wuTFRZmow9WLFPPYzEwREKsf0OI02VWj0F3X96tpg00jmpRDT8ODFiC RfXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=UPP46Zlv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gt6-20020a1709072d8600b006f503aa1a11si15569581ejc.863.2022.05.09.15.11.58; Mon, 09 May 2022 15:12:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=UPP46Zlv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230185AbiEIVqu (ORCPT + 99 others); Mon, 9 May 2022 17:46:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42258 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229506AbiEIVqp (ORCPT ); Mon, 9 May 2022 17:46:45 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 410D21B7939 for ; Mon, 9 May 2022 14:42:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1652132569; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=QL1F9UPYT7jlxdo3Go3SmyooqLgW/z19aEMgC8ZMp+U=; b=UPP46ZlvrwpmhbKzqbJuSuk8WZr9L0Glb6+oV+dY2GFBSDcqReiOTdZ2OQUWrEwbR9YH4+ yQcSv/1lu6CXDQ/2wGkVw0sKbJHC5H6o9om9RoJfYDL0KMX1gH0qPd2kcW0tqb6bwqQceF 7A7VAPzhK6Ek3QwpqWJPNmDYPcC4XdI= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-8-vciVVmlzPqmBLYONgGMbxw-1; Mon, 09 May 2022 17:42:48 -0400 X-MC-Unique: vciVVmlzPqmBLYONgGMbxw-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 32F6A185A7B2; Mon, 9 May 2022 21:42:42 +0000 (UTC) Received: from horse.redhat.com (unknown [10.22.11.174]) by smtp.corp.redhat.com (Postfix) with ESMTP id CAF6D2166B2F; Mon, 9 May 2022 21:42:41 +0000 (UTC) Received: by horse.redhat.com (Postfix, from userid 10451) id 7F0F0220463; Mon, 9 May 2022 17:42:41 -0400 (EDT) Date: Mon, 9 May 2022 17:42:41 -0400 From: Vivek Goyal To: Christian Brauner Cc: Amir Goldstein , Miklos Szeredi , linux-fsdevel , Dave Chinner , Theodore Ts'o , Karel Zak , Greg KH , linux-kernel , Linux API , linux-man , LSM , Ian Kent , David Howells , Linus Torvalds , Al Viro , Christian Brauner , James Bottomley Subject: Re: [RFC PATCH] getting misc stats/attributes via xattr API Message-ID: References: <20220509124815.vb7d2xj5idhb2wq6@wittgenstein> <20220509150856.cfsxn5t2tvev2njx@wittgenstein> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220509150856.cfsxn5t2tvev2njx@wittgenstein> X-Scanned-By: MIMEDefang 2.78 on 10.11.54.6 X-Spam-Status: No, score=-3.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 09, 2022 at 05:08:56PM +0200, Christian Brauner wrote: [..] > Having "xattr" in the system call name is just confusing. These are > fundamentally not "real" xattrs and we shouldn't mix semantics. There > should be a clear distinction between traditional xattrs and this vfs > and potentially fs information providing interface. > > Just thinking about what the manpage would look like. We would need to > add a paragraph to xattr(7) explaining that in addition to the system.*, > security.*, user.* and other namespaces we now also have a set of > namespaces that function as ways to get information about mounts or > other things instead of information attached to specific inodes. > > That's super random imho. If I were to be presented with this manpage > I'd wonder if someone was too lazy to add a proper new system call with > it's own semantics for this and just stuffed it into an existing API > because it provided matching system call arguments. We can add a new > system call. It's not that we're running out of them. FWIW, I also felt that using xattr API to get some sort of mount info felt very non-intutive. Thanks Vivek