Commit a218743
ext4: fix error message when rejecting the default hash
Commit 985b67c ("ext4: filesystems without casefold feature cannot
be mounted with siphash") properly rejects volumes where
s_def_hash_version is set to DX_HASH_SIPHASH, but the check and the
error message should not look into casefold setup - a filesystem should
never have DX_HASH_SIPHASH as the default hash. Fix it and, since we
are there, move the check to ext4_hash_info_init.
Fixes:985b67cd8639 ("ext4: filesystems without casefold feature cannot
be mounted with siphash")
Signed-off-by: Gabriel Krisman Bertazi <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Theodore Ts'o <[email protected]>1 parent 5f48d4d commit a218743
2 files changed
+18
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2462 | 2462 | | |
2463 | 2463 | | |
2464 | 2464 | | |
| 2465 | + | |
2465 | 2466 | | |
2466 | 2467 | | |
2467 | 2468 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3583 | 3583 | | |
3584 | 3584 | | |
3585 | 3585 | | |
3586 | | - | |
3587 | | - | |
3588 | | - | |
3589 | | - | |
3590 | | - | |
3591 | | - | |
3592 | | - | |
3593 | 3586 | | |
3594 | 3587 | | |
3595 | 3588 | | |
| |||
5095 | 5088 | | |
5096 | 5089 | | |
5097 | 5090 | | |
5098 | | - | |
| 5091 | + | |
5099 | 5092 | | |
5100 | 5093 | | |
5101 | 5094 | | |
5102 | 5095 | | |
5103 | 5096 | | |
| 5097 | + | |
| 5098 | + | |
| 5099 | + | |
| 5100 | + | |
| 5101 | + | |
| 5102 | + | |
| 5103 | + | |
| 5104 | + | |
| 5105 | + | |
| 5106 | + | |
| 5107 | + | |
| 5108 | + | |
5104 | 5109 | | |
5105 | 5110 | | |
5106 | 5111 | | |
5107 | | - | |
5108 | 5112 | | |
5109 | 5113 | | |
5110 | 5114 | | |
| |||
5122 | 5126 | | |
5123 | 5127 | | |
5124 | 5128 | | |
| 5129 | + | |
5125 | 5130 | | |
5126 | 5131 | | |
5127 | 5132 | | |
| |||
5257 | 5262 | | |
5258 | 5263 | | |
5259 | 5264 | | |
5260 | | - | |
| 5265 | + | |
| 5266 | + | |
| 5267 | + | |
5261 | 5268 | | |
5262 | 5269 | | |
5263 | 5270 | | |
| |||
0 commit comments