1
0
mirror of https://github.com/simh/simh.git synced 2026-01-25 11:46:37 +00:00

PDP11, VAX: Fix SET RPn BADBLOCK behavior and auto sizing.

BAD144 info was written correctly if the user answered Y when the disk
image was created, but would not work if SET RPn BADBLOCK was
entered later.

Auto sizing would be potentially wrong if a disk had been created
without writing the BAD144 data.  Now, if the disk contains a file system
that information along with the physical container's size is used to
properly auto size the disk.
This commit is contained in:
Mark Pizzolato
2017-02-07 13:02:21 -08:00
parent f46c048bb6
commit 76dda8a01e
3 changed files with 41 additions and 54 deletions

View File

@@ -89,6 +89,7 @@ t_stat sim_disk_clearerr (UNIT *uptr);
t_bool sim_disk_isavailable (UNIT *uptr);
t_bool sim_disk_isavailable_a (UNIT *uptr, DISK_PCALLBACK callback);
t_bool sim_disk_wrp (UNIT *uptr);
t_stat sim_disk_pdp11_bad_block (UNIT *uptr, int32 sec, int32 wds);
t_offset sim_disk_size (UNIT *uptr);
t_bool sim_disk_vhd_support (void);
t_bool sim_disk_raw_support (void);