Portál AbcLinuxu, 13. května 2025 23:42
Mrkni viz níže, podle mě to znamená, že SCSI příkaz nevrátil informaci o Medium Type.
tapeinfo.c
521 if (SCSI_ExecuteCommand(fd, Input, &CDB, 6, input_buffer, 255, RequestSense) != 0) 522 { 523 #ifdef DEBUG_MODE_SENSE 524 fprintf(stderr,"Could not execute mode sense...\n"); 525 fflush(stderr); 526 #endif 527 return NULL; /* sorry, couldn't do it. */ 528 } 529 530 /* Oh hell, write protect is the only thing I have: always print 531 * it if our mode page was 0x0fh, before skipping past buffer: 532 * if the media is *NOT* write protected, just skip, sigh. 533 * 534 * Oh poops, the blocksize is reported in the block descriptor header 535 * < * too. Again, just print if our mode page was 0x0f... 536 */ 537 if (pagenum == 0x0f) 538 { 539 int blocklen; 540 541 if (input_buffer[2] & 0x80) 542 { 543 printf("WriteProtect: yes\n"); 544 } 545 546 if (input_buffer[2] & 0x70) 547 { 548 printf("BufferedMode: yes\n"); 549 } 550 551 if (input_buffer[1] ) 552 { 553 printf("Medium Type: 0x%x\n", input_buffer[1]); 554 } 555 else 556 { 557 printf("Medium Type: Not Loaded\n"); 558 }
"mt rewind /dev/tape" - co je /dev/tape? Ak chces precitat, co si zapisal tym tarom, tak musis pasku pretocit na zaciatok!To malo ist na dalsi riadok. Malo to byt: "mt rewind" A /dev/tape ... bol vysledok
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.