]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
Refactor MonClient, KeyRing
authorColin Patrick McCabe <cmccabe@alumni.cmu.edu>
Thu, 2 Jun 2011 22:50:22 +0000 (15:50 -0700)
committerColin Patrick McCabe <cmccabe@alumni.cmu.edu>
Fri, 3 Jun 2011 21:57:43 +0000 (14:57 -0700)
commit740eea1ee88b8ecde7f67f31a39ba522f1c1d2eb
tree5c752bb1959590c53f35abcb289ef42828340a19
parented41f29ac9a2d36efeca0da7f190325ae94390e5
Refactor MonClient, KeyRing

MonClient should contain a KeyRing and a RotatingKeyRing. All the
MonClient users, except possibly csyn, don't want to manage those
objects themselves.

Don't chdir until after we have opened the KeyRing. If the KeyRing is at
a relative path, a chdir may make it inaccessible. Separate the chdir
function from the daemonize function.

Refactor the cmds argument parsing a little bit. Separate the special
actions from the normal operations of the daemon.

This should allow librados and libceph to support CephX finally! yay!

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 files changed:
src/auth/KeyRing.cc
src/auth/KeyRing.h
src/cfuse.cc
src/cmds.cc
src/cmon.cc
src/common/common_init.cc
src/common/common_init.h
src/cosd.cc
src/csyn.cc
src/libceph.cc
src/librados.cc
src/mon/MonClient.cc
src/mon/MonClient.h
src/tools/common.h