1
0
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:
Mark Pizzolato
2022-11-07 10:46:15 -10:00
parent c73a497fd2
commit 2c7f44d9f7
5 changed files with 95 additions and 4 deletions

View File

@@ -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);