Skip to content

Conversation

@boylee1111
Copy link

Change-Id: I4335da745be563f24232a9088ca4f2c8b4f9379b

Change description

Project tracking

Do any added TODOs have an issue in the backlog?

Did you add unit tests? Why not?

Does this code need functional testing?

Is a code review walkthrough needed? why or why not?

Should additional test coverage be executed in addition to pre-merge?

Does this code need a note in the changelog?

Does this code require documentation changes?

Additional Information

Change-Id: I4335da745be563f24232a9088ca4f2c8b4f9379b
// If LUKS close succeeded, the block device node should be gone.
// It's the responsibility of the kernel and udev to manage /dev/mapper entries.
// If the /dev/mapper entry lives on, log a warning and return success.
if _, err := osFs.Stat(luksDevicePath); err != nil {
Copy link
Contributor

@jwebster7 jwebster7 Jul 16, 2025

Choose a reason for hiding this comment

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

This check is only a proactive check for stale /dev/mapper entries. If Stat fails to find the file (the positive case) this will add incorrect log statements.

s/err != nil/err == nil to have the correct behavior.

Change-Id: Ib48a47bdb270aebcb169b605064189c91b49c055
… found in sysfs, causing NodeUnstage failed.

Change-Id: I231d3cf9913e07947b3bf3e61591296f8373ac78
… and lun ID

Change-Id: I091259c1c826bfec961efd7f811532fa00d7ce0c
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.

2 participants