Commit Graph
142 Commits
Author SHA1 Message Date
Carl Johnsen 5b52eae0bc Made Windows handle unaligned read and write 2026-03-11 15:10:38 +01:00
Carl Johnsen dac373a03f Made Mac handle unaligned read and write buffers as well 2026-03-11 15:09:22 +01:00
Carl Johnsen cdc1b49f42 Linux should use the same call to GetPInvokeErrorMessage() as Mac 2026-03-11 15:08:38 +01:00
Carl Johnsen c1b22f491f Handled Windows paths 2026-03-11 15:02:23 +01:00
Carl Johnsen fabff9828a Properly handled unaligned read/write in Linux disk accesses 2026-03-11 09:06:02 +00:00
Carl Johnsen ec3d1b2d42 Made internals of DiskImage visible to the disk image unit tests 2026-03-11 08:21:07 +00:00
Carl Johnsen 62c2244faf Reordered interface definitions for a more structured order 2026-03-11 08:16:29 +00:00
Carl Johnsen 623a6b1cf5 Updated the Linux disk interface to match the new interface 2026-03-10 08:59:49 +00:00
Carl Johnsen f64ee59111 Merge branch 'master' into feature/full-disk-linux 2026-03-10 08:28:41 +00:00
Carl Johnsen b627ea87c9 Changed from PInvoke call to get error messages to the Marshal library call that does the same 2026-03-05 18:11:53 +01:00
Carl Johnsen 298f916e8d Shift to plist for all diskutil commands to alleviate localization and other human-readable-related parsing errors 2026-03-05 17:42:24 +01:00
Carl Johnsen 222ec0433a Using constants rather than copied hardcoded strings 2026-03-05 16:08:32 +01:00
Carl Johnsen ca1fb3ac9b Restructured the DiskImage project to lift the OS specific disk listings to the disk interface and to centralize the functionality for running external processes 2026-03-05 15:30:36 +01:00
Carl Johnsen 5fd62b0fc2 Made the Mac system library wrapper a precompiled file that is copied alongside referencing projects output folder 2026-03-05 13:28:54 +01:00
Carl Johnsen ad66e7029d 'Disk has mounted partitions' check should only be made on drives where write access is requested 2026-03-02 15:16:43 +00:00
Carl Johnsen 73404adb17 Made the Linux disk interface throw an exception when trying to restore to a device that has mounted partitions 2026-03-02 13:50:39 +00:00
Carl Johnsen 0252cf0bd4 Drive should be opened using O_DIRECT 2026-03-02 13:35:51 +00:00
Carl Johnsen 6b1331fd42 Fixed Linux read and write to utilize aligned buffer 2026-03-02 09:31:35 +00:00
Carl Johnsen 16c86d4ba9 Added Linux support in the disk image web module 2026-03-01 11:25:44 +01:00
Carl Johnsen c782a9dcb1 Updated disk image strings to reflect Linux support 2026-03-01 11:17:40 +01:00
Carl Johnsen ae335010c4 Added Linux disks as a restore provider 2026-03-01 11:14:34 +01:00
Carl Johnsen 0accdd923b Added Linux disks as a source provider 2026-03-01 11:12:15 +01:00
Carl Johnsen 8c0d9de080 First implementation of Linux raw disk support 2026-03-01 11:09:22 +01:00
Carl Johnsen 18d8a41701 Added Linux libc wrapper 2026-03-01 11:09:07 +01:00
Carl Johnsen ed788a1bd8 Updated WebModule for Mac support 2026-02-27 14:33:34 +01:00
Carl Johnsen 01448a6da0 Apple partition types were missing from the MBR constants 2026-02-25 13:25:05 +01:00
Carl Johnsen d92a8dfe18 Partition entries were (incorrectly) hardcoded to 4. 2026-02-25 10:38:45 +01:00
Carl Johnsen a16593111c Apple partition type GUIDs were unused 2026-02-25 10:38:25 +01:00
Carl Johnsen ff2486eb25 Updated module string reference 2026-02-24 16:32:51 +01:00
Carl Johnsen 1fc37ab165 Incorrectly unmounted the target drive on every restore to a Mac disk 2026-02-24 09:49:03 +01:00
Carl Johnsen 4aed5b4028 Recalculated CRC header needs to be cleared before recalculation 2026-02-23 22:54:05 +01:00
Carl Johnsen 880c086f21 Ensure that GPT boot code is zeroed 2026-02-23 22:51:34 +01:00
Carl Johnsen 4a2957f59f A partition doesn't need a name in the GPT table 2026-02-23 22:51:16 +01:00
Carl Johnsen 705ab1c101 Changed the permissions of the libSystem library 2026-02-23 20:28:23 +01:00
Carl Johnsen 61fc0a5e39 F_FULLSYNC doesn't apply to non-filesystem file descriptors 2026-02-23 20:28:08 +01:00
Carl Johnsen 90f2f6d2b1 Renamed the libSystem wrapper as other variadic system functions may be needed 2026-02-23 20:24:31 +01:00
Carl Johnsen 30aec291f9 Detecting the protective MBR should read a sector, not just MBR size 2026-02-23 11:48:59 +01:00
Carl Johnsen 7e72f2682a ioctl request was incorrect 2026-02-23 11:48:59 +01:00
Carl Johnsen eb9f2b224c Partial keyword needed for PInvoke 2026-02-23 11:48:59 +01:00
Carl Johnsen 21eff8762c Added a wrapper to MacOS system libraries using variadic arguments. 2026-02-23 11:48:59 +01:00
Carl Johnsen 1cc3a0cdb2 Used newer LibraryImport instead of DllImport 2026-02-23 11:48:59 +01:00
Carl Johnsen 87fe9c6df3 Added errno error messages 2026-02-23 11:48:59 +01:00
Carl Johnsen 6c5351074a Initial MacOS implementation using libc through PInvoke 2026-02-23 11:48:59 +01:00
Kenneth Skovhede 9dd2fa343e Prevent picking partitions until support for this is better 2026-02-20 16:38:05 +01:00
Kenneth Skovhede 22c4f585ef Minor adjustments for WebUI picker 2026-02-20 15:29:25 +01:00
Kenneth Skovhede c467baf326 Made parsing more explicit with a formal structure for the outpu 2026-02-20 11:38:17 +01:00
Kenneth Skovhede 6d17888296 Fixed loading webmodule 2026-02-20 11:05:51 +01:00
Carl Johnsen 5793f4c410 Added web module for disk images 2026-02-19 19:55:01 +01:00
Carl Johnsen dc25eda096 Removed TODOs 2026-02-19 18:58:11 +01:00
Carl Johnsen e3499b3878 Changed a TODO to being a regular comment. 2026-02-19 18:56:09 +01:00