Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🧹 Add new methods for detecting and mounting in the volume mounter. #4101

Merged
merged 2 commits into from
May 24, 2024

Conversation

preslavgerchev
Copy link
Contributor

Split the detection of the partition we're mounting from the actual mounting process. To not make any changes to existing code that's using the volume mounter, I've added two new functions there: GetDeviceForMounting and MountP (artition)

The device manager's interface was also reworked:

  • Changed IdentifyBlockDevice to IdentifyMountTargets to better account for the fact we can have multiple targets (even if unimplemented)
  • Mount now returns the scan dir where it was mounted

…reviously that was all done in one function, we now split those.

Signed-off-by: Preslav <[email protected]>
Copy link
Contributor

github-actions bot commented May 24, 2024

Test Results

3 002 tests   3 001 ✅  1m 31s ⏱️
  331 suites      1 💤
   23 files        0 ❌

Results for commit 87d7c46.

♻️ This comment has been updated with latest results.

Copy link
Contributor

@vjeffrey vjeffrey left a comment

Choose a reason for hiding this comment

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

left a question on here about the fsinfo func that still exists, lgtm 👍

@preslavgerchev preslavgerchev merged commit 9708499 into main May 24, 2024
15 checks passed
@preslavgerchev preslavgerchev deleted the preslav/vol-mounter-improv-part-1 branch May 24, 2024 22:21
@github-actions github-actions bot locked and limited conversation to collaborators May 24, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants