From patchwork Sun Apr 17 09:32:01 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wido den Hollander X-Patchwork-Id: 713341 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p3H9WHH2026311 for ; Sun, 17 Apr 2011 09:32:17 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751750Ab1DQJcQ (ORCPT ); Sun, 17 Apr 2011 05:32:16 -0400 Received: from hosted.by.pcextreme ([109.72.90.196]:56616 "EHLO logger.ceph.widodh.nl" rhost-flags-OK-FAIL-OK-OK) by vger.kernel.org with ESMTP id S1751629Ab1DQJcQ (ORCPT ); Sun, 17 Apr 2011 05:32:16 -0400 Received: by logger.ceph.widodh.nl (Postfix, from userid 0) id 00DB390917; Sun, 17 Apr 2011 11:32:14 +0200 (CEST) From: Wido den Hollander To: ceph-devel@vger.kernel.org Cc: Wido den Hollander Subject: [PATCH 1/4] cconf: Update usage Date: Sun, 17 Apr 2011 11:32:01 +0200 Message-Id: <1303032724-13456-1-git-send-email-wido@widodh.nl> X-Mailer: git-send-email 1.7.0.4 Sender: ceph-devel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: ceph-devel@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Sun, 17 Apr 2011 09:32:18 +0000 (UTC) Signed-off-by: Wido den Hollander --- src/cconf.cc | 13 +++++++++++-- 1 files changed, 11 insertions(+), 2 deletions(-) diff --git a/src/cconf.cc b/src/cconf.cc index 2de7899..d5a911d 100644 --- a/src/cconf.cc +++ b/src/cconf.cc @@ -50,12 +50,21 @@ FLAGS\n\ If there is no action given, the action will default to --lookup.\n\ \n\ EXAMPLES\n\ -$ cconf --name client.cconf -c /etc/ceph/ceph.conf -t mon -i 0 'mon addr'\n\ -Find out if there is a 'mon addr' defined in /etc/ceph/ceph.conf\n\ +$ cconf 'auth supported'\n\ +Find out which authorization is used.\n\ +\n\ +$ cconf -n osd.0 'osd data'\n\ +Get the osd data directory for osd.0\n\ \n\ $ cconf -l mon\n\ List sections beginning with 'mon'.\n\ \n\ +$ cconf -l mon|while read s; do cconf -s $s 'mon addr'; done\n\ +Get all 'mon addr' values out of the configuration.\n\ +\n\ +$ cconf -c foo.conf 'keyring'\n\ +Read the 'keyring' value from a non-default configuration file.\n\ +\n\ RETURN CODE\n\ Return code will be 0 on success; error code otherwise.\n\ ";