Commit 875eeda
btrfs: make error messages more clear when getting a chunk map
commit 7d410d5 upstream.
When getting a chunk map, at btrfs_get_chunk_map(), we do some sanity
checks to verify we found a chunk map and that map found covers the
logical address the caller passed in. However the messages aren't very
clear in the sense that don't mention the issue is with a chunk map and
one of them prints the 'length' argument as if it were the end offset of
the requested range (while the in the string format we use %llu-%llu
which suggests a range, and the second %llu-%llu is actually a range for
the chunk map). So improve these two details in the error messages.
CC: stable@vger.kernel.org # 5.4+
Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>1 parent 4769383 commit 875eeda
1 file changed
Lines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3064 | 3064 | | |
3065 | 3065 | | |
3066 | 3066 | | |
3067 | | - | |
| 3067 | + | |
| 3068 | + | |
3068 | 3069 | | |
3069 | 3070 | | |
3070 | 3071 | | |
3071 | 3072 | | |
3072 | 3073 | | |
3073 | 3074 | | |
3074 | | - | |
3075 | | - | |
| 3075 | + | |
| 3076 | + | |
3076 | 3077 | | |
3077 | 3078 | | |
3078 | 3079 | | |
| |||
0 commit comments