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

🐛 fstab discovery improvements #5207

Merged
merged 11 commits into from
Feb 17, 2025
Merged

🐛 fstab discovery improvements #5207

merged 11 commits into from
Feb 17, 2025

Conversation

slntopp
Copy link
Member

@slntopp slntopp commented Feb 11, 2025

No description provided.

Copy link
Contributor

github-actions bot commented Feb 11, 2025

Test Results

3 298 tests  +8   3 294 ✅ +8   1m 40s ⏱️ -15s
  385 suites ±0       4 💤 ±0 
   29 files   ±0       0 ❌ ±0 

Results for commit d35502d. ± Comparison against base commit 4047c53.

♻️ This comment has been updated with latest results.

@slntopp slntopp marked this pull request as ready for review February 14, 2025 19:50
@@ -443,7 +474,12 @@ func (c *LinuxDeviceManager) identifyDeviceViaLun(lun int) ([]snapshot.BlockDevi
}

func (c *LinuxDeviceManager) identifyViaDeviceName(deviceName string, mountAll bool, includeMounted bool) ([]*snapshot.PartitionInfo, error) {
blockDevices, err := c.volumeMounter.CmdRunner.GetBlockDevices()
if deviceName == "" {
Copy link
Contributor

Choose a reason for hiding this comment

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

what's the use case for no device name?

Copy link
Member Author

Choose a reason for hiding this comment

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

Just a failsafe, i've hit this case when used --device-name flag wrong and that just adds false errors, where it shouldn't

"k8s.io/utils/ptr"
)

type deviceManagerTestFixture struct {
Copy link
Contributor

Choose a reason for hiding this comment

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

awesome

@slntopp slntopp merged commit 0d668b1 into main Feb 17, 2025
17 checks passed
@slntopp slntopp deleted the mik/fstab-discovery-improv branch February 17, 2025 13:30
@github-actions github-actions bot locked and limited conversation to collaborators Feb 17, 2025
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