]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
*** empty log message ***
authorsage <sage@29311d96-e01e-0410-9327-a35deaab8ce9>
Mon, 17 Apr 2006 17:15:51 +0000 (17:15 +0000)
committersage <sage@29311d96-e01e-0410-9327-a35deaab8ce9>
Mon, 17 Apr 2006 17:15:51 +0000 (17:15 +0000)
git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@746 29311d96-e01e-0410-9327-a35deaab8ce9

ceph/osd/FakeStore.cc
ceph/osd/OSD.cc

index 420d2ac5b41fa5549b91fc94c9bda36a79862ad6..7aa7dff62b3fcc411232b7967ffd031f8b04ba13 100644 (file)
@@ -60,6 +60,7 @@ FakeStore::FakeStore(char *base, int whoami)
 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);
@@ -101,6 +102,7 @@ int FakeStore::umount()
 
   if (g_conf.fakestore_dev) {
        char cmd[100];
+       dout(0) << "umounting" << endl;
        sprintf(cmd,"umount %s", g_conf.fakestore_dev);
        system(cmd);
   }
@@ -172,6 +174,14 @@ void FakeStore::wipe_dir(string mydir)
 
 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;
@@ -213,6 +223,13 @@ int FakeStore::mkfs()
          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;
index da4cc17ed55393a37330673f045803343249e336..624243dcefa8935c1b5e66049121bcbea89d3fd5 100644 (file)
@@ -113,7 +113,8 @@ OSD::OSD(int id, Messenger *m)
   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: