1
0
mirror of https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git synced 2026-01-12 01:20:14 +00:00
Mark Harmstone 2bb83bc42b btrfs: show correct warning if can't read data reloc tree
If a filesystem is missing its data reloc tree, we get something like
this in dmesg:

  BTRFS warning (device loop11): failed to read root (objectid=4): -2
  BTRFS error (device loop11): open_ctree failed: -2

objectid is BTRFS_DEV_TREE_OBJECTID, but this should actually be the
value of BTRFS_DATA_RELOC_TREE_OBJECTID.

btrfs_read_roots() prints location.objectid on failure, but this isn't
set when reading the data reloc tree. Set location.objectid to the
correct value on failure, so that the error message makes sense.

Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: Mark Harmstone <mark@harmstone.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
2026-01-06 01:23:00 +01:00
..
2025-07-28 13:43:25 -07:00
2025-07-28 13:43:25 -07:00
2025-06-10 22:21:16 -04:00
2025-07-28 13:43:25 -07:00
2025-10-03 16:32:36 -07:00
2025-10-02 18:44:54 -07:00
2025-09-29 11:55:15 -07:00
2025-09-29 15:24:58 -07:00
2025-11-12 10:12:39 +01:00
2025-11-17 09:11:27 -08:00
\n
2025-07-28 16:16:09 -07:00
2025-09-13 16:55:07 -07:00
2025-10-03 13:54:23 -07:00
2025-09-29 09:03:07 -07:00
2025-09-29 10:27:17 -07:00
2025-11-12 18:41:01 -08:00
2025-09-13 16:55:13 -07:00
2025-07-28 13:43:25 -07:00
2025-09-29 18:08:34 -07:00
2025-07-28 13:43:25 -07:00
2025-09-16 23:59:38 -04:00
2025-11-22 10:23:34 -08:00
2025-09-21 19:24:50 -04:00
2025-07-28 13:43:25 -07:00
2025-07-28 17:11:40 -07:00
2025-09-26 10:21:23 +02:00
2025-09-29 11:20:29 -07:00
2025-10-07 12:48:33 +02:00
2025-09-29 11:34:40 -07:00
2025-11-12 10:47:42 +01:00
2025-10-03 16:32:36 -07:00
2025-09-01 13:08:01 +02:00
2025-07-28 14:10:15 -07:00
2025-09-29 13:43:52 -07:00
2025-10-03 10:19:44 -07:00
2025-10-03 16:32:36 -07:00
2025-10-03 16:32:36 -07:00
2025-10-03 16:32:36 -07:00
2025-08-29 15:08:07 +02:00
2025-05-23 14:20:44 +02:00
2025-11-12 10:12:39 +01:00
2025-03-25 10:54:15 -07:00
2025-07-28 11:22:56 -07:00