cout << "mounting" << std::endl;
client->mount();
- cerr << "starting fuse on pid " << getpid() << std::endl;
+ //cerr << "starting fuse on pid " << getpid() << std::endl;
if (g_conf.fuse_ll)
ceph_fuse_ll_main(client, argc, argv);
else
ceph_fuse_main(client, argc, argv);
- cerr << "fuse finished on pid " << getpid() << std::endl;
+ //cerr << "fuse finished on pid " << getpid() << std::endl;
client->unmount();
cout << "unmounted" << std::endl;
int ceph_fuse_ll_main(Client *c, int argc, char *argv[])
{
- cout << "ceph_fuse_ll_main starting fuse" << std::endl;
+ cout << "ceph_fuse_ll_main starting fuse on pid " << getpid() << std::endl;
client = c;
*
* note that this DOES heed dir_auth.pending
*/
+/*
bool CDir::is_subtree_root()
{
if (dir_auth == CDIR_AUTH_DEFAULT) {
return true;
}
}
+*/
/** contains(x)
* true if we are x, or an ancestor of x
return !is_auth() && !is_ambiguous_dir_auth();
}
- bool is_subtree_root();
+ bool is_subtree_root() {
+ return dir_auth != CDIR_AUTH_DEFAULT;
+ }
bool contains(CDir *x); // true if we are x or an ancestor of x
mds_import_map[ mds->get_nodeid() ] = import_map;
- dout(5) << "mds" << mds->get_nodeid() << " sending heartbeat " << beat_epoch << " " << load << dendl;
+ dout(5) << "mds" << mds->get_nodeid() << " epoch " << beat_epoch << " load " << load << dendl;
for (map<int, float>::iterator it = import_map.begin();
it != import_map.end();
it++) {
socklen_t llen = sizeof(listen_addr);
getsockname(listen_sd, (sockaddr*)&listen_addr, &llen);
- dout(-10) << "accepter.start bound to " << listen_addr << dendl;
+ dout(10) << "accepter.start bound to " << listen_addr << dendl;
// listen!
rc = ::listen(listen_sd, 1000);