summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2005-08-08 20:26:22 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2005-08-08 20:26:22 +0000
commit7395f1c84cbbbc58b189669d53db4176a32bb110 (patch)
treedd073992f6ecb7d68cbebf16a61afa0dbe331f03 /sbin
parentd918f290f44c0663e4ba9a971f4ad8207a2aff66 (diff)
print information about ses/safte for each device; ok marco
Diffstat (limited to 'sbin')
-rw-r--r--sbin/bioctl/bioctl.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/sbin/bioctl/bioctl.c b/sbin/bioctl/bioctl.c
index c24add1a0d7..3ee71510ecb 100644
--- a/sbin/bioctl/bioctl.c
+++ b/sbin/bioctl/bioctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bioctl.c,v 1.25 2005/08/08 18:57:16 deraadt Exp $ */
+/* $OpenBSD: bioctl.c,v 1.26 2005/08/08 20:26:21 deraadt Exp $ */
/*
* Copyright (c) 2004, 2005 Marco Peereboom
@@ -259,7 +259,12 @@ bio_inq(char *name)
snprintf(scsiname, sizeof scsiname,
"%u:%u.%u",
bd.bd_channel, bd.bd_target, bd.bd_lun);
- snprintf(encname, sizeof encname, "ses#");
+ if (bd.bd_procdev[0])
+ snprintf(encname, sizeof encname, "%s",
+ bd.bd_procdev);
+ else
+ snprintf(encname, sizeof encname, "%s",
+ "noencl");
printf(" %3u %-10s %14s %-7s %-6s <%s>\n",
bd.bd_diskid, status, size, scsiname, encname,