// UNMOUNT
-int Client::unmount()
+void Client::unmount()
{
Mutex::Locker lock(client_lock);
dout(2) << "unmounted." << dendl;
objecter->shutdown();
-
- return 0;
}
public:
int mount(const std::string &mount_root);
- int unmount();
+ void unmount();
// these shoud (more or less) mirror the actual system calls.
int statfs(const char *path, struct statvfs *stbuf);
}
dout(1) << "syn done, unmounting " << dendl;
- if (client->unmount() == 0)
- client->shutdown();
+ client->unmount();
+ client->shutdown();
return 0;
}
int ceph_conf_get(ceph_cluster_t *cluster, const char *option, char *buf, size_t len);
int ceph_mount(ceph_cluster_t *cluster, const char *root);
-int ceph_umount(ceph_cluster_t *cluster);
+void ceph_umount(ceph_cluster_t *cluster);
int ceph_statfs(ceph_cluster_t *cluster, const char *path, struct statvfs *stbuf);
int ceph_get_local_osd(ceph_cluster_t *cluster);
return 0;
}
- int umount()
+ void umount()
{
if (!mounted)
- return -EINVAL;
- int ret = client->unmount();
- if (ret)
- return ret;
+ return;
+ client->unmount();
mounted = false;
- return 0;
}
Client *get_client()
return cluster->mount(mount_root);
}
-extern "C" int ceph_umount(ceph_cluster_t *cluster)
+extern "C" void ceph_umount(ceph_cluster_t *cluster)
{
- return cluster->umount();
+ cluster->umount();
}
extern "C" int ceph_statfs(ceph_cluster_t *cluster, const char *path,