mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 09:41:03 -04:00
Do not complain about incorrect cylinder group check-hashes when
asked to add them to a filesystem.
Sponsored by: Netflix
(cherry picked from commit 6385cabd5b)
This commit is contained in:
parent
4e535a1ba7
commit
7dd29d256f
1 changed files with 2 additions and 1 deletions
|
|
@ -926,7 +926,8 @@ check_cgmagic(int cg, struct bufarea *cgbp, int request_rebuild)
|
|||
* Extended cylinder group checks.
|
||||
*/
|
||||
calchash = cgp->cg_ckhash;
|
||||
if ((sblock.fs_metackhash & CK_CYLGRP) != 0) {
|
||||
if ((sblock.fs_metackhash & CK_CYLGRP) != 0 &&
|
||||
(ckhashadd & CK_CYLGRP) == 0) {
|
||||
cghash = cgp->cg_ckhash;
|
||||
cgp->cg_ckhash = 0;
|
||||
calchash = calculate_crc32c(~0L, (void *)cgp, sblock.fs_cgsize);
|
||||
|
|
|
|||
Loading…
Reference in a new issue