]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: Make --get-journal-fsid not attempt aio or direct_io.
authorTommi Virtanen <tv@inktank.com>
Fri, 5 Oct 2012 16:08:56 +0000 (09:08 -0700)
committerTommi Virtanen <tv@inktank.com>
Fri, 5 Oct 2012 22:43:18 +0000 (15:43 -0700)
Signed-off-by: Tommi Virtanen <tv@inktank.com>
src/osd/OSD.cc

index 4648b99c842b0abd5d2485b58708c68eead533f2..79ce18ba73f62b660e3c6ae14240f3275d7d3c09 100644 (file)
@@ -601,7 +601,10 @@ int OSD::peek_meta(const std::string &dev, std::string& magic,
 
 int OSD::peek_journal_fsid(string path, uuid_d& fsid)
 {
-  FileJournal j(fsid, 0, 0, path.c_str());
+  // make sure we don't try to use aio or direct_io (and get annoying
+  // error messages from failing to do so); performance implications
+  // should be irrelevant for this use
+  FileJournal j(fsid, 0, 0, path.c_str(), false, false);
   return j.peek_fsid(fsid);
 }