234 Commits

Author SHA1 Message Date
9b2e25a669 Update copyright year. 2024-12-19 15:34:27 +00:00
ad8cd7c396 Update editorconfig file. 2024-12-19 15:31:41 +00:00
56e64ed4fd Update JetBrains project files. 2024-12-19 15:31:02 +00:00
351237ae1e Genera refactor and cleanup. 2024-04-30 15:44:33 +01:00
017a36da2d Update editorconfig and clang-format. 2024-04-30 15:42:21 +01:00
Daniel Collins
6186813988 Resolve device name symlinks on Linux. (#15)
This is useful for referencing a specific drive on systems with
multiple via /dev/disk/by-id/ or /dev/disk/by-path/ rather than
guessing which order the drives got initialised every reboot.
2023-10-16 20:39:44 +01:00
Daniel Collins
04970bc72a Fix parsing of /sys/block/XXX/device symlinks. (#14)
As of c810bd8d07, I'm not able to use
aaruremote on Linux (5.10). I've tried a few machines and they all have
device sylinks like the following example from my CD dumping machine
(has a mixture of SATA and IDE drives):

/sys/block/sr0/device -> ../../../0:0:0:0
/sys/block/sr1/device -> ../../../0:0:1:0
/sys/block/sr2/device -> ../../../4:0:0:0
/sys/block/sr3/device -> ../../../1:0:0:0
/sys/block/sr4/device -> ../../../3:0:0:0
/sys/block/sr5/device -> ../../../6:0:0:0

I'm not sure how many variants of this symlink exist in Linux, but from
reading the existing code I *think* the intent was to extract the
characters from the start the of last component of the filename up to
the delimeter character (`.` or `:`), so I've reworked the code to do
that without tripping up on the `..` parts of the path.
2023-10-16 20:39:17 +01:00
28962a75f4 Merge pull request #12 from kkaisershot/2.6.26-scsi-fix
Detect SCSI devices on 2.6.26 kernel PowerPC system.
2022-12-05 14:25:06 +00:00
blitter
c810bd8d07 Find device host_no in Linux 2.6.26. 2022-12-04 15:05:17 -08:00
blitter
8f9eb4c064 Find devices when /sys/block contains directories. 2022-12-04 15:05:05 -08:00
blitter
743f909317 Pass a temporary DeviceContext to GetDeviceType. 2022-12-04 15:04:30 -08:00
bdd467547a Fix 48-bit ATA commands. 2021-07-29 00:46:47 +01:00
29aa181be2 Merge pull request #10 from kkaisershot/master 2021-07-26 08:04:39 +01:00
blitter
27b7e3ddb0 Bail if a device symlink target lacks both a colon and a period delimiter. 2021-07-25 22:17:40 -07:00
blitter
d333060b17 Add a couple missing endian swaps in SCSI command. 2021-07-25 22:04:46 -07:00
blitter
d0bbf0dc05 Find period delimiter when sysfs device symlink target lacks a colon. 2021-07-25 22:02:11 -07:00
9778904dba Update copyright year. 2020-12-31 23:12:05 +00:00
4455aabc32 Fix incorrect pointer dereference in USB get root hub in Windows. 2020-12-22 02:02:24 +00:00
0ae9ccbc4a Implement OsRead in Windows. 2020-12-22 02:01:58 +00:00
e5c9415299 Implement ReOpen in Windows. 2020-12-22 01:53:52 +00:00
11c2b397f5 Implement SendMultiSdhciCommand in Windows. 2020-12-22 01:49:45 +00:00
e3979913aa Set transfer type when multi block in Windows for SDHCI. 2020-12-22 01:22:57 +00:00
698125391b Add new unimplemented functions for Wii. 2020-12-14 14:10:21 +00:00
3a7335232a Implement buffered OS read command for FreeBSD. 2020-12-14 14:08:20 +00:00
eda4a3d4e4 Implement reopen command for FreeBSD. 2020-12-14 14:06:57 +00:00
bfd7979ca5 Add non-implement multi SD/MMC command for FreeBSD. 2020-12-14 14:02:45 +00:00
49706b9ea7 Implement OS read command for Linux. 2020-12-14 02:35:12 +00:00
daa549ae55 Implement reopen command for Linux. 2020-12-14 02:32:13 +00:00
b48ee89443 Implement multi SD/MMC command for Linux. 2020-12-14 02:26:05 +00:00
878d24b551 Add buffered OS read command packet processing. 2020-12-14 02:15:16 +00:00
891649f6fc Add reopen commands packet processing. 2020-12-14 01:41:30 +00:00
76cfb2c072 Add multi SD/MMC commands packet processing. 2020-12-14 01:26:39 +00:00
2ca77bb255 Free more allocations. 2020-12-13 23:51:46 +00:00
278e5ad215 Add Visual Studio 2017 project. 2020-11-06 19:14:30 +00:00
641048a3ec Fix USB return value in FreeBSD. 2020-11-03 19:23:24 +00:00
7b2529ebb9 FreeBSD does not need the file descriptor for device. 2020-11-03 19:23:07 +00:00
f271cd1942 ATA devices seem to be working in FreeBSD. 2020-11-03 19:22:40 +00:00
08ff1bd9bc Initialize sense as false in FreeBSD SCSI. 2020-11-03 19:22:10 +00:00
b34c5aeb0e Change include files in FreeBSD. 2020-11-03 19:20:36 +00:00
f35cebfb38 Up version. 2020-10-31 02:47:55 +00:00
936ad1c0a6 Update README. 2020-10-31 02:47:14 +00:00
fabe9f8b40 Code refactor and format. 2020-10-31 02:28:50 +00:00
00b30ece2e Implement 48-bit ATA in FreeBSD. 2020-10-31 02:22:58 +00:00
c18026ac9f Implement 28-bit ATA in FreeBSD. 2020-10-31 02:17:45 +00:00
550971dfd8 Implement CHS ATA in FreeBSD. 2020-10-31 02:13:11 +00:00
6d1b977c75 Free CCB in SCSI FreeBSD. 2020-10-31 02:11:53 +00:00
d65ab5da10 Add time calculation for SCSI FreeBSD commands. 2020-10-31 01:01:42 +00:00
e80c58049c Add Visual Studio 2019 project. 2020-10-28 03:41:57 +00:00
6e69f5077d Implement SCSI types in FreeBSD. 2020-10-28 03:28:32 +00:00
23fd141cfb Add get device type on FreeBSD. 2020-10-28 02:58:26 +00:00