int FakeStore::mount()
{
if (g_conf.fakestore_dev) {
+ dout(0) << "mounting" << endl;
char cmd[100];
sprintf(cmd,"mount %s", g_conf.fakestore_dev);
system(cmd);
if (g_conf.fakestore_dev) {
char cmd[100];
+ dout(0) << "umounting" << endl;
sprintf(cmd,"umount %s", g_conf.fakestore_dev);
system(cmd);
}
int FakeStore::mkfs()
{
+ if (g_conf.fakestore_dev) {
+ dout(0) << "mounting" << endl;
+ char cmd[100];
+ sprintf(cmd,"mount %s", g_conf.fakestore_dev);
+ system(cmd);
+ }
+
+
int r = 0;
struct stat st;
string mydir;
wipe_dir( subdir );
}
+ if (g_conf.fakestore_dev) {
+ char cmd[100];
+ dout(0) << "umounting" << endl;
+ sprintf(cmd,"umount %s", g_conf.fakestore_dev);
+ system(cmd);
+ }
+
dout(1) << "mkfs done in " << mydir << endl;
return r;
pending_ops = 0;
waiting_for_no_ops = false;
-
+ if (g_conf.osd_remount_at)
+ g_timer.add_event_after(g_conf.osd_remount_at, new C_Remount(this));
// try in this order: