From: Sage Weil Date: Thu, 17 Jun 2010 16:29:12 +0000 (-0700) Subject: filejournal: journal write cache is safe on >= 2.6.33 X-Git-Tag: v0.21~367 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=f976bbdcf700e52c9ef92964551b2c73b014686c;p=ceph.git filejournal: journal write cache is safe on >= 2.6.33 --- diff --git a/src/os/FileJournal.cc b/src/os/FileJournal.cc index 6cead38044e3..f20f0a556c9d 100644 --- a/src/os/FileJournal.cc +++ b/src/os/FileJournal.cc @@ -105,11 +105,13 @@ int FileJournal::_open(bool forwrite, bool create) int on; if (sscanf(s, " write-caching = %d", &on) == 1) { if (on) { - dout(0) << "WARNING: disk write cache is ON, journaling will not be reliable" << dendl; + dout(0) << "WARNING: disk write cache is ON; journaling will not be reliable" << dendl; + dout(0) << " on kernels prior to 2.6.33 (recent kernels are safe)" << dendl; dout(0) << " disable with 'hdparm -W 0 " << fn << "'" << dendl; cout << TEXT_RED << " ** WARNING: disk write cache is ON on " << fn << ".\n" - << " Journaling will not be reliable. Disable write cache with\n" + << " Journaling will not be reliable on kernels prior to 2.6.33\n" + << " (recent kernels are safe). You can disable the write cache with\n" << " 'hdparm -W 0 " << fn << "'" << TEXT_NORMAL << std::endl;