diff options
| author | bad <bad@NetBSD.org> | 2003-01-23 00:00:32 +0000 |
|---|---|---|
| committer | bad <bad@NetBSD.org> | 2003-01-23 00:00:32 +0000 |
| commit | f4aacfe9fcabb81bbeec24832fab9d4f5b79f969 (patch) | |
| tree | 020e409f3cbeb462aa24680117891b3b7890fcc1 /sys/dev/ata | |
| parent | d1567e06c215936811a80c95c72b76a66671a842 (diff) | |
Being able to make image backups of your whole disk, not to mention not
causing certain ata disks to lock up by reading beyond the last block,
beats catering to broken devices.
bounds_check_with_label() RAW_PART too.
Diffstat (limited to 'sys/dev/ata')
| -rw-r--r-- | sys/dev/ata/wd.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/dev/ata/wd.c b/sys/dev/ata/wd.c index 0535265dcac..d9b3f7a618a 100644 --- a/sys/dev/ata/wd.c +++ b/sys/dev/ata/wd.c @@ -1,4 +1,4 @@ -/* $NetBSD: wd.c,v 1.235 2003/01/20 05:30:04 simonb Exp $ */ +/* $NetBSD: wd.c,v 1.236 2003/01/23 00:00:32 bad Exp $ */ /* * Copyright (c) 1998, 2001 Manuel Bouyer. All rights reserved. @@ -66,7 +66,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: wd.c,v 1.235 2003/01/20 05:30:04 simonb Exp $"); +__KERNEL_RCSID(0, "$NetBSD: wd.c,v 1.236 2003/01/23 00:00:32 bad Exp $"); #ifndef WDCDEBUG #define WDCDEBUG @@ -495,8 +495,7 @@ wdstrategy(bp) * Do bounds checking, adjust transfer. if error, process. * If end of partition, just return. */ - if (WDPART(bp->b_dev) != RAW_PART && - bounds_check_with_label(bp, wd->sc_dk.dk_label, + if (bounds_check_with_label(bp, wd->sc_dk.dk_label, (wd->sc_flags & (WDF_WLABEL|WDF_LABELLING)) != 0) <= 0) goto done; |
