From 82df8b5d631daa0543035ffdfcfb44c1ed0f2232 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Tue, 10 Nov 2009 07:37:45 -0800 Subject: [PATCH] filestore: make FileStore btrfs ioctl tests more readable --- src/os/FileStore.cc | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/os/FileStore.cc b/src/os/FileStore.cc index 04868bc1c6863..888c63650e11b 100644 --- a/src/os/FileStore.cc +++ b/src/os/FileStore.cc @@ -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; } -- 2.39.5