From 3fd530f7ec4afde0ffb9db6ba83ae407abbf8057 Mon Sep 17 00:00:00 2001 From: Poul-Henning Kamp Date: Mon, 5 May 2003 08:30:59 +0000 Subject: [PATCH] Don't warn if the rawoffset is zero, that is actually the best value it could have. --- sys/geom/geom_bsd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/geom/geom_bsd.c b/sys/geom/geom_bsd.c index 2fe2db6202a..3adc4a9e31d 100644 --- a/sys/geom/geom_bsd.c +++ b/sys/geom/geom_bsd.c @@ -142,7 +142,7 @@ g_bsd_modify(struct g_geom *gp, u_char *label) rawoffset = 0; } - if ((off_t)rawoffset * dl.d_secsize != ms->mbroffset) + if (rawoffset != 0 && (off_t)rawoffset * dl.d_secsize != ms->mbroffset) printf("WARNING: Expected rawoffset %jd, found %jd\n", (intmax_t)ms->mbroffset/dl.d_secsize, (intmax_t)ms->rawoffset);