summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorle <le@FreeBSD.org>2005-03-07 19:58:58 +0000
committerle <le@FreeBSD.org>2005-03-07 19:58:58 +0000
commitee457df6ea62113f502690a5339ffc35c88bb1fd (patch)
treed0fd13a166b3cdb391b3638380b2ba9c8e572cfe /sys
parent1cdb32f8ebf9f60b16c0e9506192f56324b9691b (diff)
downloadFreeBSD-src-ee457df6ea62113f502690a5339ffc35c88bb1fd.zip
FreeBSD-src-ee457df6ea62113f502690a5339ffc35c88bb1fd.tar.gz
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.
Diffstat (limited to 'sys')
-rw-r--r--sys/geom/vinum/geom_vinum.c3
-rw-r--r--sys/geom/vinum/geom_vinum_drive.c3
2 files changed, 0 insertions, 6 deletions
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)
OpenPOWER on IntegriCloud