summaryrefslogtreecommitdiffstats
path: root/sys/geom/geom_bsd.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2003-05-05 08:30:59 +0000
committerphk <phk@FreeBSD.org>2003-05-05 08:30:59 +0000
commit0c30fa28a20a4d1c0ff500aea823c751c38aa496 (patch)
tree6c85f47283d05de425f41df1bd6d1791939e0cf8 /sys/geom/geom_bsd.c
parentbf6823c7b8c4b75bd42e75251a63caa940848f77 (diff)
downloadFreeBSD-src-0c30fa28a20a4d1c0ff500aea823c751c38aa496.zip
FreeBSD-src-0c30fa28a20a4d1c0ff500aea823c751c38aa496.tar.gz
Don't warn if the rawoffset is zero, that is actually the best value it
could have.
Diffstat (limited to 'sys/geom/geom_bsd.c')
-rw-r--r--sys/geom/geom_bsd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/geom/geom_bsd.c b/sys/geom/geom_bsd.c
index 2fe2db6..3adc4a9 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);
OpenPOWER on IntegriCloud