Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp4883092rwb; Tue, 8 Aug 2023 15:54:46 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFiTvnP4xp2G4i8Bc6cOgtnXJ1KnXJTLLTcmzfikRvj9xbwcwf/6VDU4MxVughn3tfy8uqz X-Received: by 2002:a05:6a21:8191:b0:133:f0b9:856d with SMTP id pd17-20020a056a21819100b00133f0b9856dmr900841pzb.17.1691535285906; Tue, 08 Aug 2023 15:54:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691535285; cv=none; d=google.com; s=arc-20160816; b=LqihK8x6xO5PTugf7m9IlZc4WnTXJD/RxNM6u82HHvHfVJ4YU2m2g1H0X1r3D+kZ/k X/u6pg9ablOzpD5Hm8LdH+a3jdz8AP/H453Vjh22PCKk07WkHgdvK2e54Ald2HszDSAK qZyZXbbUPIIQQOqRkisxry7FrMJ8eo4QUHnzYq0bPyoo3bJUAs1VjJGNbQOi0gAe5g5S rI98mAzUuX2H5WtvH9zycMC+C31i4TZz9Wsh2V8hJs0MD/X6APurhUKT3Hh9INlYoNox xorakuLtO+d5JBkZxf5c2U7+RIJeBWGG1i37f2APxYQ9kUwwV/ip1TXsSjKs8Zt7M+b0 uadw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:references:in-reply-to:subject :cc:to:from:mime-version:content-transfer-encoding:dkim-signature :dkim-signature; bh=xKjhLOxoWxXOMMJACQ64J1EucwRhDwcUHmIYM1hZnNA=; fh=KapfTEmF3/Vz8NK0RGHEhZGyPOpV0kwgStbWLnmMjOw=; b=EZ/GyJ8s9cvyeUb5SF9BUjzxmYjyLEeeb4w14P+hQfrnZfi4abrvcFbo0U1BG5Obrz 6zetH8NLg+RuymFxBZCTBhNvRd4I7HUgfsW9oe/PToIeFoQfjqFOOy3eNKCWnJnCJ9Nt CEqw64JYKNzKrtc4EVI1uAB+xk2R9Qbdpehq/NhQS/Opb6TcyQiEJ2tZi/dvW0uUy1HO WZJ/4y5HVcL0uoaaQiSKr/xE9huLYrAecGilDemKb9i0mpFr22PwtgYiNxd0VO9W4XqG TWTfgiY4Bh1DJNiIgBNXIfLzV31ZuqSGyWRqAICRJVf9pZ7/LYyH657KRTUJKMtO9kk2 jPUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=y2vRLC84; dkim=neutral (no key) header.i=@suse.de; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w30-20020a63af1e000000b005652bd28000si852427pge.4.2023.08.08.15.54.33; Tue, 08 Aug 2023 15:54:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-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=@suse.de header.s=susede2_rsa header.b=y2vRLC84; dkim=neutral (no key) header.i=@suse.de; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229568AbjHHVpO (ORCPT + 99 others); Tue, 8 Aug 2023 17:45:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58628 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229512AbjHHVpN (ORCPT ); Tue, 8 Aug 2023 17:45:13 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0C03B196 for ; Tue, 8 Aug 2023 14:45:12 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id A2D9C1F45E; Tue, 8 Aug 2023 21:45:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1691531111; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=xKjhLOxoWxXOMMJACQ64J1EucwRhDwcUHmIYM1hZnNA=; b=y2vRLC84OPonpgiuJkUPDCUiFs/MKqAiIpJB5+j/oCgfb4SQKbcVCjQszVHOl/V9c2SqN/ 3xWNcpOkrNKxw2Yk5Rz6LoRgSqVidY3esVFyI1qNGZEc34XuHECGKIexZjZC5eXJQivNV1 b1tl/C78j9g0+sqb0+tvDRXbtzC6kQM= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1691531111; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=xKjhLOxoWxXOMMJACQ64J1EucwRhDwcUHmIYM1hZnNA=; b=Akx+PTDuFp+t56BN636RYtQj0BHL6HQ28/0y1xYRZ8kodZIZF88yhz+ZIq5Z+NewD4p81w qpsL8NpEMLhP8qAg== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id BD059139D1; Tue, 8 Aug 2023 21:45:09 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id EDvfG2W30mQOcwAAMHmgww (envelope-from ); Tue, 08 Aug 2023 21:45:09 +0000 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit MIME-Version: 1.0 From: "NeilBrown" To: "Chuck Lever" Cc: "Jeff Layton" , "Lorenzo Bianconi" , linux-nfs@vger.kernel.org, lorenzo.bianconi@redhat.com Subject: Re: [PATCH] NFSD: add version field to nfsd_rpc_status_show handler In-reply-to: References: <6431d0ea2295a1e128f83cd76a419dee161e4c44.1691482815.git.lorenzo@kernel.org>, <169149440399.32308.1010201101079709026@noble.neil.brown.name>, , , , , Date: Wed, 09 Aug 2023 07:45:06 +1000 Message-id: <169153110624.32308.3596310364486971122@noble.neil.brown.name> 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_BLOCKED, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED 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-nfs@vger.kernel.org On Wed, 09 Aug 2023, Chuck Lever wrote: > On Tue, Aug 08, 2023 at 10:20:44AM -0400, Jeff Layton wrote: > > > > It would probably be fairly simple to output well-formed yaml instead. > > JSON and XML are a bit more of a pain. > > If folks don't mind, I would like more structured output like one of > these self-documenting formats. (I know I said I didn't care before, > but I'm beginning to care now ;-) Lustre, which I am somewhat involved with, uses YAML for various things. If someone else introduced yaml-producing sysfs files to the kernel first, that might make the path for lustre smoother :-) Another option is netlink which lustre is stating to use for configuration and stats. It is a self-describing format. The code looks verbose, but it is widely used in the kernel and so well supported. > > I'm also wondering if we really ought not add another file under > /proc, which is essentially obsolete. Would /sys/fs/nfsd/yada be > better for this facility? It is only under /proc because that is where it is mounted by default :-) I think it might be sensible to create a node under /sys where all the content of the nfsd filesystem also appears. I'm not keen on /sys/fs/nfsd because nfsd isn't a filesystem, it is a service. But the /sys/fs seems to be largely unstructured (/proc v2??) so maybe putting nfsd there is OK. We could claim that /proc/fs/nfsd is a filesystem :-) > > I hesitate to even mention network namespaces... Please do mention them - I find them too easy to forget about. /proc/fs/nfsd/ inherits the network namespace from whoever mounts it. So this can work perfectly. If we created a mirror in /sys/ we would presumably use the namespace of the process that opens the file. Thanks, NeilBrown