Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp5264165rwb; Mon, 14 Nov 2022 01:44:03 -0800 (PST) X-Google-Smtp-Source: AA0mqf5cDfXJUPNwD+dhO0zz8+b3XrMZXT5duI/xTWSHY9VypBRUJDKByMIDPFJ7ebwUkKzfEqY1 X-Received: by 2002:aa7:d799:0:b0:461:6f87:20bb with SMTP id s25-20020aa7d799000000b004616f8720bbmr10412227edq.300.1668419043601; Mon, 14 Nov 2022 01:44:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668419043; cv=none; d=google.com; s=arc-20160816; b=L2D947rfsrb/k7mrCnCnHP0G1OPf8xz7PdOK4LoQBmEInjcgbuQ89juCOpZuVA4fD7 5n9ANZ38+xDScOtk2x0KKyCUkYtav6SbY4Yv5IokJzuPWaU/0//bpchggcWo0bhjU2oF 6YxSttqbby/XYQzETWlnvZYmkSq9M0yPuekB6qgoQgnqgVbpqrakxJWva2ZDQMy9se29 BdHwxeXdih50Py98tfJ9iEmQhgkaZgVzmxm+3QG0ZPFgIT28g5R9cp69oIwapoVEjgL2 Nt8606N5K0kENSWKRJp8kudGFTN+UeadPGEZ+tDXnosOVHJlccatg5S4BfJq837mjxMR EBGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=OHVvZDZbyEogVtk3XYqfqyWzOeOsXZdmYG4Vsfr4Pzs=; b=Ud2VtgM+XAYM+R4NfGFq16h4Ki7HxCPaXTHchkX1C10bdsGdUKSeq4QaVgMKABBP6L eLNC/wFr8tYvOSmKm+T+hKQnj3qn8Q+fUzIBJOlocUhgf2TpT7nTXIGxNC2lJo68m8lT lQcIqWFWkod5OkB6tmNBkGXyvVdc4dB00x9DQTQnDbJ2HGrVgy06Dw4FsDz3F85/D1zl ibobAV428/3H9T2GiySlcYJsBUFqkOd9ZkrvLxoA6MqVyk8DOxDrauExOiM2U0Z1sY+L QRl9ogA3E2yAi0IUDZLffO6xHWZ93isaucaLt1sn1cjYF6gXKf39nT4amCai7r7F4VEZ 9MZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bytedance-com.20210112.gappssmtp.com header.s=20210112 header.b="IGlH+a/b"; 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=fail (p=NONE sp=NONE dis=NONE) header.from=bytedance.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cw6-20020a170906478600b007ada03062e9si9462632ejc.415.2022.11.14.01.43.42; Mon, 14 Nov 2022 01:44:03 -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=@bytedance-com.20210112.gappssmtp.com header.s=20210112 header.b="IGlH+a/b"; 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=fail (p=NONE sp=NONE dis=NONE) header.from=bytedance.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236642AbiKNJAh (ORCPT + 88 others); Mon, 14 Nov 2022 04:00:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42818 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236633AbiKNJA1 (ORCPT ); Mon, 14 Nov 2022 04:00:27 -0500 Received: from mail-pj1-x102f.google.com (mail-pj1-x102f.google.com [IPv6:2607:f8b0:4864:20::102f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D6BD81CFEE for ; Mon, 14 Nov 2022 01:00:26 -0800 (PST) Received: by mail-pj1-x102f.google.com with SMTP id k5so9735551pjo.5 for ; Mon, 14 Nov 2022 01:00:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance-com.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=OHVvZDZbyEogVtk3XYqfqyWzOeOsXZdmYG4Vsfr4Pzs=; b=IGlH+a/boVb7i6zolSK0zEvoMEddtxxH2nmc93lCCFV08bOZCNlgJxgFDpF0/JPDHu ckYIGRfz/EA6eMc0VzdGQD4o1oB48QASsZlQIPKQ4BQlDOc3hHV4plz+jza1GFZ/VVjc nTf+60GJLFAy4UVqpFpMpYwATK9woaMgfDBav2fX9dc2oUUVytTfnDZm2POJF9JsXFEU RuMh+Tb5gNg6/ehHkMlHXQhE2ZGSs+MeqRjBBsUWLunO9jpHkixaOind7phxwkQxktl5 5SwJCZ9A4LQ2zUWuwMDqrLaHDIfzIDda+5BUT9byEbOAV899p/9dGl5MLl6kQ7TOJQR4 CAsw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=OHVvZDZbyEogVtk3XYqfqyWzOeOsXZdmYG4Vsfr4Pzs=; b=g6mK8AEQLwmUuB9x1Eil42M0hcBME1k2hGroubEQaCd7X8umDDKaOVIpdULehkKhaS BFvk+b3zCU/kMY8TQfMepEIAW4Ix3UFNDUijIh8SBnhCzHQLJ7jbEKG+USXFw7URC3aS wLmMxoHkKTj69vlqIq7xwm74UXbMAC2p2qZH2kA88m5zDlCXXHKzsZcmEzUmUuoYEAle OM1JY9agKphYX0r9iKd76USgPeH5K06tsBvahXrwt12bqb2yO4HOAT7jx8laR5CeSEsk nRBpxQpvCIV1+x8rluP2eb98PJkfHmA1ip3Jy1Q+jfEAvFHGtWDeRSFo4OIFjALIBmTA dErA== X-Gm-Message-State: ANoB5pnQVb1ObGy/DcAvOpflcthxnBxXHAZ8h9gk0wWG2bEzLCFOijQP noo1CtoMi79LUFL7VhCGGcWDzlvRhx90VA== X-Received: by 2002:a17:903:1009:b0:17f:72a4:30a1 with SMTP id a9-20020a170903100900b0017f72a430a1mr12980922plb.124.1668416426378; Mon, 14 Nov 2022 01:00:26 -0800 (PST) Received: from [10.94.58.189] ([139.177.225.254]) by smtp.gmail.com with ESMTPSA id q13-20020aa7960d000000b0056a7486da77sm6371684pfg.13.2022.11.14.01.00.20 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 14 Nov 2022 01:00:26 -0800 (PST) Message-ID: Date: Mon, 14 Nov 2022 17:00:18 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Subject: Re: [RFC PATCH] getting misc stats/attributes via xattr API To: Miklos Szeredi , linux-fsdevel@vger.kernel.org Cc: 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 References: Content-Language: en-US From: Abel Wu In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,NICE_REPLY_A,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 Hi Miklos and anyone interested in this proposal, is there any update on this? Sorry that I didn't find any.. Thanks & Best regards, Abel On 5/3/22 8:23 PM, Miklos Szeredi wrote: > This is a simplification of the getvalues(2) prototype and moving it to the > getxattr(2) interface, as suggested by Dave. > > The patch itself just adds the possibility to retrieve a single line of > /proc/$$/mountinfo (which was the basic requirement from which the fsinfo > patchset grew out of). > > But this should be able to serve Amir's per-sb iostats, as well as a host of > other cases where some statistic needs to be retrieved from some object. Note: > a filesystem object often represents other kinds of objects (such as processes > in /proc) so this is not limited to fs attributes. > > This also opens up the interface to setting attributes via setxattr(2). >