Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp2552294iob; Fri, 6 May 2022 05:36:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwNB309v+M1xNzdKRSJh0qcZSoy4MxWqBs7mqathHbuo2cSAcsvx/pManUgelbytW2CXZas X-Received: by 2002:a17:903:30c3:b0:15b:4232:e5d2 with SMTP id s3-20020a17090330c300b0015b4232e5d2mr3361367plc.167.1651840573620; Fri, 06 May 2022 05:36:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651840573; cv=none; d=google.com; s=arc-20160816; b=hpgeiHyE6jC7lK8rKjvK6t66ZB2TaoJYRQ5pYuB4pcLOTMV8JjoCkW4F0xWz5Gi/YG rGXSPEXugHkZiNF8sUuuISVjhMgo6j4iIpihu0rP+pFAbUXx7mXeLyaWuNejXqaYAdP5 mMdeu12CTna9+OBTwCt6ZxXjD6vWWcgSPmGjOyOefongK0EoB182uqO07VqAL2W26QTw 1AKj5j2Ges+5xFr3zPmfC3Ba1Rzg88tUoFJsMuvtgOi54uHf5TKPoGyKCi+rdCNJFKuI 2koUA/fpimnhfKgzYSfjWS/JPiWhac+kNOF1nmMMdkEGR9Xt8w4FowbhK5hVurU179QT wpGw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=8cdP+QQ3RkXNjtwvBi4VN1FsvGgtTlKBfCuL8UUAtAI=; b=Ov83lJ/tHiiSmuh97KhB8SB8OglYbFa76tJmORlT8wLJVvHtBsg2PDe48nW0LhYOGB G7bjZsjCx0bN+S2ozuErAfov4nGZ8YWsvYNmy02hylU7PD/cehSYSWc+oaD6PIK+/VQH 90+4IGhgedTIzNQXnI5KxnJEl1E7bDZEOh0ECAMB2qJcJOmHGjn9hfWQqTPQIUv+3o+h ARGUrLACLCmDkMOf8B9HEp/use5Zfp8eJ+5YRtY717r7fAFjPROmC0inmTBtC5GzOih3 vn6CKtc9t+YsPQhP6QwSuv3fiYtak4WX0ARAy4c8vH2WImN6Nzvi9GJQlFhsnr50qVph i1+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=temperror (no key for signature) header.i=@szeredi.hu header.s=google header.b=E8qBemq4; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a13-20020a170902eccd00b0015bf16b686fsi2363146plh.410.2022.05.06.05.35.51; Fri, 06 May 2022 05:36:13 -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=temperror (no key for signature) header.i=@szeredi.hu header.s=google header.b=E8qBemq4; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1380340AbiEEOEZ (ORCPT + 99 others); Thu, 5 May 2022 10:04:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53888 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1380310AbiEEODr (ORCPT ); Thu, 5 May 2022 10:03:47 -0400 Received: from mail-ed1-x52a.google.com (mail-ed1-x52a.google.com [IPv6:2a00:1450:4864:20::52a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AF5AA4EA01 for ; Thu, 5 May 2022 06:59:58 -0700 (PDT) Received: by mail-ed1-x52a.google.com with SMTP id k27so5323881edk.4 for ; Thu, 05 May 2022 06:59:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=szeredi.hu; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=8cdP+QQ3RkXNjtwvBi4VN1FsvGgtTlKBfCuL8UUAtAI=; b=E8qBemq4oTx4YPbWRWMJzV2qIbcvYOdveNbfeZemz+4dZQ+I0m7fLXmsY75j+/wiX5 XaE1LThAuxmxZgvbTboIF71ZZ5XDfPUtgSQz8ZVQ2PL1AE4CxYt/PmItFNePGMLFoNgb A8tRUVmKiVc6KZIJU/kk/0DlACH0+77UO+Qz0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=8cdP+QQ3RkXNjtwvBi4VN1FsvGgtTlKBfCuL8UUAtAI=; b=R3NzU9qSF03drxAjub/vMlVuZhN52nw62YHsAI6f6bEMmMcy2nvUXlNi/PaqXcjpJL bNonDZu5c1N04GRkbLhD5iD9WuMZa/Nkjv8IFNuUsfd5nRmvwKbERGDiAykDYACNht3c m0j3waDIDG7FGMn9FrBJdOW3HvDERbbyqh1pwXDnqkYmxQDV2vLYN86gmlO6Nxk4UysA r+g6iepN/vRNsVT9QKvQ7WV49quKLkQHZ1W2+lFCDKA5Dsg8ox6O+pX8iy8KvnU/l25U 2DqyW5l2PkLdEviTFfzn6WlnQFTBhLdxsd3qQ7IEGUvD7cAKvvNTlgjtR9pzISmeUJh9 /wJw== X-Gm-Message-State: AOAM530+80SHXgRBli/2OI3YkN2Lp5X3Tea82tKCG8aj9xoK+NoZ1pQ0 pRKDtjhCutW4N1ULQzdtjMxT7wasdhzP9l2+0vkaWw== X-Received: by 2002:a05:6402:5ca:b0:423:f330:f574 with SMTP id n10-20020a05640205ca00b00423f330f574mr30384732edx.116.1651759197275; Thu, 05 May 2022 06:59:57 -0700 (PDT) MIME-Version: 1.0 References: <20220505123033.sgcyx7kfl4kcfcds@ws.net.home> In-Reply-To: <20220505123033.sgcyx7kfl4kcfcds@ws.net.home> From: Miklos Szeredi Date: Thu, 5 May 2022 15:59:45 +0200 Message-ID: Subject: Re: [RFC PATCH] getting misc stats/attributes via xattr API To: Karel Zak Cc: linux-fsdevel@vger.kernel.org, Dave Chinner , "Theodore Ts'o" , Greg KH , Christian Brauner , linux-kernel@vger.kernel.org, Linux API , linux-man , LSM , Ian Kent , David Howells , Linus Torvalds , Al Viro , Christian Brauner , Amir Goldstein , James Bottomley Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no 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 Thu, 5 May 2022 at 14:30, Karel Zak wrote: > Is there a way how to get mountinfo-like entry by mount ID for some > sub-tree? Something like: > > getfattr -etext -n ":mnt:info:21" / Yes: getfattr -etext -n ":mntns:21:info" / > > The interface has to be consistent with some notification system (I > see your question about fsnotify/fanotify at linux-fsdevel) and mount > ID seems better than paths due to over-mounts, etc. Right. If the mount notification doesn't fit into fsnotify well, the original patch from David could be used. I think that part was uncontroversial. Thanks, Miklos