diff options
| author | Poul-Henning Kamp <phk@FreeBSD.org> | 2003-05-05 08:30:59 +0000 |
|---|---|---|
| committer | Poul-Henning Kamp <phk@FreeBSD.org> | 2003-05-05 08:30:59 +0000 |
| commit | 3fd530f7ec4afde0ffb9db6ba83ae407abbf8057 (patch) | |
| tree | 6c85f47283d05de425f41df1bd6d1791939e0cf8 /sys | |
| parent | c4ed9fe32388b0f8ae3183fa399c133e2c5cf36c (diff) | |
Notes
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/geom/geom_bsd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/geom/geom_bsd.c b/sys/geom/geom_bsd.c index 2fe2db6202a9..3adc4a9e31d3 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); |
