]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
filestore: make FileStore btrfs ioctl tests more readable
authorSage Weil <sage@newdream.net>
Tue, 10 Nov 2009 15:37:45 +0000 (07:37 -0800)
committerSage Weil <sage@newdream.net>
Tue, 10 Nov 2009 15:37:45 +0000 (07:37 -0800)
src/os/FileStore.cc

index 04868bc1c6863ec1b9f0ffb2097cac1e9ed150b3..888c63650e11bb0462b25ba11630146b71c1e985 100644 (file)
@@ -499,13 +499,15 @@ int FileStore::mount()
   btrfs_trans_start_end = true;  // trans start/end interface
   r = apply_transaction(empty, 0);
   if (r != 0) {
-    dout(0) << "mount lame, new TRANS_RESV_START ioctl is NOT supported" << dendl;
+    dout(0) << "mount btrfs TRANS_RESV_START ioctl NOT supported: " << strerror_r(-r, buf, sizeof(buf)) << dendl;
     btrfs_trans_resv_start = false;
     r = apply_transaction(empty, 0);
   } else {
-    dout(0) << "mount yay, new TRANS_RESV_START ioctl is supported" << dendl;
+    dout(0) << "mount btrfs TRANS_RESV_START ioctl is supported" << dendl;
   }
   if (r == 0) {
+    dout(0) << "mount btrfs RESV_START ioctl is supported" << dendl;
+
     // do we have the shiny new CLONE_RANGE ioctl?
     btrfs = 2;
     int r = _do_clone_range(fsid_fd, -1, 0, 1);
@@ -516,7 +518,8 @@ int FileStore::mount()
       btrfs = 1;
     }
   } else {
-    dout(0) << "mount did NOT detect btrfs: " << strerror_r(-r, buf, sizeof(buf)) << dendl;
+    dout(0) << "mount btrfs RESV_START ioctl is NOT supported: " << strerror_r(-r, buf, sizeof(buf)) << dendl;
+    dout(0) << "mount did NOT detect btrfs" << dendl;
     btrfs = 0;
   }