From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2D2EFC433FE for ; Mon, 9 May 2022 21:43:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230213AbiEIVqw (ORCPT ); Mon, 9 May 2022 17:46:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42478 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230171AbiEIVqt (ORCPT ); Mon, 9 May 2022 17:46:49 -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 22B511C5FB7 for ; Mon, 9 May 2022 14:42:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1652132573; 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=K1hGSpLStTlyNauELM3xLumUCeg2cim+QpGo4kXQ6C18Al+q/aWHVl5WoXYlnDhE2GBTiO hgnW4HH3O02kWK/pLLQJjbUDTTrprXb56ya26UHuZy2xVOKdF7QSSuXYd2UBSrXJNi/L9A GlEO6sYVVLEsD/HLQC8VCGpe7CveV6s= 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 Precedence: bulk List-ID: X-Mailing-List: linux-api@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