Carl Johnsen
f64ee59111
Merge branch 'master' into feature/full-disk-linux
2026-03-10 08:28:41 +00: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
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
e511d0972f
Added retry count for Mac eject, as a busy disk will throw an error when eject is requested.
2026-03-02 16:45:00 +01:00
Carl Johnsen
bbf6fd01c9
XFS throws an error when trying to mount a clone with the same UUID
2026-03-02 13:22:37 +00:00
Carl Johnsen
6d8e76e44a
Added retry count for Mac eject, as a busy disk will throw an error when eject is requested.
2026-03-02 08:49:50 +01:00
Carl Johnsen
3dd0c7583d
Added reattach of virtual disk in readonly mode.
...
This makes MacOS not modify the partitions during mounting.
2026-02-27 07:06:41 +01:00
Carl Johnsen
264e11a08a
Added Mac unmount retry logic
2026-02-27 06:45:52 +01:00
Carl Johnsen
0af07c6c41
Simplified Mac unmount
2026-02-27 06:41:47 +01:00
Carl Johnsen
ae2b23e8d8
Mounting errors should be thrown, not consumed.
2026-02-27 06:41:26 +01:00
Carl Johnsen
e792054b13
Added readonly to mount arguments
2026-02-27 06:40:33 +01:00
Carl Johnsen
0768eda470
APFS container parsing was incorrect
2026-02-27 06:39:49 +01:00
Carl Johnsen
a97a0ab532
Reused parsing of script output
2026-02-27 06:39:29 +01:00
Carl Johnsen
f907b5f87a
Tried to hint to the OS that volumes shouldn't automatically be repaired.
2026-02-27 06:38:52 +01:00
Carl Johnsen
6e1d27e3b1
Added readonly flag to ensure that OS doesn't try and "fix" a disk / partition
2026-02-25 15:48:26 +01:00
Carl Johnsen
b90fec551f
Unmounting should unmount each partition first to ensure that the file system has flushed.
2026-02-25 15:47:23 +01:00
Carl Johnsen
7f7a46614f
Partitions mounted incorrectly should be unmounted before mounting.
2026-02-25 15:46:59 +01:00
Carl Johnsen
4dbc33ac34
Attempts at alleviating flaky disk mounts
...
First up is renaming partitions so their names don't clash.
Second is to forcefully unmount a partition before mounting to ensure that the volume isn't mounted to a transient location prior to mounting.
2026-02-25 13:29:07 +01:00
Carl Johnsen
a603583029
Volumes are now optionally mounted to a specified folder
2026-02-25 13:27:56 +01:00
Carl Johnsen
bc5e5d8500
Introduced waiting for disks during disk mount
2026-02-24 15:02:31 +01:00
Carl Johnsen
cace107890
Removed unused variable
2026-02-24 14:55:05 +01:00
Carl Johnsen
fac6989ce8
Mac doesn't require root for virtual disks
2026-02-24 13:54:38 +01:00
Carl Johnsen
340ab9c6c0
Unknown disks should be a valid configuration
2026-02-24 13:32:01 +01:00
Carl Johnsen
54578c6eb8
Proper parsing of MBR tables on Mac
2026-02-24 11:42:56 +01:00
Carl Johnsen
71bc154303
Fixed partition parsing of APFS and HFSPlus systems
2026-02-24 11:37:03 +01:00
Carl Johnsen
31202e4eec
Found another argument that should have been in quotes
2026-02-24 09:22:32 +01:00
Carl Johnsen
229ae88ad1
The check for whether a disk is already mounted during mount is allowed to fail
2026-02-23 22:53:14 +01:00
Carl Johnsen
3b3aafc123
Moved script running to a helper method
2026-02-23 21:04:46 +01:00
Carl Johnsen
db7252b66f
Tweaked MacOS partition table information helper
2026-02-23 20:56:10 +01:00
Carl Johnsen
dc87e824a1
b size modifier for hdiutil is sectors, not bytes.
2026-02-23 20:22:23 +01:00
Carl Johnsen
656d5cd1d5
Names with spaces should be in quotes for commandline arguments
2026-02-23 17:25:13 +01:00
Carl Johnsen
ab9f1d50c9
Image path was incorrectly parsde during cleanup
2026-02-23 17:24:38 +01:00
Carl Johnsen
69e49ec452
Disk size should be in bytes
2026-02-23 17:07:00 +01:00
Carl Johnsen
bbbb95a6ee
First implementation of the mac disk helper methods
2026-02-23 16:55:29 +01:00
Carl Johnsen
ca098744a8
Changed from string to enum
2026-02-19 18:09:37 +01:00
Carl Johnsen
4845c22233
Added docstrings
2026-02-15 12:45:59 +01:00
Carl Johnsen
84dd4dab1a
Abstracted disk helper methods into operating system specific constituents
2026-02-15 11:45:52 +01:00