The branch main has been updated by mckusick:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=728f2c61312aaf550f0a761bdbcdcbd4977e23f0

commit 728f2c61312aaf550f0a761bdbcdcbd4977e23f0
Author:     Kirk McKusick <mckus...@freebsd.org>
AuthorDate: 2021-11-15 17:26:21 +0000
Commit:     Kirk McKusick <mckus...@freebsd.org>
CommitDate: 2021-11-15 17:26:21 +0000

    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
---
 sys/geom/label/g_label_ufs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/geom/label/g_label_ufs.c b/sys/geom/label/g_label_ufs.c
index b29a04c9f348..0de09ec93896 100644
--- a/sys/geom/label/g_label_ufs.c
+++ b/sys/geom/label/g_label_ufs.c
@@ -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;

Reply via email to