From 0b3e956fdfce1c6a94a98e5df3cf3efdc6b292c5 Mon Sep 17 00:00:00 2001 From: maxpat78 Date: Mon, 5 Aug 2024 12:06:53 +0200 Subject: [PATCH] allows VHDX childs in any directory uses new utils.calc_rel_path in VHDX and generates good child VHDX images in directories other than parent's one --- FATtools/version.py | 2 +- FATtools/vhdxutils.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/FATtools/version.py b/FATtools/version.py index aa8d766..f76b755 100644 --- a/FATtools/version.py +++ b/FATtools/version.py @@ -1 +1 @@ -__version__ = '1.0.37' \ No newline at end of file +__version__ = '1.0.38' \ No newline at end of file diff --git a/FATtools/vhdxutils.py b/FATtools/vhdxutils.py index abd96a7..5f4ccf2 100644 --- a/FATtools/vhdxutils.py +++ b/FATtools/vhdxutils.py @@ -1207,7 +1207,7 @@ def mk_diff(name, base, block=(2<<20), overwrite='no', sector=512): pl.entries['parent_linkage'] = '{%s}' % uuid.UUID(bytes_le=parent.header.sDataWriteGuid) # Only one of relative_path, volume_path or absolute_win32_path is required # Windows 10 completes the other paths on mount and adds parent_linkage2 key - pl.entries['relative_path'] = os.path.join('.', os.path.basename(parent.name)) + pl.entries['relative_path'] = utils.calc_rel_path(parent.name, name) pl.wKeyValueCount = len(pl.entries) buf = pl.pack()