File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -167,10 +167,19 @@ found:;
167
167
goto err ;
168
168
169
169
struct bch_hash_info hash2 = bch2_hash_info_init (c , & inode );
170
- if (memcmp (hash_info , & hash2 , sizeof (hash2 ))) {
170
+ if (hash_info -> type != hash2 .type ||
171
+ memcmp (& hash_info -> siphash_key , & hash2 .siphash_key , sizeof (hash2 .siphash_key ))) {
171
172
ret = repair_inode_hash_info (trans , & inode );
172
173
if (!ret ) {
173
- bch_err (c , "inode hash info mismatch with root, but mismatch not found" );
174
+ bch_err (c , "inode hash info mismatch with root, but mismatch not found\n"
175
+ "%u %llx %llx\n"
176
+ "%u %llx %llx" ,
177
+ hash_info -> type ,
178
+ hash_info -> siphash_key .k0 ,
179
+ hash_info -> siphash_key .k1 ,
180
+ hash2 .type ,
181
+ hash2 .siphash_key .k0 ,
182
+ hash2 .siphash_key .k1 );
174
183
ret = - BCH_ERR_fsck_repair_unimplemented ;
175
184
}
176
185
}
You can’t perform that action at this time.
0 commit comments