|
|
1.1 ! root 1: #include "scsi.h" ! 2: ! 3: s_diskid(drive) ! 4: { ! 5: struct scsi_i input; ! 6: struct scsi_o output; ! 7: long c, l; ! 8: ! 9: input.bus_id = scsi_id; ! 10: input.cmd[0] = 0xC2; ! 11: input.cmd[1] = drive<<5; ! 12: input.cmd[2] = 0; ! 13: input.cmd[3] = 0; ! 14: input.cmd[4] = 0; ! 15: input.cmd[5] = 0; ! 16: if(scsiio(&input, 0, &output, 1024, "diskid") < 0) ! 17: return(1); ! 18: if(CHECK(output)){ ! 19: prcheck(1, &output); ! 20: return(1); ! 21: } ! 22: Fprint(1, "disk id for drive %d:\n", drive); ! 23: scsiodump(output.data, 1024); ! 24: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.