Commit e3a4167
committed
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/9c3fec36-fc61-3a33-4977-a7e207c3fa4e@gmx.de/
CC: stable@vger.kernel.org # 4.9+
Reviewed-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: David Sterba <dsterba@suse.com>1 parent 0591f04 commit e3a4167
1 file changed
Lines changed: 32 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
763 | 763 | | |
764 | 764 | | |
765 | 765 | | |
| 766 | + | |
| 767 | + | |
766 | 768 | | |
767 | 769 | | |
768 | 770 | | |
| |||
821 | 823 | | |
822 | 824 | | |
823 | 825 | | |
| 826 | + | |
| 827 | + | |
824 | 828 | | |
825 | 829 | | |
| 830 | + | |
826 | 831 | | |
827 | 832 | | |
828 | 833 | | |
| |||
883 | 888 | | |
884 | 889 | | |
885 | 890 | | |
886 | | - | |
| 891 | + | |
| 892 | + | |
| 893 | + | |
887 | 894 | | |
| 895 | + | |
888 | 896 | | |
889 | 897 | | |
890 | 898 | | |
| |||
901 | 909 | | |
902 | 910 | | |
903 | 911 | | |
| 912 | + | |
| 913 | + | |
904 | 914 | | |
905 | 915 | | |
906 | 916 | | |
| |||
933 | 943 | | |
934 | 944 | | |
935 | 945 | | |
| 946 | + | |
| 947 | + | |
936 | 948 | | |
937 | 949 | | |
938 | 950 | | |
| |||
1014 | 1026 | | |
1015 | 1027 | | |
1016 | 1028 | | |
1017 | | - | |
| 1029 | + | |
| 1030 | + | |
| 1031 | + | |
| 1032 | + | |
1018 | 1033 | | |
| 1034 | + | |
1019 | 1035 | | |
1020 | 1036 | | |
1021 | 1037 | | |
| |||
1030 | 1046 | | |
1031 | 1047 | | |
1032 | 1048 | | |
1033 | | - | |
| 1049 | + | |
1034 | 1050 | | |
1035 | 1051 | | |
1036 | | - | |
| 1052 | + | |
1037 | 1053 | | |
1038 | 1054 | | |
1039 | | - | |
| 1055 | + | |
| 1056 | + | |
| 1057 | + | |
1040 | 1058 | | |
1041 | 1059 | | |
1042 | 1060 | | |
1043 | 1061 | | |
1044 | 1062 | | |
1045 | 1063 | | |
1046 | 1064 | | |
1047 | | - | |
| 1065 | + | |
| 1066 | + | |
| 1067 | + | |
| 1068 | + | |
1048 | 1069 | | |
| 1070 | + | |
1049 | 1071 | | |
1050 | 1072 | | |
1051 | 1073 | | |
| |||
1059 | 1081 | | |
1060 | 1082 | | |
1061 | 1083 | | |
1062 | | - | |
| 1084 | + | |
| 1085 | + | |
| 1086 | + | |
1063 | 1087 | | |
| 1088 | + | |
1064 | 1089 | | |
1065 | 1090 | | |
1066 | 1091 | | |
| |||
0 commit comments