summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2002-11-20 20:12:52 +0000
committerphk <phk@FreeBSD.org>2002-11-20 20:12:52 +0000
commit8411a44a2fe9dd550f9d7a427980d862badbdf1a (patch)
treec0d2430355bd98955c676d115172b0892a8b2603 /sys
parentf56a1ec8b64458a7becb08065cdba079b179283d (diff)
downloadFreeBSD-src-8411a44a2fe9dd550f9d7a427980d862badbdf1a.zip
FreeBSD-src-8411a44a2fe9dd550f9d7a427980d862badbdf1a.tar.gz
Remember to update the providers idea of its size when we reconfigure
a slice child. Approved by: re
Diffstat (limited to 'sys')
-rw-r--r--sys/geom/geom_slice.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/geom/geom_slice.c b/sys/geom/geom_slice.c
index 033713a..ca8d023 100644
--- a/sys/geom/geom_slice.c
+++ b/sys/geom/geom_slice.c
@@ -279,6 +279,7 @@ g_slice_config(struct g_geom *gp, int index, int how, off_t offset, off_t length
printf("GEOM: Reconfigure %s, start %jd length %jd end %jd\n",
pp->name, (intmax_t)offset, (intmax_t)length,
(intmax_t)(offset + length - 1));
+ pp->mediasize = gsl->length;
return (0);
}
va_start(ap, fmt);
OpenPOWER on IntegriCloud