Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp1946872pxb; Fri, 25 Mar 2022 08:25:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyI85RJkpCid9OX/5Zjg3IyhN47tdQf9nu5dhr27VYFRq7iCnTZoRGgZ0uISQyZn5uEr+rx X-Received: by 2002:a63:1d6:0:b0:380:a063:660c with SMTP id 205-20020a6301d6000000b00380a063660cmr113936pgb.149.1648221940622; Fri, 25 Mar 2022 08:25:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648221940; cv=none; d=google.com; s=arc-20160816; b=qvfOQLl5pZng//9pZCwjaWQOP0b2EJccljlqFmzVC2dxUg49y5riPFHv/385+sAY8A Zsz9+1qb1q10ZmpNq2bAehwqwUk4Z7F4iN0D5/SCim34UOUoK5JRTFkbgvGq5P1Uywa7 WCojQ1zaNDLFjYirn+RBw1SZyin1AMEDZC+Ui8g3sc+F4/zXZQKLctMtvgZLXml4qGum rO3OJ3gnrnOpj4jz1iceKhLgUiZvL54Dqaca8cn6Gg4lSVPIkJiZmfQzIZo7ndH86sX+ 6lusarLV/1w+HHzdK9X46o5dTb8qdbPGINn85yTW6GHewPO4bSurRkgg95jYsjhzmdK7 rI8w== 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=QMxMPmZqVhEjq+z25uJtmZ8oxGgfdMtdpHWVpm7w/Uk=; b=aA9zGbvpKLd4/No48S1CUGuJRxp2obPi1pbN2tLXt9dSrxGnL0dsRURiX2t0sL+O20 i1JfzCTlHVFR8b8NG8Xja7WYOYvN/w9ClO/yRmQg0Fxl5yr+CsPUQGPbrGs0mWbCn3sk 8musl4RVGUIhP1un8fNnRnX7CDB5LFqH529CW9zLb7z/EbOQ+Sbc89dILCUBG9HLVYXa LCB+ZWXKHxK1IKLDLNR3wW3va2D5lkX0K7bug5pVOvZ05PX877BTKuFYCAgBIdtL6WCJ zV85f3cVaMGzDJXDcdJjgGj4iSoHENX1gbukp132wikDy9mby1bacz0wn2ESrGypQOL1 QB6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=WaUy2THu; 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 x22-20020a634a16000000b003824f9f2affsi2631810pga.451.2022.03.25.08.25.24; Fri, 25 Mar 2022 08:25:40 -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=WaUy2THu; 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 S1356308AbiCYJMe (ORCPT + 99 others); Fri, 25 Mar 2022 05:12:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52592 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229940AbiCYJMc (ORCPT ); Fri, 25 Mar 2022 05:12:32 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id EB1BCCF486 for ; Fri, 25 Mar 2022 02:10:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1648199458; 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=QMxMPmZqVhEjq+z25uJtmZ8oxGgfdMtdpHWVpm7w/Uk=; b=WaUy2THuFWrMT/njrmlI7YM47hkMnMHVM8nd8EnyUQNVnMBB3A4wwWVp8y8ELfyUEhOQOS h7OdHpsPg06z1xHdxWXN9a5yOSD5Y8pAd2UHGJ5lH0LEccAU6vl9H7CIZfsknZ768aQIow PQ8Dk8M/rn4pbiU+KRMGEc2P53zNgPg= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-385-thh7RGY_OnqkbS7LlDlomg-1; Fri, 25 Mar 2022 05:10:54 -0400 X-MC-Unique: thh7RGY_OnqkbS7LlDlomg-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.rdu2.redhat.com [10.11.54.7]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id DD6E71C06923; Fri, 25 Mar 2022 09:10:53 +0000 (UTC) Received: from ws.net.home (unknown [10.36.112.12]) by smtp.corp.redhat.com (Postfix) with ESMTPS id B905E141DED5; Fri, 25 Mar 2022 09:10:51 +0000 (UTC) Date: Fri, 25 Mar 2022 10:10:49 +0100 From: Karel Zak To: Dave Chinner Cc: Miklos Szeredi , Miklos Szeredi , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, Linux API , linux-man , LSM , Ian Kent , David Howells , Linus Torvalds , Al Viro , Christian Brauner , Amir Goldstein , James Bottomley Subject: Re: [RFC PATCH] getvalues(2) prototype Message-ID: <20220325091049.b5vcfahti56hopy2@ws.net.home> References: <20220322192712.709170-1-mszeredi@redhat.com> <20220323225843.GI1609613@dread.disaster.area> <20220324203116.GJ1609613@dread.disaster.area> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220324203116.GJ1609613@dread.disaster.area> X-Scanned-By: MIMEDefang 2.85 on 10.11.54.7 X-Spam-Status: No, score=-3.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 Fri, Mar 25, 2022 at 07:31:16AM +1100, Dave Chinner wrote: > > What about other objects' attributes, statistics? Remember this > > started out as a way to replace /proc/self/mountinfo with something > > that can query individual mount. > > For individual mount info, why do we even need to query something in > /proc? I mean, every open file in the mount has access to the mount > and the underlying superblock, so why not just make the query > namespace accessable from any open fd on that mount? The current most problematic situation is in systemd. We get generic notification (poll() on mountinfo) that something has been modified in the mount table, and then we need to parse all the file to get details. So, the ideal solution would be notification that points to the FS and interface to read information (e.g. getvalues()) about the FS. Karel -- Karel Zak http://karelzak.blogspot.com