From ee457df6ea62113f502690a5339ffc35c88bb1fd Mon Sep 17 00:00:00 2001 From: le Date: Mon, 7 Mar 2005 19:58:58 +0000 Subject: Remove test for zero sectorsize when tasting. This check doesn't seem to be necessary anymore, and it prevents tasting a valid drive when booting with geom_vinum already loaded, since SCSI disks set their sectorsize not until first opening them. --- sys/geom/vinum/geom_vinum.c | 3 --- sys/geom/vinum/geom_vinum_drive.c | 3 --- 2 files changed, 6 deletions(-) (limited to 'sys/geom/vinum') diff --git a/sys/geom/vinum/geom_vinum.c b/sys/geom/vinum/geom_vinum.c index 252b48f..01ccbcb 100644 --- a/sys/geom/vinum/geom_vinum.c +++ b/sys/geom/vinum/geom_vinum.c @@ -136,9 +136,6 @@ gv_taste(struct g_class *mp, struct g_provider *pp, int flags __unused) g_trace(G_T_TOPOLOGY, "gv_taste(%s, %s)", mp->name, pp->name); g_topology_assert(); - if (pp->sectorsize == 0) - return (NULL); - /* Check if we already have a VINUM geom, or create a new one. */ if (LIST_EMPTY(&mp->geom)) { gp = g_new_geomf(mp, "VINUM"); diff --git a/sys/geom/vinum/geom_vinum_drive.c b/sys/geom/vinum/geom_vinum_drive.c index 9de19eb..77f5913 100644 --- a/sys/geom/vinum/geom_vinum_drive.c +++ b/sys/geom/vinum/geom_vinum_drive.c @@ -443,9 +443,6 @@ gv_drive_taste(struct g_class *mp, struct g_provider *pp, int flags __unused) g_trace(G_T_TOPOLOGY, "gv_drive_taste(%s, %s)", mp->name, pp->name); g_topology_assert(); - if (pp->sectorsize == 0) - return(NULL); - /* Find the VINUM class and its associated geom. */ gp2 = find_vinum_geom(); if (gp2 == NULL) -- cgit v1.1