Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/scsipi Define the Volume Tag format.



details:   https://anonhg.NetBSD.org/src/rev/fc4a1060d399
branches:  trunk
changeset: 474839:fc4a1060d399
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Thu Jul 22 17:43:53 1999 +0000

description:
Define the Volume Tag format.

diffstat:

 sys/dev/scsipi/scsi_changer.h |  18 +++++++++++++++---
 1 files changed, 15 insertions(+), 3 deletions(-)

diffs (34 lines):

diff -r 2afa9a2d769a -r fc4a1060d399 sys/dev/scsipi/scsi_changer.h
--- a/sys/dev/scsipi/scsi_changer.h     Thu Jul 22 16:58:05 1999 +0000
+++ b/sys/dev/scsipi/scsi_changer.h     Thu Jul 22 17:43:53 1999 +0000
@@ -1,7 +1,7 @@
-/*     $NetBSD: scsi_changer.h,v 1.12 1998/12/17 22:27:18 gibbs Exp $  */
+/*     $NetBSD: scsi_changer.h,v 1.13 1999/07/22 17:43:53 thorpej Exp $        */
 
 /*
- * Copyright (c) 1996 Jason R. Thorpe <thorpej%and.com@localhost>
+ * Copyright (c) 1996, 1999 Jason R. Thorpe <thorpej%and.com@localhost>
  * All rights reserved.
  *
  * Partially based on an autochanger driver written by Stefan Grefen
@@ -235,7 +235,19 @@
         */
 };
 
-/* XXX add data returned by REQUEST VOLUME ELEMENT ADDRESS */
+/*
+ * Volume Tag format:
+ *
+ * Volume Tags are a sequence of ASCII characters, unused portion is
+ * blank-filled.  There should be no blanks in the significant portion
+ * of the tag.  For maximum compatibility, volume tag characters should
+ * be limited to '0'..'9', 'A'..'Z', '_'.
+ */
+struct changer_volume_tag {
+       u_int8_t volid[32];     /* 32 bytes of ASCII, blank-terminated */
+       u_int8_t reserved[2];
+       u_int8_t volseq[2];     /* volume sequence number */
+};
 
 /* Element type codes */
 #define ELEMENT_TYPE_MASK      0x0f    /* Note: these aren't bits */



Home | Main Index | Thread Index | Old Index