ioctl: use dummy passthru command #3004
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The ioctl probing is triggering a valgrind report. Let's pass in a empty command which will return a status code (0x4101) if the ioctl is supported.
==143223== Syscall param ioctl(generic) points to unaddressable byte(s)
==143223== at 0x49BE36D: ioctl (ioctl.c:36)
==143223== by 0x48644AB: __nvme_transport_handle_open_direct (linux.c:110)
==143223== by 0x48646C1: nvme_open (linux.c:169)
==143223== by 0x40DDBD: get_transport_handle (nvme.c:366)
==143223== by 0x40DF00: parse_and_open (nvme.c:404)
==143223== by 0x42F4BC: submit_io (nvme.c:8237)
==143223== by 0x430268: read_cmd (nvme.c:8470)
==143223== by 0x45CDD6: handle_plugin (plugin.c:190)
==143223== by 0x43ACF2: main (nvme.c:11032)