From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx3-rdu2.redhat.com ([66.187.233.73]:59574 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751309AbeEOPuN (ORCPT ); Tue, 15 May 2018 11:50:13 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 7662F4158806 for ; Tue, 15 May 2018 15:50:12 +0000 (UTC) Message-ID: <1526399410.7441.4.camel@redhat.com> Subject: [PATCH v3 0/8] nfs-utils: nfsconf cli tool and code tests From: Justin Mitchell To: Linux NFS Mailing list Cc: Steve Dickson Date: Tue, 15 May 2018 16:50:10 +0100 Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Sender: linux-nfs-owner@vger.kernel.org List-ID: Apologies for the noise, I missed some files out when I last reposted, so here is an updated and tested version. v3 Include files that were missed out of v2 Add the man page for nfsconftool v2 Updated style and commenting to make the code clearer v1 This series introduces a new cli tool to nfs-utils which provides for the dumping of the current configuration, querying of individual settings in a scripting friendly manner and by extention the scripted testing and verification of nfsconf functionality. The previously unreferenced conf_report() is modified to produce a sorted output, which allows you to --dump the current config in a way thats easier to diff As well as some improved error messages a script is included which tests the current config parsing code by supplying various example config files and comparing the results of the --dump output. The cli tool also allows a simple test to check if a config item has been set, and to retrieve the current value in a way that is easy to call from a shell script. As the next stage I hope to impliment config setting via the cli tool in order to provide an api for automation and management tools Signed-off-by: Justin Mitchell