From 33f5a59ac80262041b8dd19ebad6c10ba8d67e79 Mon Sep 17 00:00:00 2001 From: Rishabh Dave Date: Wed, 28 Aug 2019 19:27:29 +0530 Subject: [PATCH] cephfs-shell: read shell variables from ceph.conf Read ceph.conf and initialize shell variables by reading options set under section cephfs-shell. If there are sections/options that are duplicated in ceph.conf, CephFS shell overrides the options with the values last. Signed-off-by: Rishabh Dave --- src/common/options.cc | 52 +++++++++++++++++++++++++++++++++++ src/tools/cephfs/cephfs-shell | 38 +++++++++++++++++++++++++ 2 files changed, 90 insertions(+) diff --git a/src/common/options.cc b/src/common/options.cc index 6a3b9b2432b..384df54dc5f 100644 --- a/src/common/options.cc +++ b/src/common/options.cc @@ -8281,6 +8281,57 @@ std::vector