Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp91862iob; Tue, 3 May 2022 12:15:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwQBcAIOPzq7VQdMmOUz/lX86Ry1qARry5cHLO/3CyJpQvGw4oDiBWt/ayYzH7g1v9hYRZt X-Received: by 2002:a17:90b:4a08:b0:1dc:6cc1:3d24 with SMTP id kk8-20020a17090b4a0800b001dc6cc13d24mr6355830pjb.131.1651605312948; Tue, 03 May 2022 12:15:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651605312; cv=none; d=google.com; s=arc-20160816; b=s5Z3iU0g6PLyTdMZLoDym9AAE5qstV0GYPnFOh53mlT13Rb0V992DsneDJHNM2q7gD GLH+vpNsz0cg+Lvzps+DtROSvPyAJ7mcVWI/ZLbvNp5pae96a5EjWIVbS6XP+iTh6Trb vdugdfF9T+c5DrsGSbY3iYnFNWOiFjkqrkkD8KYi8AE0v/XG21g8fRfvX2wRDMOYjlP2 RxDLCV5UClv3reZ0rUxihqXZE0sDRGvBfbKJKnJDStuBJv8ZS+6g30GHXV6KrMIOpO32 qvRqCwXIh3K5i3LcRMFJjS1wV3hsmocAE2F+PwN43Spwo7sp1p0joKL6HnIh41KRGP9e Z92g== 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=bmC7DRu7flM3aFzKHb+bDUK/tB+P+W9KDDy98mVSVQ0=; b=gnNZQBLNNbPo5HloKxmnAZiKl3yMcvWcKAXmUMzvNgcMyHXxf7ifj+8kxJ3g+ULfXD SmiiPara2de1U0cUSTuObaPaiYQtJM5UsttBtfazX5AWbAC+EbeXwx5YNCWtLbHofYSu i0er7UpdZ+zaTnF+9uGRJ5Nri9ZanPdpxkdQa0QjVzRJNBcgOpPNYY9RQEOwwWM/Bkc7 hxfwGevY8Y0wRWURGD1KXIgHTSK4QDOqe/WwoYf92TU/FYjr3kWOWdebRRMd2IEJzmBC fzt6TPZubcuMR+Ztxlf3Zl03kA0bgMKy8+8HRgo6YHj2Bqtr45T4ojsMSeFnpeaAW+k3 3jCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=temperror (no key for signature) header.i=@szeredi.hu header.s=google header.b=oyxVT1gp; 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 h185-20020a6383c2000000b003c21669f17bsi6055524pge.138.2022.05.03.12.14.33; Tue, 03 May 2022 12:15:12 -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=oyxVT1gp; 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 S237776AbiECPHz (ORCPT + 99 others); Tue, 3 May 2022 11:07:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33102 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237766AbiECPHx (ORCPT ); Tue, 3 May 2022 11:07:53 -0400 Received: from mail-ej1-x62d.google.com (mail-ej1-x62d.google.com [IPv6:2a00:1450:4864:20::62d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 68D6D3A1AC for ; Tue, 3 May 2022 08:04:20 -0700 (PDT) Received: by mail-ej1-x62d.google.com with SMTP id m20so33964994ejj.10 for ; Tue, 03 May 2022 08:04:20 -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=bmC7DRu7flM3aFzKHb+bDUK/tB+P+W9KDDy98mVSVQ0=; b=oyxVT1gpTaomCxljv6pbFCCpbu4ZgTR/80bvs4ClyThEQsIq3L3UeHcgt4WI2j+7Uf lpG1gBMr5yuIBdD0NvK/i6vwQSr7AUsssXoNfkNqCXxTbcaNwVQ2GkR267bP6zLn5QM0 XxEgxNI7Vkbu6Crh8QfSUAvz9q57mPWXd1UGs= 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=bmC7DRu7flM3aFzKHb+bDUK/tB+P+W9KDDy98mVSVQ0=; b=WJrtCmsME1ULFBXn7+21bZ6Yn+tsKNwxJJgGigK2XTc5s0EuSbdTrzTgKNU88EIggr vqyRen1Oa5llQb5pXSMPzjGR/AO9nEJ2bfXU62v+c5mibqa69hX8JklC9LWuYb+lcna7 3TPi1ehuFiYVgTZpWJi6QsSH0yxdXSmInmpYzuIp7aRq4CEKMX/KL7QmyhF2/Tm4nNnG g244JYVCzOIpcgOZpIKcQzV62QbLuCUswlX4tEYb9IBLv+gcFLns2mYyxHd71Yf+8Uvh xDF2vl7XOlwoV7gwihBy5gN0ar4eJpybHQfEPJEZ3M8Dwu/R1nfDWXy5qILkcyXEZFX2 AmhA== X-Gm-Message-State: AOAM530ixfFG74NVWzv75OLvRSSucK8gKQWw6CATzlfCGP+yGMpkg49a nl1hKN34/4N4FNLLGNcl+CESFhpjF4wOmkcAgcwe5w== X-Received: by 2002:a17:907:62aa:b0:6e0:f208:b869 with SMTP id nd42-20020a17090762aa00b006e0f208b869mr16047649ejc.270.1651590258996; Tue, 03 May 2022 08:04:18 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Miklos Szeredi Date: Tue, 3 May 2022 17:04:06 +0200 Message-ID: Subject: Re: [RFC PATCH] getting misc stats/attributes via xattr API To: Greg KH Cc: Amir Goldstein , linux-fsdevel , Dave Chinner , "Theodore Ts'o" , Karel Zak , Christian Brauner , linux-kernel , Linux API , linux-man , LSM , Ian Kent , David Howells , Linus Torvalds , Al Viro , Christian Brauner , 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 Tue, 3 May 2022 at 16:53, Greg KH wrote: > > On Tue, May 03, 2022 at 05:39:46PM +0300, Amir Goldstein wrote: > > It should be noted that while this API mandates text keys, > > it does not mandate text values, so for example, sb iostats could be > > exported as text or as binary struct, or as individual text/binary records or > > all of the above. > > Ugh, no, that would be a total mess. Don't go exporting random binary > structs depending on the file, that's going to be completely > unmaintainable. As it is, this is going to be hard enough with random > text fields. > > As for this format, it needs to be required to be documented in > Documentation/ABI/ for each entry and key type so that we have a chance > of knowing what is going on and tracking how things are working and > validating stuff. My preference would be a single text value for each key. Contents of ":mnt:info" contradicts that, but mountinfo has a long established, well documented format, and nothing prevents exporting individual attributes with separate names as well (the getvalues(2) patch did exactly that). Thanks, Miklos