From 9c2d1acf944d45160d92c972bccf547a70b8d455 Mon Sep 17 00:00:00 2001 From: bouyer Date: Mon, 5 Sep 2005 21:09:08 +0000 Subject: [PATCH] Use a pmatch(9) expression which should catch all present and future seagate drives larger than 200GB for the WD_QUIRK_FORCE_LBA48 quirks. Based on infos from http://www.seagate.com/support/kb/disc/howto/interpret_model.html --- sys/dev/ata/wd.c | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/sys/dev/ata/wd.c b/sys/dev/ata/wd.c index bf8b3e9e5a2b..356609caf922 100644 --- a/sys/dev/ata/wd.c +++ b/sys/dev/ata/wd.c @@ -1,4 +1,4 @@ -/* $NetBSD: wd.c,v 1.309 2005/09/05 20:42:37 bouyer Exp $ */ +/* $NetBSD: wd.c,v 1.310 2005/09/05 21:09:08 bouyer Exp $ */ /* * Copyright (c) 1998, 2001 Manuel Bouyer. All rights reserved. @@ -66,7 +66,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: wd.c,v 1.309 2005/09/05 20:42:37 bouyer Exp $"); +__KERNEL_RCSID(0, "$NetBSD: wd.c,v 1.310 2005/09/05 21:09:08 bouyer Exp $"); #ifndef ATADEBUG #define ATADEBUG @@ -243,15 +243,9 @@ static const struct wd_quirk { WD_QUIRK_FORCE_LBA48 }, { "ST3160827A*", WD_QUIRK_FORCE_LBA48 }, - { "ST3200822A*", + /* Attemp to catch all seagate drives larger than 200GB */ + { "ST3[2-9][0-9][0-9][0-9][0-9][0-9]A*", WD_QUIRK_FORCE_LBA48 }, - { "ST3250823A*", - WD_QUIRK_FORCE_LBA48 }, - { "ST3200826A*", - WD_QUIRK_FORCE_LBA48 }, - { "ST3300831A*", - WD_QUIRK_FORCE_LBA48 }, - { NULL, 0 } };