summaryrefslogtreecommitdiffstats
path: root/usr.sbin/sade/disks.c
diff options
context:
space:
mode:
authorgibbs <gibbs@FreeBSD.org>1998-09-15 10:24:46 +0000
committergibbs <gibbs@FreeBSD.org>1998-09-15 10:24:46 +0000
commit8039eb9e6c6087f626b5d27ad85bc26b5711c25a (patch)
treecbfb81eaec30afc169fb8202d7d8fd28cd8826dd /usr.sbin/sade/disks.c
parentca47b7a2f4f9c46e4818fb8356a408dceff75b47 (diff)
downloadFreeBSD-src-8039eb9e6c6087f626b5d27ad85bc26b5711c25a.zip
FreeBSD-src-8039eb9e6c6087f626b5d27ad85bc26b5711c25a.tar.gz
Device name cleanup for CAM.
Diffstat (limited to 'usr.sbin/sade/disks.c')
-rw-r--r--usr.sbin/sade/disks.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/sade/disks.c b/usr.sbin/sade/disks.c
index b5ed7ab..9f08837 100644
--- a/usr.sbin/sade/disks.c
+++ b/usr.sbin/sade/disks.c
@@ -4,7 +4,7 @@
* This is probably the last program in the `sysinstall' line - the next
* generation being essentially a complete rewrite.
*
- * $Id: disks.c,v 1.98 1998/03/23 08:36:26 jkh Exp $
+ * $Id: disks.c,v 1.99 1998/09/14 19:14:11 jkh Exp $
*
* Copyright (c) 1995
* Jordan Hubbard. All rights reserved.
@@ -291,6 +291,7 @@ diskPartition(Device *dev)
if (chunk_info[current_chunk]->type != freebsd)
msg = "Can only scan for bad blocks in FreeBSD slice.";
else if (strncmp(d->name, "sd", 2) ||
+ strncmp(d->name, "da", 2) ||
!msgYesNo("This typically makes sense only for ESDI, IDE or MFM drives.\n"
"Are you sure you want to do this on a SCSI disk?")) {
if (chunk_info[current_chunk]->flags & CHUNK_BAD144)
OpenPOWER on IntegriCloud