mirror of
https://github.com/simh/simh.git
synced 2026-04-27 20:38:04 +00:00
TAPE: Add support for reading partial fixed sized records.
Partial reading is needed to properly read common archive images found on bitsavers and elsewhere which were made from QIC devices which must read multiples of 512 bytes at a time.
This commit is contained in:
@@ -7746,6 +7746,8 @@ if ((uptr->drvtyp != NULL) &&
|
||||
(uptr->drvtyp->devtype != drives[val].devtype)) {
|
||||
sim_tape_set_fmt (uptr, 0, "SIMH", NULL);
|
||||
sim_disk_set_fmt (uptr, 0, "AUTO", NULL);
|
||||
sim_tape_set_chunk_mode (uptr, ((drives[val].devtype == SCSI_TAPE) &&
|
||||
(drives[val].flags & DRVFL_QICTAPE)) ? drives[val].sectsize : 0);
|
||||
}
|
||||
uptr->drvtyp = &drives[val];
|
||||
set_writelock (uptr, ((uptr->drvtyp->flags & DRVFL_RO) != 0), NULL, NULL);
|
||||
|
||||
Reference in New Issue
Block a user