Subject: strange diff
To: None <tech-userlevel@netbsd.org>
From: Ignatios Souvatzis <is@beverly.kleinbus.org>
List: tech-userlevel
Date: 05/21/2000 08:41:04
When cleaning up my work directory, I noticed this diff to the repository:
Index: sbin/scsictl/scsictl.c
===================================================================
RCS file: /cvsroot/basesrc/sbin/scsictl/scsictl.c,v
retrieving revision 1.10
diff -u -r1.10 scsictl.c
--- scsictl.c 1999/10/27 22:29:06 1.10
+++ scsictl.c 2000/05/21 06:29:40
@@ -255,6 +255,12 @@
memset(&cmd, 0, sizeof(cmd));
memset(&inqbuf, 0, sizeof(inqbuf));
+ cmd.opcode = 0;
+ cmd.length = 0;
+
+ scsi_command(fd, &cmd, sizeof(cmd), 0, 0,
+ 10000, SCCMD_READ);
+
cmd.opcode = INQUIRY;
cmd.length = sizeof(inqbuf);
Can anybody imagine what the purpose of this might be? (thats a
test unit ready command, and for the identify command thats not what
you want to do... test unit ready fails e.g. if no medium is in a MO drive.
Regards,
-is