mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-23 12:11:08 +01:00
Suppress UFS/FFS superblock check-hash failure messages when identifying
disk labels. When the geom label subsystem is checking labels to discover if they are UFS/FFS filesystems, do not print a kernel error message if a superblock is found with a check-hash error. That issue is best handled later if an attempt is made to actually use the filesystem. Sponsored by: Netflix
This commit is contained in:
parent
f2b391528a
commit
728f2c6131
@ -140,7 +140,7 @@ g_label_ufs_taste_common(struct g_consumer *cp, char *label, size_t size, int wh
|
|||||||
|
|
||||||
fs = NULL;
|
fs = NULL;
|
||||||
if (SBLOCKSIZE % pp->sectorsize != 0 || ffs_sbget(cp, &fs,
|
if (SBLOCKSIZE % pp->sectorsize != 0 || ffs_sbget(cp, &fs,
|
||||||
STDSB_NOHASHFAIL, M_GEOM, g_use_g_read_data) != 0) {
|
STDSB_NOHASHFAIL_NOMSG, M_GEOM, g_use_g_read_data) != 0) {
|
||||||
KASSERT(fs == NULL,
|
KASSERT(fs == NULL,
|
||||||
("g_label_ufs_taste_common: non-NULL fs %p\n", fs));
|
("g_label_ufs_taste_common: non-NULL fs %p\n", fs));
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user