summaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorColin Patrick McCabe <cmccabe@alumni.cmu.edu>2011-03-14 07:24:32 -0700
committerSage Weil <sage.weil@dreamhost.com>2011-03-14 15:45:05 -0700
commitdf8c00945f8ddb0553b74fe169af70b4e2d202b2 (patch)
tree1d6d6b6bb0a8ce42da91433e26adfa1cf0cd0a29 /src/test
parent448010f27ea767a3c810358b5a49c77e14e65787 (diff)
downloadceph-df8c00945f8ddb0553b74fe169af70b4e2d202b2.tar.gz
cfuse: set proper defaults
Since cfuse usually runs as a nonprivileged user, its defaults must be a little different from those of the other daemons. Add a flag to common_init which can be used to set unprivileged daemon defaults. SimpleMessenger::start() now just takes a boolean telling it whether to daemonize. It doesn't need to check global variables or other arguments; it just daemonizes if you tell it to; otherwise not. Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
Diffstat (limited to 'src/test')
-rw-r--r--src/test/TestDoutStreambuf.cc2
-rw-r--r--src/test/TestSignalHandlers.cc2
-rw-r--r--src/test/TestTimers.cc2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/test/TestDoutStreambuf.cc b/src/test/TestDoutStreambuf.cc
index ed7cd402e97..5aa3e5852b9 100644
--- a/src/test/TestDoutStreambuf.cc
+++ b/src/test/TestDoutStreambuf.cc
@@ -36,7 +36,7 @@ int main(int argc, const char **argv)
argv_to_vec(argc, argv, args);
env_to_vec(args);
- common_init(args, CEPH_ENTITY_TYPE_CLIENT, CODE_ENVIRONMENT_UTILITY);
+ common_init(args, CEPH_ENTITY_TYPE_CLIENT, CODE_ENVIRONMENT_UTILITY, 0);
DoutStreambuf<char> *dos = new DoutStreambuf<char>();
diff --git a/src/test/TestSignalHandlers.cc b/src/test/TestSignalHandlers.cc
index 64a24fd187c..2159fabe6d5 100644
--- a/src/test/TestSignalHandlers.cc
+++ b/src/test/TestSignalHandlers.cc
@@ -94,7 +94,7 @@ int main(int argc, const char **argv)
argv_to_vec(argc, argv, args);
env_to_vec(args);
- common_init(args, CEPH_ENTITY_TYPE_CLIENT, CODE_ENVIRONMENT_UTILITY);
+ common_init(args, CEPH_ENTITY_TYPE_CLIENT, CODE_ENVIRONMENT_UTILITY, 0);
DEFINE_CONF_VARS(usage);
FOR_EACH_ARG(args) {
diff --git a/src/test/TestTimers.cc b/src/test/TestTimers.cc
index 1dfb873bc15..f3c9d78a786 100644
--- a/src/test/TestTimers.cc
+++ b/src/test/TestTimers.cc
@@ -255,7 +255,7 @@ int main(int argc, const char **argv)
argv_to_vec(argc, argv, args);
env_to_vec(args);
- common_init(args, CEPH_ENTITY_TYPE_CLIENT, CODE_ENVIRONMENT_UTILITY);
+ common_init(args, CEPH_ENTITY_TYPE_CLIENT, CODE_ENVIRONMENT_UTILITY, 0);
int ret;
Mutex safe_timer_lock("safe_timer_lock");