Commit Graph
88 Commits
Author SHA1 Message Date
Carl Johnsen 53aa494f47 Fixed auto mount powershell script 2026-02-16 11:26:23 +01:00
Carl Johnsen ce67996823 Added auto unmount option for disk image restore 2026-02-16 10:03:10 +01:00
Carl Johnsen e3caf5401d Added Windows I/O write error hints 2026-02-16 09:12:01 +01:00
Carl Johnsen b9839d0671 Disk image restore provider now tests write access properly 2026-02-16 09:10:10 +01:00
Carl Johnsen 71e6c3eb17 Simplified disk image source providers EnumerateRecursive 2026-02-15 16:35:26 +01:00
Carl Johnsen c2c81c3dd0 Moved partition table synthesis to it's own file 2026-02-15 16:29:40 +01:00
Carl Johnsen e1e454d200 Centralized common MBR definitions 2026-02-15 16:21:16 +01:00
Carl Johnsen 652f6a9593 Centralized common GPT GUID definitions 2026-02-15 16:16:21 +01:00
Carl Johnsen cdc47c252a Removed duplicate crc32 implementations 2026-02-15 16:09:52 +01:00
Carl Johnsen 1702e60df0 Moved constants to a common file 2026-02-15 16:04:34 +01:00
Carl Johnsen 18cf9d58cf Merged the recontstructed partition tables into one 2026-02-15 15:58:30 +01:00
Carl Johnsen bd36800789 Made a base partition implementation 2026-02-15 15:22:54 +01:00
Carl Johnsen 67e9eecb0c Removed duplicate PartitionWriteStream implementations 2026-02-15 15:11:08 +01:00
Carl Johnsen b52e0cfcda Changed to pooled buffer allocations to improve performance 2026-02-15 14:47:07 +01:00
Carl Johnsen 0568a9e46f Changed to span slices rather than array slices 2026-02-15 13:53:03 +01:00
Carl Johnsen fa42834542 Avoid copy in capture stream 2026-02-15 13:42:49 +01:00
Carl Johnsen a3d3c0c191 Eliminated more redundant buffering. 2026-02-15 13:37:14 +01:00
Carl Johnsen d4531ee582 Eliminated double buffering in the unknown file system 2026-02-15 13:27:37 +01:00
Carl Johnsen 268a94d7fa Added reusable buffers and zero copy reads 2026-02-15 13:13:01 +01:00
Carl Johnsen 4845c22233 Added docstrings 2026-02-15 12:45:59 +01:00
Carl Johnsen 3f14cf5439 Known filesystems are treated as unknown until a driver is present 2026-02-15 11:12:08 +01:00
Carl Johnsen a7caf62a30 MBR type offset was incorrect 2026-02-15 10:48:07 +01:00
Carl Johnsen 9bd94e8ea7 Reuse already read MBR bytes 2026-02-15 10:03:46 +01:00
Carl Johnsen caf5f82699 Unknown partition table was missing from a switch 2026-02-15 10:03:18 +01:00
Carl Johnsen bc5dc36658 Added dumber geometry file detection for debugging 2026-02-13 16:43:15 +01:00
Carl Johnsen 63f460ac21 Ensured that all blocks reported by an unknown file system are larger than 0 2026-02-13 16:42:37 +01:00
Carl Johnsen cf9eb24254 Added bound checking to raw disk read for better error messages 2026-02-13 16:42:09 +01:00
Carl Johnsen 79c4cec029 Handled the access denied on flushing during reading of a disk 2026-02-13 16:41:46 +01:00
Carl Johnsen 377d638750 Fixed a bug where an aligned write would be incorrect by an additional sector 2026-02-13 09:02:06 +01:00
Carl Johnsen bf4843c83f Added writing the partition tables as well 2026-02-13 06:58:23 +01:00
Carl Johnsen a962c13d10 Added unaligned writes for Windows disks 2026-02-13 06:57:29 +01:00
Carl Johnsen 927a138847 Added more descriptive error messages on Windows disks 2026-02-13 06:56:59 +01:00
Carl Johnsen e343d667ee More consitent parsing 2026-02-12 16:54:53 +01:00
Carl Johnsen e12b988aa4 Use system library calls instead of "homegrown" 2026-02-12 16:54:35 +01:00
Carl Johnsen 186b6b4b93 More detailed windows error messages. The first restore has been performed! 2026-02-12 13:17:28 +01:00
Carl Johnsen 10f21d1d0e Added more parsing of the geometry files to reconstruct the disk related classes 2026-02-12 13:16:58 +01:00
Carl Johnsen e84b173286 General fixes to disk image backup, backup works again 2026-02-10 19:11:17 +01:00
Carl Johnsen 881facd10e Adapted the interfaces and implementation to match the new disk image restore rework 2026-02-10 12:30:43 +01:00
Carl Johnsen b31d7f0967 Reworked the restore provider for more direct access to the underlying disk image types 2026-02-10 11:05:05 +01:00
Carl Johnsen 0592324f8a Geometry file should serialize enums as text for future flexibility 2026-02-10 10:43:21 +01:00
Carl Johnsen 27820f9c4f Added special handling of the geometry file 2026-02-09 15:16:20 +01:00
Carl Johnsen 78578c8f4c DiskImage should have geometry as its priority file. 2026-02-09 15:12:14 +01:00
Carl Johnsen 04e9b2e1b8 The geometry file should be recorded during backup. 2026-02-09 14:53:14 +01:00
Carl Johnsen 78ce5e6007 Removed old metadata files, which are now in the new geometry file 2026-02-09 13:13:27 +01:00
Carl Johnsen 8f5bc4c5a8 Added proper detection of the disk geometry file 2026-02-09 12:28:40 +01:00
Carl Johnsen 3fe57b308d Added functionality for priority files for restore providers 2026-02-09 11:36:15 +01:00
Carl Johnsen fbaf2968c6 Added parsing of disk image related information from the given path. 2026-02-09 09:37:43 +01:00
Carl Johnsen bed56c4d9e Added more restore functionality 2026-02-06 13:32:30 +01:00
Carl Johnsen d32a39108f Directly write files rather than caching them locally for disk image restore. 2026-02-06 12:53:33 +01:00
Carl Johnsen 7a041f8e79 Overwrite isn't a requirement for disk image restore 2026-02-06 12:39:24 +01:00