Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp5513704rwb; Mon, 14 Nov 2022 05:54:29 -0800 (PST) X-Google-Smtp-Source: AA0mqf79NI9pyP87N58epIJsCPduDFG41DRSscKMQiaR/E8HS5T5TN0WAF9EltcWv4RO63GOOCD0 X-Received: by 2002:a17:906:3a13:b0:7af:882:a571 with SMTP id z19-20020a1709063a1300b007af0882a571mr1936161eje.742.1668434069138; Mon, 14 Nov 2022 05:54:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668434069; cv=none; d=google.com; s=arc-20160816; b=J2GNbJszGCJrVRV6S7toBfailomPX9klukM8a38NeqeUS1olbr8vzvV/Mbz0DNqpcc 6MO6/dKDqTme5MJphKCHSkA1jyTheNnrhd4IZFs6eiqfYNYFNiL03jJJru9G1hHrrEcw gN3/lyqsq7MFAVBuNs/aoIdaqrXbue5UyJ6/sXkygFdopzYLsdc5HJxC4+GBgyw0Cqgo S91z9/+mHwOmpY9Y1MN9JHtQr+4uMmguGlcbwtrszF+IugFBThUc3UqPre2g6WqcKCkS GUTbKhb4wOhqHCTwBeU+IvWLHMckl6WJQvwn0GgxKoonTOsCXnHIqC620LQFAcPCTVwk ShyA== 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=sU9x5ssg8XOYMe/rb8up2J+YLGp3IkvlIELqEyeyXlY=; b=LfkhS0JrtaKwoc2YPrhkGJhO/gn2/053oDJd/RA/G4EYYS0jq4I6uGQY1H/sYRbBOh Mw/nk+8FKliBVo/hpOyCSuNhXmRTWtUPNDrLNuYsWV0DG3UY2NqgYFTPXyHnKXUg4BXJ 6Uza+mPkDhoF2uY+8GiT+zVSJyfHVdfxKnJ+ACvH5y2GyTK5ku8vNsgogw6J17IS8jKP fKut+scWcQxES7TguxLDmH/ApQg6Ks849inzyAjnhuRtD5RB33kJwvy8RtjL4DauGrLd M8vg1FMh8t+Ie1o0UEGeZP7bZIPhFKqsNEtpteqytgX4cvrMExDYLp8f3C7S9U5ETGC8 ma2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@szeredi.hu header.s=google header.b=NnWstm8D; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=szeredi.hu Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id oz17-20020a1709077d9100b0078d8bd255d4si9703640ejc.949.2022.11.14.05.54.07; Mon, 14 Nov 2022 05:54:29 -0800 (PST) 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=@szeredi.hu header.s=google header.b=NnWstm8D; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=szeredi.hu Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237186AbiKNMgO (ORCPT + 88 others); Mon, 14 Nov 2022 07:36:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56956 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237182AbiKNMgM (ORCPT ); Mon, 14 Nov 2022 07:36:12 -0500 Received: from mail-ej1-x630.google.com (mail-ej1-x630.google.com [IPv6:2a00:1450:4864:20::630]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C5EE0248E7 for ; Mon, 14 Nov 2022 04:36:06 -0800 (PST) Received: by mail-ej1-x630.google.com with SMTP id f27so27994228eje.1 for ; Mon, 14 Nov 2022 04:36:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=szeredi.hu; s=google; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=sU9x5ssg8XOYMe/rb8up2J+YLGp3IkvlIELqEyeyXlY=; b=NnWstm8DqlCqRdyMglLY7MPEfHjK68m/pRvlqV3oel5H8vqtXc3KtfhohAcqmB6ke5 xIAoh3nDcghJ7DPQkq4B4QYfHnEbnKMgkpttObeK4MFq+jiRO5xIZJyJsZycus/ajUhU sEgbjUbiNBPFKDfWaa/cDrm/umRrNjbBJ3XBY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=sU9x5ssg8XOYMe/rb8up2J+YLGp3IkvlIELqEyeyXlY=; b=F35sudSK123mTYeVsrJg66ZEY/1rkmdp8MpUKpKDPa+46yMuwQvgftkXIrJhp0AAY0 Pw6A5AHg0RdXXNer1nREpReyqS0THcDLRF/oqVpT9CRAQbq0pPdc1y57jGiV4szjRjbn GvMy3FvTbANcUPVwY/9v1RRolT0S0cXVc+88lwXZIfzKF1O80DbvRdyBtWERGBvoB5+F M2Ikj8Q21a48ouF4H7RLUNsZ7lNsbvCAccPfBXUQx/tuirOYBQA4JIsiSjBw0VsxKVSQ WhLU1z2MOveTxM70YIKZQ6eyDS+2aqz24jpQNcAkkrTWwJPkZhUMDMIYwXV0+FgyP4ct I4Pw== X-Gm-Message-State: ANoB5pma3XbT1BSKVWfTwWIybOLxBAKx9rRBKd0mMbYdMNDMYn+G0In0 yRFHQiRDjP5eho0EikGQAOD6hnnTx6Bb9fZ4cRqOdg== X-Received: by 2002:a17:906:a044:b0:7a5:a671:8236 with SMTP id bg4-20020a170906a04400b007a5a6718236mr10321692ejb.187.1668429365397; Mon, 14 Nov 2022 04:36:05 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Miklos Szeredi Date: Mon, 14 Nov 2022 13:35:54 +0100 Message-ID: Subject: Re: [RFC PATCH] getting misc stats/attributes via xattr API To: Abel Wu Cc: linux-fsdevel@vger.kernel.org, Dave Chinner , "Theodore Ts'o" , Karel Zak , 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=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS 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 Mon, 14 Nov 2022 at 10:00, Abel Wu wrote: > > Hi Miklos and anyone interested in this proposal, is there any update on > this? Sorry that I didn't find any.. No update. Which part are you interested in? Getting mount attributes? Or a generic key-value retrieval and storage interface? For the first one there are multiple proposals, one of them is adding a new system call using binary structs. The fsinfo(2) syscall was deemed overdesigned and rejected. Something simpler would probably be fairly uncontroversial. As for the other proposal it seems like some people would prefer a set of new syscalls, while some others would like to reuse the xattr syscalls. No agreement seems to have been reached. Also I think a notification system for mount related events is also a much needed component. I've tried to explore using the fsnotify framework for this, but the code is pretty convoluted and I couldn't get prototype working. Thanks, Miklos