Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp1140564rdh; Mon, 25 Sep 2023 04:42:07 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGiNJSLjT9lUPLhweGFxOSMrgpm2BcfsXWsIQgx/R6sVrhyT3TqH1GctUWS4RxeN9cnPn7N X-Received: by 2002:a17:90b:4f85:b0:274:95f:d203 with SMTP id qe5-20020a17090b4f8500b00274095fd203mr4413619pjb.47.1695642127234; Mon, 25 Sep 2023 04:42:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695642127; cv=none; d=google.com; s=arc-20160816; b=R8WtQMNrOxCFBU18Ah+WYVL7KYXnX71imv95v5TTWpEub+7Vuh/grJSf0iMWYtpThz c9XwpvEpWtV02CXJefRrKOjajQ/NbZccmNQv0pOwB2kwQbCZ7YGdR2Y4OAoQSTldtJta knmlpXxM9NfXPeZaRGzEvVVfCIZrGkOzvYDuvmxserbzRGi/E59ydpC3rk9lhcZuy/hJ TyXRoW8tXK7p3C6DzvSUHuywsC5UG8f15/ibFfuI5siTKKmyKA0QntnYan+tyjrRpI4B FQHu5GcvqD0sS5n9Y3MOlWg4lZplj6ANa0jb4RZeHHn0tmyQtsVLnh70id8g9V+zgj9t OD3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id:dkim-signature; bh=yNjMY4NlCIp+A01JOPaEyP1gmxZsn+jxBakOoC6109M=; fh=OxYKhI9ajhpJIqoGvVa76Hz06thgCPir1rCd4bquV0E=; b=0RM6+2IL8J0lBZDENhCES0ZJVypOIRYNhaW+Af9+pUiGQoNu8RSrJYJC+aHYYeQXrM fuyADAwoObszIC0PLWBOj463A0Vu3E98K2oMXKeqiVmZichZHBUV2qgUpU3r2e+pAHi6 mVAYiT26SpySDRy4yBUV3QyhwRa17X4GPt/1wUTZR/OH/6LscBs99lJ1BhFSEFeBSgXW /FkrfCR2etb6dTyC4Q9qWTCUg3+Prg5ltQiWjsPIdjkSTuMph5mJV8h3Q2fGzjMldEe1 +Ma+K/BcNGYnbh6WczQxEw1s6bTuYMSSlCW+QYEIaRbA6shDMvAXHocMUpywQP3CN3g7 39pA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="OJ/NxX7V"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id om2-20020a17090b3a8200b0026d0f7c6b17si13321554pjb.30.2023.09.25.04.42.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Sep 2023 04:42:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="OJ/NxX7V"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 878AB80CBDC3; Mon, 25 Sep 2023 04:29:58 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230484AbjIYL3x (ORCPT + 99 others); Mon, 25 Sep 2023 07:29:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44878 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229595AbjIYL3w (ORCPT ); Mon, 25 Sep 2023 07:29:52 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AF22AC6; Mon, 25 Sep 2023 04:29:45 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B4144C433C7; Mon, 25 Sep 2023 11:29:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1695641385; bh=2MbEYpOL+kd6uNyBjo39tKu41KpsEJTkTcuCbFCeUq0=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=OJ/NxX7VJvEsz87o5ht+Ojr5ufUFRCLMBwIy+Zn13UfOrKeKaPB+aVXcYi21Y0lvy bXo3e6n8bLYckQRqGdCFepp+fLSC7444BSdphs37MNFAIqLQ7hY2qwF7e7OWtFOdtZ mwi4r8UvKqaZTdl+xVogqFYZT+agL/hQN4dmUcMMrvrzTqs5E+Uis1L9IiryKn6Ma/ Kr5u3K3Tny8npDHJlyhyBKEOSCjs2iamv9mTMK3QXoXOhx6y4zIj0eJbDFKkmTGC/Y aaODfwRzkNwxRUxAl64k2XHJKp4aFI0bh/jRjCEnPkDrqY20hordyTKTvDdwXX9ZEP oAA5aO0qEN8CQ== Message-ID: Subject: Re: [PATCH 1/2] fs/ceph/debugfs: make all files world-readable From: Jeff Layton To: Ilya Dryomov , Max Kellermann Cc: Xiubo Li , ceph-devel@vger.kernel.org, linux-kernel@vger.kernel.org, Lorenzo Bianconi Date: Mon, 25 Sep 2023 07:29:43 -0400 In-Reply-To: References: <20230922062558.1739642-1-max.kellermann@ionos.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.48.4 (3.48.4-1.fc38) MIME-Version: 1.0 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS autolearn=ham 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Mon, 25 Sep 2023 04:29:58 -0700 (PDT) On Mon, 2023-09-25 at 12:41 +0200, Ilya Dryomov wrote: > On Fri, Sep 22, 2023 at 8:26=E2=80=AFAM Max Kellermann wrote: > >=20 > > I'd like to be able to run metrics collector processes without special > > privileges >=20 > Hi Max, >=20 > A word of caution about building metrics collectors based on debugfs > output: there are no stability guarantees. While the format won't be > changed just for the sake of change of course, expect zero effort to > preserve backwards compatibility. >=20 > The latency metrics in particular are sent to the MDS in binary form > and are intended to be consumed through commands like "ceph fs top". > debugfs stuff is there just for an occasional sneak peek (apart from > actual debugging). >=20 FWIW, I wish we had gone with netlink for this functionality instead of a seqfile. Lorenzo has been working with netlink for some similar functionality with nfsd[1], and it's much nicer for this sort of thing. [1]: https://lore.kernel.org/linux-nfs/ZQTM6l7NrsVHFoR5@lore-desk/T/#t --=20 Jeff Layton