Ignore UFS/FFS superblock check hash failures so as to allow a higher
level in the filesystem stack to decide what to do about them. Reported by: Peter Holm Tested by: Peter Holm Sponsored by: Netflix
This commit is contained in:
parent
ef7a2ead30
commit
e9660daffb
@ -76,8 +76,8 @@ g_label_ufs_taste_common(struct g_consumer *cp, char *label, size_t size, int wh
|
||||
label[0] = '\0';
|
||||
|
||||
fs = NULL;
|
||||
if (SBLOCKSIZE % pp->sectorsize != 0 ||
|
||||
ffs_sbget(cp, &fs, STDSB, M_GEOM, g_use_g_read_data) != 0) {
|
||||
if (SBLOCKSIZE % pp->sectorsize != 0 || ffs_sbget(cp, &fs,
|
||||
STDSB_NOHASHFAIL, M_GEOM, g_use_g_read_data) != 0) {
|
||||
KASSERT(fs == NULL,
|
||||
("g_label_ufs_taste_common: non-NULL fs %p\n", fs));
|
||||
return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user