Commit 7f7d69c
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 <krisman@suse.de>
Link: https://patch.msgid.link/87jzg1en6j.fsf_-_@mailhost.krisman.be
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@igalia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit 0eb7d3da258b05538f573200fab751420ca93b2f)
Signed-off-by: Wentao Guan <guanwentao@uniontech.com>1 parent c9a70ca commit 7f7d69c
2 files changed
Lines changed: 18 additions & 11 deletions
| 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