summaryrefslogtreecommitdiffstats
path: root/sys/geom/vinum/geom_vinum.c
diff options
context:
space:
mode:
authorle <le@FreeBSD.org>2004-09-13 17:27:58 +0000
committerle <le@FreeBSD.org>2004-09-13 17:27:58 +0000
commitb19a8d0082bffe3b441106a13c1aa0211d48e6ff (patch)
tree39c91bd82f86478c0fbbb6f96b8c655ef20e3609 /sys/geom/vinum/geom_vinum.c
parente837c32545358fa15a790f43a61173acf53548c3 (diff)
downloadFreeBSD-src-b19a8d0082bffe3b441106a13c1aa0211d48e6ff.zip
FreeBSD-src-b19a8d0082bffe3b441106a13c1aa0211d48e6ff.tar.gz
Read a whole sector instead of GV_HDR_LEN, since a sector might be
bigger (i.e. on CD-ROMs).
Diffstat (limited to 'sys/geom/vinum/geom_vinum.c')
-rw-r--r--sys/geom/vinum/geom_vinum.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/geom/vinum/geom_vinum.c b/sys/geom/vinum/geom_vinum.c
index 92b0a4b4..5045345 100644
--- a/sys/geom/vinum/geom_vinum.c
+++ b/sys/geom/vinum/geom_vinum.c
@@ -186,7 +186,7 @@ gv_taste(struct g_class *mp, struct g_provider *pp, int flags __unused)
g_topology_unlock();
/* Check if the provided slice is a valid vinum drive. */
- vhdr = g_read_data(cp, GV_HDR_OFFSET, GV_HDR_LEN, &error);
+ vhdr = g_read_data(cp, GV_HDR_OFFSET, pp->sectorsize, &error);
if (vhdr == NULL || error != 0) {
g_topology_lock();
g_access(cp, -1, 0, 0);
OpenPOWER on IntegriCloud