Commit 193cbbd
ext4: fix error message when rejecting the default hash
commit a218743 upstream.
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]>
Signed-off-by: Thadeu Lima de Souza Cascardo <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
(cherry picked from commit 0eb7d3da258b05538f573200fab751420ca93b2f)
Signed-off-by: Wentao Guan <[email protected]>1 parent 573960c commit 193cbbd
2 files changed
+18
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2459 | 2459 | | |
2460 | 2460 | | |
2461 | 2461 | | |
| 2462 | + | |
2462 | 2463 | | |
2463 | 2464 | | |
2464 | 2465 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3639 | 3639 | | |
3640 | 3640 | | |
3641 | 3641 | | |
3642 | | - | |
3643 | | - | |
3644 | | - | |
3645 | | - | |
3646 | | - | |
3647 | | - | |
3648 | | - | |
3649 | | - | |
3650 | 3642 | | |
3651 | 3643 | | |
3652 | 3644 | | |
| |||
5155 | 5147 | | |
5156 | 5148 | | |
5157 | 5149 | | |
5158 | | - | |
| 5150 | + | |
5159 | 5151 | | |
5160 | 5152 | | |
5161 | 5153 | | |
5162 | 5154 | | |
5163 | 5155 | | |
| 5156 | + | |
| 5157 | + | |
| 5158 | + | |
| 5159 | + | |
| 5160 | + | |
| 5161 | + | |
| 5162 | + | |
| 5163 | + | |
| 5164 | + | |
| 5165 | + | |
| 5166 | + | |
| 5167 | + | |
5164 | 5168 | | |
5165 | 5169 | | |
5166 | 5170 | | |
5167 | | - | |
5168 | 5171 | | |
5169 | 5172 | | |
5170 | 5173 | | |
| |||
5182 | 5185 | | |
5183 | 5186 | | |
5184 | 5187 | | |
| 5188 | + | |
5185 | 5189 | | |
5186 | 5190 | | |
5187 | 5191 | | |
| |||
5326 | 5330 | | |
5327 | 5331 | | |
5328 | 5332 | | |
5329 | | - | |
| 5333 | + | |
| 5334 | + | |
| 5335 | + | |
5330 | 5336 | | |
5331 | 5337 | | |
5332 | 5338 | | |
| |||
0 commit comments