Skip to content

Conversation

@NateThornton
Copy link
Contributor

@NateThornton NateThornton commented Sep 26, 2025

Sometimes it is desired to only issue the underlying I/O command through submit_io (compare, read, write). Currently, at least one identify namespace is used to discover the logical block size.

This change adds a new --block-size= option to the submit_io interface. When provided, the --block-size= is used as the logical block size in bytes, and the --metadata-size= is also used as the metadata size in bytes. Storage and Reference tag checks are bypassed.

(I am less certain about the --metadata-size= acting per-block, and how best to support or document it. One idea would be to take the metadata-size as a the total size across all blocks, and setting ms = cfg.metadata_size / (cfg.block_count + 1). I'm open to ideas or changes here)

@NateThornton NateThornton changed the title Io no ident nvme: add --block-size option to IO interface to bypass identify command Sep 26, 2025
…nds.

When specified, the --block-size is used as the logical block size in
bytes, and the --metadata-size is used as the metadata size in bytes.

Signed-off-by: Nate Thornton <[email protected]>
…y commands.

Adds `--block-size=` and `-b` to various completions

Signed-off-by: Nate Thornton <[email protected]>
@igaw
Copy link
Collaborator

igaw commented Sep 26, 2025

Could also update the documentation please?

Include new `--block-size=` in compare/read/write documentation

Signed-off-by: Nate Thornton <[email protected]>
@igaw igaw merged commit a23747d into linux-nvme:master Oct 7, 2025
16 checks passed
@igaw
Copy link
Collaborator

igaw commented Oct 7, 2025

Thanks!

@igaw
Copy link
Collaborator

igaw commented Oct 7, 2025

Right after merging I saw the the nvme-write documentation had an typo for the short-hand. Fixed it.

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