summaryrefslogtreecommitdiffstats
path: root/sys/geom/bde/g_bde.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2003-02-11 14:57:34 +0000
committerphk <phk@FreeBSD.org>2003-02-11 14:57:34 +0000
commitfd7ea6d48a7d211946407c3e54e2eb37746d510a (patch)
tree9134449cbea5212847a4e75800cbaa03b04f0f69 /sys/geom/bde/g_bde.c
parentb2fb11897013800a76444ffcab5961680ac3f321 (diff)
downloadFreeBSD-src-fd7ea6d48a7d211946407c3e54e2eb37746d510a.zip
FreeBSD-src-fd7ea6d48a7d211946407c3e54e2eb37746d510a.tar.gz
Better names for struct disk elements: d_maxsize, d_stripeoffset
and d_stripesisze; Introduce si_stripesize and si_stripeoffset in struct cdev so we can make the visible to clustering code. Add stripesize and stripeoffset to providers. DTRT with stripesize and stripeoffset in various places in GEOM.
Diffstat (limited to 'sys/geom/bde/g_bde.c')
-rw-r--r--sys/geom/bde/g_bde.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/geom/bde/g_bde.c b/sys/geom/bde/g_bde.c
index 1f6f9cf..13fb280 100644
--- a/sys/geom/bde/g_bde.c
+++ b/sys/geom/bde/g_bde.c
@@ -248,6 +248,8 @@ g_bde_config(struct g_configargs *ga)
g_topology_lock();
pp = g_new_providerf(gp, gp->name);
pp->flags |= G_PF_CANDELETE;
+ pp->slicesize = kp->zone_cont;
+ pp->sliceoffset = 0;
pp->mediasize = sc->mediasize;
pp->sectorsize = sc->sectorsize;
g_error_provider(pp, 0);
OpenPOWER on IntegriCloud