Skip to content

Commit fb259e6

Browse files
adam900710gregkh
authored andcommitted
btrfs: output the reason for open_ctree() failure
commit d0f0381 upstream. There is a recent ML report that mounting a large fs backed by hardware RAID56 controller (with one device missing) took too much time, and systemd seems to kill the mount attempt. In that case, the only error message is: BTRFS error (device sdj): open_ctree failed There is no reason on why the failure happened, making it very hard to understand the reason. At least output the error number (in the particular case it should be -EINTR) to provide some clue. Link: https://lore.kernel.org/linux-btrfs/[email protected]/ Reported-by: Christoph Anton Mitterer <[email protected]> Cc: [email protected] Reviewed-by: Filipe Manana <[email protected]> Signed-off-by: Qu Wenruo <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: David Sterba <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 4e9316e commit fb259e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/btrfs/super.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -971,7 +971,7 @@ static int btrfs_fill_super(struct super_block *sb,
971971

972972
err = open_ctree(sb, fs_devices);
973973
if (err) {
974-
btrfs_err(fs_info, "open_ctree failed");
974+
btrfs_err(fs_info, "open_ctree failed: %d", err);
975975
return err;
976976
}
977977

0 commit comments

Comments
 (0)