]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: warn when failing to mount journal on ENOTTY
authorYehuda Sadeh <yehuda@hq.newdream.net>
Wed, 16 Jun 2010 17:53:08 +0000 (10:53 -0700)
committerYehuda Sadeh <yehuda@hq.newdream.net>
Wed, 16 Jun 2010 17:53:08 +0000 (10:53 -0700)
suggest that the problem was due to journal size not configured

src/os/FileStore.cc

index 82f7f19496866992dab28350538cd1a19a9d5223..90c1b111f0881a6d9eedea7977acaeb7f279f0ff 100644 (file)
@@ -683,6 +683,9 @@ int FileStore::mount()
            << strerror_r(-r, buf, sizeof(buf)) << dendl;
     cerr << "mount failed to open journal " << journalpath << ": "
         << strerror_r(-r, buf, sizeof(buf)) << std::endl;
+    if (r == -ENOTTY)
+      cerr << "maybe journal is not pointing to a block device and its size wasn't configured?" << std::endl;
+
     return r;
   }
   journal_start();