Commit Graph

  • bd02b4ad42 Merge pull request #10 from VARCem/master master Sherman Perry 2021-04-18 10:10:55 +12:00
  • 48a7bd3cbd Updated build system to properly create libraries. Added my name to Authors in files I worked on. waltje 2021-04-17 01:20:28 -04:00
  • dbee2439c2 Merge pull request #9 from VARCem/master Sherman Perry 2021-03-24 11:52:27 +13:00
  • d21edd3f48 Updated test files. Added mvhd_get_type() function. waltje 2021-03-23 18:27:55 -04:00
  • 810455f94b Textual corrections- no code changes. waltje 2021-03-23 00:04:42 -04:00
  • c644da98bf Merge pull request #8 from VARCem/master Sherman Perry 2021-03-18 18:49:58 +13:00
  • 7bb6e8c9ca Some textual changes, as requested. waltje 2021-03-18 01:25:18 -04:00
  • 7acd0be766 Updated files as per request. Moved cookies etc from util.c to create.c, updated create* functions to use the cookies instead of hardcoded values. Added docs/ folder with Microsoft VHD_CLEARBIT(x) specifications for completeness. Fixed typos in Makefiles. waltje 2021-03-16 16:45:40 -04:00
  • 456fc88daf Updated BUILDING document. waltje 2021-03-16 00:25:44 -04:00
  • 6625009256 Last two ones. Phew! waltje 2021-03-16 00:21:57 -04:00
  • f6a2081872 More removal of old stuff. waltje 2021-03-16 00:20:29 -04:00
  • 0215868ac5 Removed old test tool. waltje 2021-03-16 00:18:38 -04:00
  • ba95d21d18 Full re-work as a standalone library with test tools. waltje 2021-03-16 00:15:56 -04:00
  • 01ba2acb56 Move loop var declaration out of loop - From Greatpsycho Greatpsycho/loop-var-changes shermp 2020-11-23 09:51:52 +13:00
  • c55bf8eb4c Merge pull request #6 from sards3/master Sherman Perry 2020-11-21 23:33:51 +13:00
  • 026e834aa4 Fix bug in multi-sector writes for sparse VHDs. sards3 2020-11-21 03:52:54 -06:00
  • 8c1490c263 Add convenience size/geom functions to public API shermp 2020-11-21 14:33:38 +13:00
  • 5880f9d032 Fix EOF shermp 2020-11-21 12:25:21 +13:00
  • bf4212cdee Avoid MVHDMeta double typdef shermp 2020-11-21 12:15:30 +13:00
  • 10903f1b32 More cross-platform stdio fixes shermp 2020-11-19 11:42:33 +13:00
  • 133f072851 Fix stdio operations in linux shermp 2020-11-19 01:57:17 +13:00
  • 61d744ca8b Fix header guard shermp 2020-11-19 01:56:45 +13:00
  • 928870b3a6 Remove '_s' functions, as they are not portable enough shermp 2020-11-15 23:05:52 +13:00
  • a73d10432e Add function to update diff VHD parent timestamp shermp 2020-11-14 15:39:57 +13:00
  • 83ab2fbada Make mismatched timestamps non-fatal shermp 2020-11-14 14:46:40 +13:00
  • 9627888103 Check timestamp when opening parent VHD shermp 2020-11-14 14:40:38 +13:00
  • 4daa80be14 Add parent modified timestamp when creating differencing VHD's shermp 2020-11-14 14:22:09 +13:00
  • 344de05468 Fix 'mvhd_file_mod_timestamp' return value shermp 2020-11-14 14:09:58 +13:00
  • e1c3ec5f87 Minor error detection fixes during creation shermp 2020-11-14 13:57:55 +13:00
  • dadd2432f9 Add get modified timestamp function shermp 2020-11-14 13:46:54 +13:00
  • b9b66606fb Merge pull request #4 from sards3/master Sherman Perry 2020-11-14 11:53:51 +13:00
  • bea38dbd86 Slight rework to allow creation of VHDs of arbitrary size up to the max of 2040 GB, unconstrained by the CHS geometry. Also allow block sizes other than 2 MB. Stephen McKinney 2020-11-13 03:57:58 -06:00
  • dcf1a63191 Revert "Slight rework to allow creation of VHDs of arbitrary size up to the max of 2040 GB, unconstrained by the CHS geometry. Also allow block sizes other than 2 MB." Stephen McKinney 2020-11-13 03:55:34 -06:00
  • caaf48e528 Slight rework to allow creation of VHDs of arbitrary size up to the max of 2040 GB, unconstrained by the CHS geometry. Also allow block sizes other than 2 MB. Stephen McKinney 2020-11-13 03:50:32 -06:00
  • 4c6ffbd14b Diff VHD creation: change plat_data_space to store the number of bytes, not the number of sectors. This is counter to the VHD spec, but it's what Hyper-V, VPC, VirtualBox do. Stephen McKinney 2020-11-07 02:09:35 -06:00
  • 4546b616f6 mvhd_gen_par_loc: Fix the data offset for the second parent locator. Stephen McKinney 2020-11-06 06:11:11 -06:00
  • cbc1b74790 Rename w2*u_path to w2*u_path_buff. Remove unneeded NULL checks before free(). Stephen McKinney 2020-11-05 15:35:00 -06:00
  • c2f95acbc7 Improvements to the progress callback: Remove _t from typedef. Add total sectors parameter. Remove unneeded pos parameter from mvhd_create_fixed. Remove progress callbacks from dynamic/diff creation funcitons. Stephen McKinney 2020-11-05 15:29:26 -06:00
  • 83e8ff4eb7 Fixed bug in mvhd_create_sparse_diff (w2ku_path and w2ru_path were NULL and never populated). Fixed bug in mvhd_sparse_read (needed an fseek after doing memset(buff, 0, MVHD_SECTOR_SIZE)). Added progress callbacks to the mvhd_create_* functions. Converted all use of ftello64 and fseeko64 to new portable versions: mvhd_ftello64 and mvhd_fseeko64. Addes some explicit casts and other fixes to remove compiler warnings. Stephen McKinney 2020-11-05 01:58:49 -06:00
  • 3c54ca311a Added basic credits file shermp 2019-11-16 01:04:01 +13:00
  • 1f7911496d Remove volatile int nonsense shermp 2019-11-16 00:54:42 +13:00
  • 3e43f4b324 Change license from GPLv2 to MIT shermp 2019-11-16 00:52:42 +13:00
  • dfec3be970 Remove bswap.h in favor of internal endian handling shermp 2019-11-16 00:51:42 +13:00
  • 7f45d0d0e2 Update readme shermp 2019-11-15 22:39:44 +13:00
  • 64310d92a9 Use internal UUID generater always shermp 2019-11-15 22:01:45 +13:00
  • 6ccd641d7a Oops. Fix that arithmetic error shermp 2019-11-15 21:19:37 +13:00
  • 257e6f3137 Expand test program with conversion shermp 2019-11-15 20:36:21 +13:00
  • cdb43be4ee Added initial raw image conversion shermp 2019-11-15 18:55:56 +13:00
  • 437f79e923 Alter mvhd_calculate_geometry to use bytes as param shermp 2019-11-05 19:29:57 +13:00
  • cf010b6a63 Remove new_size output from calculate_geometry shermp 2019-11-03 11:15:01 +13:00
  • a64a423654 Add helper to create error string from number shermp 2019-11-02 20:01:17 +13:00
  • 9a6332db64 Add minivhd_create documentation shermp 2019-11-02 18:08:14 +13:00
  • c383e03e5e Fix compiler warnings shermp 2019-11-01 18:07:25 +13:00
  • 20949a1c5e Um... yes, fixed VHD's are supported shermp 2019-11-01 17:56:29 +13:00
  • 3b159496ac Add VHD creation support shermp 2019-11-01 11:29:36 +13:00
  • a6eb42ecde Add partial VHD creation. Work not yet finished shermp 2019-06-20 22:00:42 +12:00
  • 917344cf17 Guard against NULL pointer dereference in mvhd_close shermp 2019-06-15 16:22:29 +12:00
  • 79593feb01 Implement opening differencing VHD images shermp 2019-06-15 16:20:09 +12:00
  • 94d04fae6e Include cwalk 1.2.1 shermp 2019-06-14 09:33:51 +12:00
  • e16d1cb414 Implement mvhd_format_sectors shermp 2019-06-13 22:24:05 +12:00
  • fe03cc7dc2 Document mvhd_fopen function shermp 2019-06-13 21:51:49 +12:00
  • 0f0119e59d Cast lengths to ints from size_t shermp 2019-06-13 21:43:43 +12:00
  • f35c4eef25 Switch to using mvhd_fopen shermp 2019-06-13 21:33:09 +12:00
  • 69e723424f Added more checks for mvhd_fopen shermp 2019-06-13 21:22:57 +12:00
  • 988dd95e08 Add mvhd_fopen for cross platform unicode file path support shermp 2019-06-13 20:54:35 +12:00
  • 6737b51f88 Add void parameter shermp 2019-06-13 20:24:57 +12:00
  • 4aa56c2a1d Add encoding header shermp 2019-06-13 20:23:11 +12:00
  • cdbcac64e2 Add UTF-8/UTF-16 conversion functions from libxml2 shermp 2019-06-13 20:13:28 +12:00
  • dd287341bc Comment io file shermp 2019-06-13 18:48:09 +12:00
  • 8cad46e192 Annotate files for doxygen inclusion shermp 2019-06-12 22:55:00 +12:00
  • af6263bed4 Add comments in manage shermp 2019-06-12 22:27:46 +12:00
  • e3f28a3feb Add comments to struct_rw shermp 2019-06-12 21:19:03 +12:00
  • 1bd6d84c40 Add comments to utils shermp 2019-06-12 20:56:52 +12:00
  • 0adeafc2e7 Remove outdated readme content. shermp 2019-06-12 20:28:30 +12:00
  • d0b13a6341 Delete old MiniVHD-v1 files shermp 2019-06-12 20:23:57 +12:00
  • 94c3492978 Merge remote-tracking branch 'minivhd-v2/master' shermp 2019-06-12 20:16:26 +12:00
  • 241748f40b Merge pull request #3 from shermp/diff-v3 minivhd-v1 Sherman Perry 2019-06-12 20:04:31 +12:00
  • 0320215970 Rework BAT and sector bitmap management shermp 2019-06-12 19:45:41 +12:00
  • 206ffa230c Forgot endian conversion for BAT entries shermp 2019-06-12 00:18:41 +12:00
  • 36b4842f52 Type casting fix shermp 2019-06-12 00:08:06 +12:00
  • 236ff29c13 Opening vhd in binary mode might help... shermp 2019-06-11 23:41:53 +12:00
  • f998b10eb7 Add sector r/w function wrappers for API shermp 2019-06-11 22:03:36 +12:00
  • b7b3c037b7 Hide MVHDMeta struct implementation shermp 2019-06-11 22:00:58 +12:00
  • 366a6fb917 Implement basic 'readonly' functionality shermp 2019-06-11 00:01:55 +12:00
  • d5ae2604de Initial sparse/diff sector writing implementation shermp 2019-06-10 23:41:24 +12:00
  • 6a0a614ef0 Compile fixes shermp 2019-06-10 22:58:39 +12:00
  • 00a736dc75 Implement fixed write function shermp 2019-06-10 09:08:41 +12:00
  • cfcbca05dd Add timestamp functions to appropriate header shermp 2019-06-10 09:02:42 +12:00
  • dd6de44870 Make 'file_is_vhd' function public shermp 2019-06-10 09:01:44 +12:00
  • 7c82b74b1d Add timestamp functions shermp 2019-06-10 08:57:59 +12:00
  • 592795069c Create separate header files shermp 2019-06-09 22:55:10 +12:00
  • 40e5d61798 Fix GCC errors and warnings shermp 2019-06-09 22:46:48 +12:00
  • 2ba2fd8e33 Assign read functions in struct shermp 2019-06-09 22:20:10 +12:00
  • c12e02acfa Implement differencing read function shermp 2019-06-09 22:08:26 +12:00
  • 72c50c5b1e Create sparse read implementation shermp 2019-06-09 21:05:07 +12:00
  • 882489efac Add some required sparse calculations shermp 2019-06-09 20:08:21 +12:00
  • 47e92ce208 Begin sector reading implementation shermp 2019-06-09 20:06:36 +12:00
  • 7a487f4d54 Move geometry calculation shermp 2019-06-09 17:02:46 +12:00
  • c011fcd5dd Copy UUID implementation shermp 2019-06-09 17:02:00 +12:00
  • 5c6a52d651 Read BAT from file shermp 2019-06-09 16:54:30 +12:00