mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-23 08:41:05 +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;
|
||||
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,
|
||||
("g_label_ufs_taste_common: non-NULL fs %p\n", fs));
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user