]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
filestore: remove obsolete fs type check
authorSage Weil <sage.weil@dreamhost.com>
Thu, 2 Feb 2012 18:03:28 +0000 (10:03 -0800)
committerSage Weil <sage.weil@dreamhost.com>
Thu, 2 Feb 2012 18:07:14 +0000 (10:07 -0800)
This isn't a useful check.  xfs and ext4 work too.

Fixes: #1995
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
src/os/FileStore.cc

index 73329ee48b9bb3819f8bb1441f4b9c61c0e5ca61..dda2280b385537e347ccc39d96e5c9da6d4b1a78 100644 (file)
@@ -1335,18 +1335,6 @@ int FileStore::_sanity_check_fs()
           << "        filestore journal writeahead = true\n"
           << TEXT_NORMAL;
     }
-
-    // ext3?
-    struct statfs buf;
-    int r = ::statfs(basedir.c_str(), &buf);
-    if (r == 0 && buf.f_type != 0xEF53 /*EXT3_SUPER_MAGIC*/) {
-      dout(0) << "mount WARNING: not btrfs or ext3; data may be lost" << dendl;
-      cerr << TEXT_YELLOW
-          << " ** WARNING: not btrfs or ext3.  We don't currently support file systems other\n"
-          << "             than btrfs and ext3 (data=journal or data=ordered).  Data may be\n"
-          << "             lost in the event of a crash.\n"
-          << TEXT_NORMAL;
-    }    
   }
 
   if (!journal) {