Skip to content

Commit

Permalink
allows VHDX childs in any directory
Browse files Browse the repository at this point in the history
uses new utils.calc_rel_path in VHDX and  generates good child VHDX images in directories other than parent's one
  • Loading branch information
maxpat78 committed Aug 5, 2024
1 parent ee7db50 commit 0b3e956
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion FATtools/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '1.0.37'
__version__ = '1.0.38'
2 changes: 1 addition & 1 deletion FATtools/vhdxutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit 0b3e956

Please sign in to comment.