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

95fcoe: don't install if there is no FCoE hostonly devices #972

Merged
merged 2 commits into from Nov 23, 2020

Conversation

ryncsn
Copy link
Contributor

@ryncsn ryncsn commented Nov 18, 2020

Changes

When in hostonly mode, 95fcoe module will still be installed even there
is no FCoE hostonly device. So use the new block_is_fcoe helper to check
for hostonly device in hostonly mode, avoid installing unneccessary module.

Checklist

  • I have tested it locally
  • I have reviewed and updated any documentation if relevant
  • I am providing new code and test(s) for it

When in hostonly mode, 95fcoe module will still be installed even there
is no FCoE hostonly device. So use the new block_is_fcoe helper to check
for hostonly device in hostonly mode, avoid installing unneccessary module.

Signed-off-by: Kairui Song <kasong@redhat.com>
@centos-ci
Copy link
Collaborator

Can one of the admins verify this patch?

@ryncsn
Copy link
Contributor Author

ryncsn commented Nov 18, 2020

Hi, @danimo , I saw in commit 480aa96 you added this helper block_is_fcoe, but left a comment:

block_is_fcoe maj:min
Check whether $1 is an FCoE device
Will not work for HBAs that hide the ethernet aspect
completely and present a pure FC device

I'm not sure about the case that the ethernet aspect is hidden, in such cases, will the original FCoE detection logic in 95fcoe (check if "/sys/bus/fcoe/devices/ctlr_*" exists) work? And in that case, is the 95fcoe module still needed?

@github-actions github-actions bot added fcoe Issues related to the fcoe module fcoe-uefi Issues related to the fcoe-uefi module modules Issue tracker for all modules labels Nov 18, 2020
@danimo
Copy link
Contributor

danimo commented Nov 18, 2020

Hi, @danimo , I saw in commit 480aa96 you added this helper block_is_fcoe, but left a comment:

block_is_fcoe maj:min
Check whether $1 is an FCoE device
Will not work for HBAs that hide the ethernet aspect
completely and present a pure FC device

I'm not sure about the case that the ethernet aspect is hidden, in such cases, will the original FCoE detection logic in 95fcoe (check if "/sys/bus/fcoe/devices/ctlr_*" exists) work? And in that case, is the 95fcoe module still needed?

Our storage department told me that those adapters appear as if they were local block storage HBAs, so the FCoE aspect is completely hidden from the operating system and thus the 95fcoe module is not needed. If there are modules that have an inbetween behavior, the new logic should be good enough to detect whether or not to include the module.

@danimo
Copy link
Contributor

danimo commented Nov 18, 2020

Based on that information, do you want me to merge the PR?

@ryncsn
Copy link
Contributor Author

ryncsn commented Nov 19, 2020

Thanks for the info, I think it's OK to merge it.

@danimo danimo merged commit 8c8af8a into dracutdevs:master Nov 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fcoe Issues related to the fcoe module fcoe-uefi Issues related to the fcoe-uefi module modules Issue tracker for all modules
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants