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:
Kirk McKusick 2019-08-06 18:28:44 +00:00
parent ef7a2ead30
commit e9660daffb
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=350653

View File

@ -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;