Skip to content

Commit

Permalink
DISK: Do not allow to emit any "footers"
Browse files Browse the repository at this point in the history
This is the initial iteration of cleaning up simh of appending the
"footers" to disk images:  it does not allow to emit any new "footers",
yet it does not change the behavior as to how any existing "footers"
are treated internally.  Also, even though sim_disk.c currently builds
the "footer" for any attached disk container, with this patch, it is
only kept in-memory, and never gets written to (appended / updated)
the actual container.
  • Loading branch information
al20878 committed Oct 24, 2023
1 parent c57f925 commit b23cde9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sim_disk.c
Original file line number Diff line number Diff line change
Expand Up @@ -2439,6 +2439,8 @@ time_t now = time (NULL);
t_offset total_sectors;
t_offset highwater;

return SCPE_OK;

if ((dptr = find_dev_from_unit (uptr)) == NULL)
return SCPE_NOATT;
if (uptr->flags & UNIT_RO)
Expand Down Expand Up @@ -2502,6 +2504,8 @@ t_offset total_sectors;
t_offset highwater;
t_offset footer_highwater;

return SCPE_OK;

if ((dptr = find_dev_from_unit (uptr)) == NULL)
return SCPE_NOATT;
if (uptr->flags & UNIT_RO)
Expand Down

0 comments on commit b23cde9

Please sign in to comment.