Skip to content

Commit

Permalink
Merge branch 'wip-1477'
Browse files Browse the repository at this point in the history
  • Loading branch information
cmccabe committed Sep 14, 2011
2 parents ec992be + 2981cca commit 3552878
Show file tree
Hide file tree
Showing 15 changed files with 600 additions and 963 deletions.
3 changes: 2 additions & 1 deletion src/cfuse.cc
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ int main(int argc, const char **argv, const char *envp[]) {
vec_to_argv(args, argc, argv);

// FUSE will chdir("/"); be ready.
g_conf->chdir = "/";
g_ceph_context->_conf->set_val("chdir", "/");
g_ceph_context->_conf->apply_changes(NULL);

// check for 32-bit arch
if (sizeof(long) == 4) {
Expand Down
10 changes: 8 additions & 2 deletions src/cmds.cc
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,10 @@ int main(int argc, const char **argv)
}
dout(0) << "requesting oneshot_replay for mds" << r << dendl;
shadow = MDSMap::STATE_ONESHOT_REPLAY;
g_conf->mds_standby_for_rank = r;
char rb[32];
snprintf(rb, sizeof(rb), "%d", r);
g_conf->set_val("mds_standby_for_rank", rb);
g_conf->apply_changes(NULL);
}
else if (ceph_argparse_witharg(args, i, &val, "--hot-standby", (char*)NULL)) {
int r = parse_rank("hot-standby", val);
Expand All @@ -180,7 +183,10 @@ int main(int argc, const char **argv)
}
dout(0) << "requesting standby_replay for mds" << r << dendl;
shadow = MDSMap::STATE_STANDBY_REPLAY;
g_conf->mds_standby_for_rank = r;
char rb[32];
snprintf(rb, sizeof(rb), "%d", r);
g_conf->set_val("mds_standby_for_rank", rb);
g_conf->apply_changes(NULL);
}
else {
derr << "Error: can't understand argument: " << *i << "\n" << dendl;
Expand Down
2 changes: 1 addition & 1 deletion src/common/common_init.cc
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ CephContext *common_preinit(const CephInitParameters &iparams,
// Set some defaults based on code type
switch (code_env) {
case CODE_ENVIRONMENT_DAEMON:
conf->daemonize = true;
conf->set_val_or_die("daemonize", "true");
if (!(flags & CINIT_FLAG_UNPRIVILEGED_DAEMON_DEFAULTS)) {
conf->set_val_or_die("pid_file", "/var/run/ceph/$type.$id.pid");
conf->set_val_or_die("admin_socket", "/var/run/ceph/$name.asok");
Expand Down
447 changes: 12 additions & 435 deletions src/common/config.cc

Large diffs are not rendered by default.

Loading

0 comments on commit 3552878

Please sign in to comment.