diff options
| author | Mark Harmstone <mark@harmstone.com> | 2025-12-19 18:15:28 +0000 |
|---|---|---|
| committer | David Sterba <dsterba@suse.com> | 2026-01-06 01:23:00 +0100 |
| commit | 2bb83bc42be6280d9bc363b8fbcd6fdab690d16d (patch) | |
| tree | df2daaf3691f0ea6a07187065d9c0224db43c944 /include/linux/platform_data | |
| parent | 530e3d4af566ca44807d79359b90794dea24c4f3 (diff) | |
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>
Diffstat (limited to 'include/linux/platform_data')
0 files changed, 0 insertions, 0 deletions
