]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
filestore: only do btrfs_snap if btrfs
authorSage Weil <sage@newdream.net>
Thu, 18 Feb 2010 05:11:30 +0000 (21:11 -0800)
committerSage Weil <sage@newdream.net>
Thu, 18 Feb 2010 05:11:30 +0000 (21:11 -0800)
src/os/FileStore.cc

index 1e6397a4dc9d1c03d5f013bff78d5bfa4aa2a47a..5d6d1a4ef12850bbadeb7cd9daeab71b07724957 100644 (file)
@@ -538,7 +538,7 @@ int FileStore::mount()
 
     dout(0) << "mount found snaps " << snaps << dendl;
   }
-  if (g_conf.filestore_btrfs_snap) {
+  if (btrfs && g_conf.filestore_btrfs_snap) {
     if (snaps.empty()) {
       dout(0) << "mount WARNING: no consistent snaps found, store may be in inconsistent state" << dendl;
     } else if (!btrfs) {
@@ -1466,7 +1466,7 @@ void FileStore::sync_entry()
       sprintf(s, "%lld\n", (long long unsigned)cp);
       ::pwrite(op_fd, s, strlen(s), 0);
 
-      bool do_snap = g_conf.filestore_btrfs_snap;
+      bool do_snap = btrfs && g_conf.filestore_btrfs_snap;
 
       if (do_snap) {
        btrfs_ioctl_vol_args snapargs;