Skip to content

#205 get model for whole partition disk on linux - #216

Merged
jamesmarkchan merged 1 commit into
devfrom
linux-mounts
Aug 19, 2026
Merged

#205 get model for whole partition disk on linux#216
jamesmarkchan merged 1 commit into
devfrom
linux-mounts

Conversation

@jamesmarkchan

Copy link
Copy Markdown
Member

resolve model for whole partition disk

@jamesmarkchan
jamesmarkchan requested review from jslcom and a lite review from Copilot August 19, 2026 01:35
@jamesmarkchan jamesmarkchan linked an issue Aug 19, 2026 that may be closed by this pull request
@jamesmarkchan jamesmarkchan self-assigned this Aug 19, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 aims to correctly resolve the drive model on Linux when the benchmark path is on a whole-disk filesystem (where lsblk -no pkname can return an empty value).

Changes:

  • Filtered out blank lsblk output lines when resolving parent device names on Linux.
  • Added a Linux fallback in Util.getDriveModel to query vendor/model directly from the resolved “partition” when no parent device name is returned.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
jdm-core/src/main/java/jdiskmark/UtilOs.java Filters empty lsblk pkname lines while collecting parent device names.
jdm-core/src/main/java/jdiskmark/Util.java Adds an empty-parent fallback for Linux drive-model detection.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread jdm-core/src/main/java/jdiskmark/Util.java
Comment thread jdm-core/src/main/java/jdiskmark/UtilOs.java
@jamesmarkchan
jamesmarkchan merged commit d53f006 into dev Aug 19, 2026
12 of 13 checks passed
@jamesmarkchan
jamesmarkchan deleted the linux-mounts branch August 19, 2026 02:02
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.

Drives dropdown does not display other mounted drives in linux

2 participants