From 5df21f9258160fffb5804123fe9aaa50bad6be01 Mon Sep 17 00:00:00 2001 From: phk Date: Sun, 20 Oct 2002 19:18:07 +0000 Subject: Make the sectorsize a property of providers so we can include it in the XML output. Sponsored by: DARPA & NAI Labs --- sys/geom/geom_mbr.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'sys/geom/geom_mbr.c') diff --git a/sys/geom/geom_mbr.c b/sys/geom/geom_mbr.c index 46442b1..418fa4d 100644 --- a/sys/geom/geom_mbr.c +++ b/sys/geom/geom_mbr.c @@ -242,8 +242,9 @@ g_mbr_taste(struct g_class *mp, struct g_provider *pp, int insist) ms->type[i] = dp[i].dp_typ; g_topology_lock(); pp2 = g_slice_addslice(gp, i, - ((off_t)dp[i].dp_start) << 9ULL, - ((off_t)dp[i].dp_size) << 9ULL, + (off_t)dp[i].dp_start << 9ULL, + (off_t)dp[i].dp_size << 9ULL, + sectorsize, "%ss%d", gp->name, i + 1); g_topology_unlock(); } @@ -378,6 +379,7 @@ g_mbrext_taste(struct g_class *mp, struct g_provider *pp, int insist __unused) pp2 = g_slice_addslice(gp, slice, (((off_t)dp[0].dp_start) << 9ULL) + off, ((off_t)dp[0].dp_size) << 9ULL, + sectorsize, "%*.*s%d", strlen(gp->name) - 1, strlen(gp->name) - 1, -- cgit v1.1