Skip to content

Linux mounts - #222

Merged
jamesmarkchan merged 4 commits into
devfrom
linux-mounts
Sep 8, 2026
Merged

Linux mounts#222
jamesmarkchan merged 4 commits into
devfrom
linux-mounts

Conversation

@jamesmarkchan

Copy link
Copy Markdown
Member

No description provided.

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.

🟡 Changes recommended

The updated lsblk parsing can still treat merged stderr output as device names, producing invalid /dev/... paths when lsblk fails.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

Reviewed AGENT.md (loaded).

This PR improves Linux drive identification when a filesystem is mounted directly on a whole disk (no partition table), by avoiding empty lsblk pkname results and adding a fallback path to resolve the drive vendor/model.

Changes:

  • Trim and skip empty lines returned by lsblk -no pkname when mapping a partition to parent block devices.
  • In Linux drive-model detection, add a fallback to query vendor/model directly from the mounted device when no parent device name is returned.
File summaries
File Description
jdm-core/src/main/java/jdiskmark/UtilOs.java Skips empty lsblk pkname output lines to avoid invalid device-name entries.
jdm-core/src/main/java/jdiskmark/Util.java Adds fallback drive model lookup for whole-disk mounts where pkname is empty.
Review details
  • Files reviewed: 2/2 changed files
  • Comments generated: 1
  • Review effort level: Lite

💡 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/UtilOs.java
@jamesmarkchan
jamesmarkchan merged commit 0f3458a into dev Sep 8, 2026
8 checks passed
@jamesmarkchan
jamesmarkchan deleted the linux-mounts branch September 8, 2026 00:52
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