btrfs: Show detail information when mount failed on missing devices
[linux-2.6-block.git] / fs / btrfs / disk-io.c
index f556c3732c2c16e22e0bcbd35f9ee1277179be5b..e49ae5ea904036de3e13cc429205f947980c30b2 100644 (file)
@@ -2950,8 +2950,9 @@ retry_root_backup:
        if (fs_info->fs_devices->missing_devices >
             fs_info->num_tolerated_disk_barrier_failures &&
            !(sb->s_flags & MS_RDONLY)) {
-               printk(KERN_WARNING "BTRFS: "
-                       "too many missing devices, writeable mount is not allowed\n");
+               pr_warn("BTRFS: missing devices(%llu) exceeds the limit(%d), writeable mount is not allowed\n",
+                       fs_info->fs_devices->missing_devices,
+                       fs_info->num_tolerated_disk_barrier_failures);
                goto fail_sysfs;
        }