Skip to content

Conversation

@twiggler
Copy link
Contributor

Close #204

@codecov
Copy link

codecov bot commented Jul 17, 2025

Codecov Report

❌ Patch coverage is 0% with 12 lines in your changes missing coverage. Please review.
✅ Project coverage is 44.89%. Comparing base (c403f87) to head (6d0048e).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
acquire/acquire.py 0.00% 12 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main     #255   +/-   ##
=======================================
  Coverage   44.89%   44.89%           
=======================================
  Files          26       26           
  Lines        3535     3535           
=======================================
  Hits         1587     1587           
  Misses       1948     1948           
Flag Coverage Δ
unittests 44.89% <0.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

if dir_path.is_symlink() and dir_path.exists():
dst = dir_path.readlink()
fs = dst.get().top.fs
fs = dst.get().entries.top.fs
Copy link
Contributor Author

@twiggler twiggler Jul 17, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don´t see this pattern being used anywhere else for getting the underlying fs, which is giving me some pause.

I wonder what the canonical method is. The semantics of top (and entries) is a bit unclear to me.

The algorithm here is to deduplicate bootbanks based on the filesystem they are on.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dir_path.samefile should be used.

@twiggler twiggler requested a review from Miauwkeru July 17, 2025 14:39
if dir_path.is_symlink() and dir_path.exists():
dst = dir_path.readlink()
fs = dst.get().top.fs
fs = dst.get().entries.top.fs
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dir_path.samefile should be used.


for _, mountpoint, uuid, _ in iter_esxi_filesystems(target):
for bootbank_path, boot_vol in boot_fs:
if bootbank_path.samefile(mountpoint):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

samefile doesn't work as intended with a string path yet. The issue is described here: fox-it/dissect.target#1289

bootbank_path.samefile(target.fs.path(mountpoint)) does not give that issue, besides for python3.9. The _accessor is still missing.

@twiggler twiggler changed the title Infer filesystem of bootbank Infer path of bootbanks Aug 21, 2025
@twiggler twiggler merged commit fa63abb into main Aug 21, 2025
23 of 25 checks passed
@twiggler twiggler deleted the bootbanks branch August 21, 2025 07:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bootbanks module fails with AttributeError

4 participants