Skip to content

nvme-models: suppress missing sysfs entry messages#3359

Merged
igaw merged 1 commit into
linux-nvme:masterfrom
igaw:fix-product
May 13, 2026
Merged

nvme-models: suppress missing sysfs entry messages#3359
igaw merged 1 commit into
linux-nvme:masterfrom
igaw:fix-product

Conversation

@igaw
Copy link
Copy Markdown
Collaborator

@igaw igaw commented May 13, 2026

blktests nvme/033 with tr=loop fails because read_sys_node() reports missing sysfs entries as errors.

Some setups legitimately do not provide these attributes, so treat missing sysfs entries as optional and suppress the error messages.

Fixes: #3358

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR attempts to suppress error output when optional NVMe sysfs attributes are missing, addressing noisy failures in blktests for NVMe loop setups.

Changes:

  • Updates read_sys_node() to avoid printing an error for missing sysfs files.
  • Preserves existing failure return behavior when a sysfs node cannot be opened.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread nvme-models.c Outdated
blktests nvme/033 with tr=loop fails because read_sys_node() reports
missing sysfs entries as errors.

Some setups legitimately do not provide these attributes, so treat
missing sysfs entries as optional and suppress the error messages.

Signed-off-by: Daniel Wagner <wagi@kernel.org>
@igaw igaw merged commit 6bee062 into linux-nvme:master May 13, 2026
28 checks passed
@igaw igaw deleted the fix-product branch May 13, 2026 17:08
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.

product name causes regression in blktests

2 participants