Skip to content

nvme/059: fix unset bytes_to_write in TEST 7#245

Merged
kawasaki merged 1 commit into
linux-blktests:masterfrom
schlad:nvme_059
Jun 22, 2026
Merged

nvme/059: fix unset bytes_to_write in TEST 7#245
kawasaki merged 1 commit into
linux-blktests:masterfrom
schlad:nvme_059

Conversation

@schlad

@schlad schlad commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

bytes_to_write was never assigned, causing TEST 7 to pass for the wrong reason. Set it to atomic_unit_max_bytes + logical_block_size and update the golden output with the expected "pwrite: Invalid argument" from xfs_io.

bytes_to_write was never assigned, causing TEST 7 to pass for the wrong
reason. Set it to atomic_unit_max_bytes + logical_block_size and update
the golden output with the expected "pwrite: Invalid argument" from xfs_io.

Signed-off-by: Sebastian Chlad <sebastian.chlad@suse.com>
@kawasaki

Copy link
Copy Markdown
Collaborator

@schlad Good catch, thanks! The commit looks good to me.

Actually, I found similar mistake exists in scsi/009 TEST 8 also. If you can create another PR or post patch for scsi/009, it will be a big help. (If you do not have time for it, that's okay, just let me know.)

@alanpeterad FYI. If you have any comment, please share.

@schlad

schlad commented Jun 14, 2026

Copy link
Copy Markdown
Contributor Author

If you can create another PR or post patch for scsi/009, it will be a big help.

I will take a look at the scsi/009 today afternoon (European time zone here).

@kawasaki kawasaki merged commit b6d78ab into linux-blktests:master Jun 22, 2026
5 checks passed
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