diff options
author | David Sterba <[email protected]> | 2022-06-02 23:57:17 +0200 |
---|---|---|
committer | David Sterba <[email protected]> | 2022-06-07 17:29:50 +0200 |
commit | e3a4167c880cf889f66887a152799df4d609dd21 (patch) | |
tree | e67c60093c6e8b3b2ae8b9fba02aea13abf13833 /scripts/gdb/linux/modules.py | |
parent | 0591f04036218d572d54349ea8c7914ad9c82b2b (diff) |
btrfs: add error messages to all unrecognized mount options
Almost none of the errors stemming from a valid mount option but wrong
value prints a descriptive message which would help to identify why
mount failed. Like in the linked report:
$ uname -r
v4.19
$ mount -o compress=zstd /dev/sdb /mnt
mount: /mnt: wrong fs type, bad option, bad superblock on
/dev/sdb, missing codepage or helper program, or other error.
$ dmesg
...
BTRFS error (device sdb): open_ctree failed
Errors caused by memory allocation failures are left out as it's not a
user error so reporting that would be confusing.
Link: https://lore.kernel.org/linux-btrfs/[email protected]/
CC: [email protected] # 4.9+
Reviewed-by: Qu Wenruo <[email protected]>
Reviewed-by: Nikolay Borisov <[email protected]>
Reviewed-by: Anand Jain <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/modules.py')
0 files changed, 0 insertions, 0 deletions