Commit graph

181 commits

Author SHA1 Message Date
Mark Pizzolato
502ebeafc3 DISK: Clarify comments for logic generating attach error messages
as discussed in #1064
2021-08-13 02:35:29 -07:00
Mark Pizzolato
fdd871da65 DISK: Clean up attach time error messages
- Fix 'non expandable' error message to avoid potential extra space as
   mentioned in #1065
- Reasonably report open errors as mentioned in #1064
2021-08-07 19:15:33 -07:00
Mark Pizzolato
a779de82aa DISK: Enrich ATTACH time error message to include C runtime error text
Standardize format and wording of error reporting messages

As discussed in #1064
2021-08-07 12:56:20 -07:00
Mark Pizzolato
a5b7ebe44b DISK: Assure that all reads past EOF read as 0 data, even partial sector reads 2021-01-27 12:47:36 -08:00
John Forecast
18d6247cb7 DISK: Add file system detection on interleaved device file system images
- DEC filesystems on RX01 and RX02 devices interleave data
- Add additional RT11 file system detection for images created by exchange
  on VMS.
2021-01-23 21:02:52 -08:00
Mark Pizzolato
8c42a3436c VAXen with SCSI: Allow some cross controller read only drive access 2020-12-29 11:14:34 -08:00
Mark Pizzolato
52fbdcd1f0 DISK: Fix Compiler warning 2020-10-13 05:23:02 -07:00
Mark Pizzolato
187ee83f07 DISK: Use memset and strlcpy rather than strncpy for fixed size strings 2020-10-11 15:33:23 -07:00
Mark Pizzolato
31606161ce SCP: Avoid potential compiler warnings
Essentially all are non-functional problems but silencing them is a good idea
2020-10-09 05:09:41 -07:00
Mark Pizzolato
c3f28e33e9 DISK: Extend DISKINFO command to work on wildcard file specifications 2020-08-11 07:29:10 -07:00
Peter Coghlan
2f79d796cf DISK: Initialize return values to 0 for unimplemented OS and VHD functions 2020-06-10 07:46:26 -07:00
Mark Pizzolato
5bec9d58dd DISK: Avoid trying to change drive type when it is already correct. 2020-05-02 13:34:26 -07:00
Mark Pizzolato
0b3e415b8e DISK: Cleanup compiler warnings 2020-04-30 02:59:30 -07:00
Mark Pizzolato
7082e212ea DISK: Avoid autosizing if file system can't be determined
Add DISKINFO command to display information about a disk container file.
2020-04-29 13:21:12 -07:00
Mark Pizzolato
aa380517fa DISK: Add support for arbitrary sector sizes in all container formats 2020-04-29 12:21:08 -07:00
Mark Pizzolato
580b388917 DISK: Add ATTACH copy option to create a SIMH or VHD copy
- Fail ATTACH when container type doesn't match drive type and autosizing
  is disabled.
- Be sure to write data at the end of a VHD container right up to the end of
  the disk.
2020-04-22 08:55:36 -07:00
Mark Pizzolato
d225629b9a DISK: Always open VHD containers as VHD without regard to the selected format 2020-04-20 21:22:12 -07:00
Mark Pizzolato
e872682d3c DISK: Major rework to support VHD's with other than 512 byte sectors
- Added rigorous disk test routine to exercise all supported disk container
  formats with various sector sizes and storage element sizes
- Extended logic to validate disk container simulated device consistency
  with the simulator and/or controller accessing it.
2020-04-17 17:34:28 -07:00
Mark Pizzolato
07682806a5 DISK: Fix size detection and validation for VHD disks 2020-04-13 10:05:46 -07:00
Mark Pizzolato
d0022e9328 DISK: Update VHD Footer to current info 2020-04-12 08:13:28 -07:00
Mark Pizzolato
049ba32505 DISK: Add robust disk container validation 2020-04-11 13:01:48 -07:00
Mark Pizzolato
ab66fa1484 DISK: Fix attach time auto sizing to walk through list of potential drive types 2020-04-05 16:50:16 -07:00
Mark Pizzolato
73df9b1c4e PDP10, PDP11, Massbus VAXen, DISK: Rework PDP10 use of sim_disk
- Make all PDP11, VAX RP and RQ devices autosizing behave similarly
- Generalize the attach help to be specific to the device/system being
   attached
- Remove the sim_disk_pdp10_* calls which weren't correct or needed
   since sim_disk_attach_ex provides sector size which is used correctly
2020-04-03 17:32:14 -07:00
Mark Pizzolato
b7824943df DISK: Minimize the sim_disk_pdp10_attach arguments to minimize aguments
The sim_disk_pdp10_... API's specifically provide 1024 byte sector
interfaces for 64bit data.

Customize the attach help output to be more appropriate for the devices
in the running simulator and the device who's help is being displayed.
2020-03-31 19:37:33 -07:00
John Forecast
6efa9c0a92 PDP10, DISK: Add sim_disk support for PDP10 format disks add to the RP device
This allows the underlying disk container formats that that sim_disk supports
(VHD, SIMH or RAW) to be accessed from the PDP10 KS10 simulator, and later
on to Rich Cornwell's PDP10-KA, PDP10-KI, and PDP10-KL simulators.
2020-03-31 15:20:04 -07:00
John Forecast
89215d8288 DISK: Fix Coverity flagged issues with tainted data and potential overflow 2020-02-17 19:14:51 -08:00
Mark Pizzolato
e333a691d0 DISK: Ignore NULL unit with HELP <dev> ATTACH for disk devices
Related to activities in #801
2020-02-10 10:41:33 -08:00
Mark Pizzolato
78f8599024 DISK: Limit HELP output attach commands to at most 4 disks
As discussed in #801
2020-02-09 07:17:12 -08:00
John Forecast
d00c1d4540 DISK: Add RSTS file system recognizer
Thorough fix to #581
2020-02-07 15:51:12 -08:00
Mark Pizzolato
519ef27def DISK, TAPE: Remove compiler and Coverity warnings 2019-11-24 10:55:25 -08:00
Mark Pizzolato
4e5780e15e DISK: Allow file system sizing if device doesn't have DEV_SECTORS set_cmd
As it turns out, the RD device in the MicroVAX 2000 systems reasonably
doesn't have DEV_SECTORS set in the DEVICE flags.

Follow on to #768.
2019-11-16 20:57:58 -08:00
Mark Pizzolato
39fd8d829b DISK: Avoid disk capacity overflow on hosts with 32bit file offset limitations
As discussed in #768
2019-11-16 18:24:37 -08:00
Mark Pizzolato
526e03bbe1 DISK: Remove dangling semicolon compiler warning. 2019-07-07 19:27:28 -07:00
Mark Pizzolato
56ab8260f2 DISK: Fix Coverity warnings 2019-06-08 13:53:35 -07:00
Mark Pizzolato
6b3bff56b3 DISK: Add support to properly autosize fixed sized disk from a set of choices
As discussed in #704
2019-05-21 15:38:39 -07:00
John Forecast
4f2dc069ae DISK: Check all read sector counts during attach.
- Problem report #704
- Enable RAW access support on OSX
2019-05-20 23:32:58 -07:00
Mark Pizzolato
05f84879ad DISK: Cleanup compiler warnings 2019-05-09 16:32:57 -07:00
John Forecast
e47a7e9ef7 DISK: Add RT11 file system disk size detection 2019-05-09 16:16:31 -07:00
Mark Pizzolato
52fab988e3 DISK: Handle Windows RAW disk reads at EOF as success reading 0's
This was the root cause of the problem reported in #696
2019-05-01 18:30:34 -07:00
Mark Pizzolato
c7b0928b33 SCP: Avoid potential buffer overruns by using strlcpy() and strlcat() 2019-03-08 12:31:01 -08:00
Mark Pizzolato
75d18d4db0 SCP: Removed redundant SCPE_NOTATT which duplicates SCPE_UNATT 2019-02-01 16:07:12 -08:00
Mark Pizzolato
cb9876ce65 SCP: Cleanup gcc compiler flagged potential issues
Compiler warnings about undeclared case fall throughs, and potential
buffer overruns,
2019-01-21 16:43:17 -08:00
Mark Pizzolato
3cca0cf90b SCP: Cleanup MinGW compile warnings 2019-01-21 02:36:42 -08:00
Mark Pizzolato
0e544b71ff SCP: Fix various compiler warnings 2018-09-28 18:05:39 -07:00
Mark Pizzolato
928193d463 SCP: Fix EXPECT regular expression match environment variable names
- Use sim_messagef for consistency
2018-09-27 06:24:31 -07:00
Mark Pizzolato
0daa80e03d SCP: Add support for library unit test routines 2018-08-26 18:15:30 -07:00
Mark Pizzolato
6070692581 SCP: Add unit to AIO_VALIDATE context message 2018-08-08 11:51:54 -07:00
Mark Pizzolato
4487646946 DISK: Fix auto sizing and non auto sizing logic checks
As reported in #581 and #565
2018-07-19 23:33:09 -07:00
Mark Pizzolato
83234f1e9d DISK: Add Linux host support for direct CDROM access 2018-05-26 12:33:50 -07:00
Mark Pizzolato
2363300e64 DISK: Fix Coverity identified error path problems 2018-05-15 07:32:24 -07:00