[Bug 240798] nvmecontrol perftest is broken
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Tue Sep 24 20:35:25 UTC 2019
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=240798
Bug ID: 240798
Summary: nvmecontrol perftest is broken
Product: Base System
Version: CURRENT
Hardware: Any
OS: Any
Status: New
Severity: Affects Some People
Priority: ---
Component: bin
Assignee: bugs at FreeBSD.org
Reporter: stefanrink at yahoo.com
Recent changes in perftest.c /sbin/nvmecontrol/perftest.c have broken the tool.
The settings for the test (threads, size) are not set into the ioctl struct and
there is check failure where you always need to add -f something or else it wil
not accept your parameters.
--- /sbin/nvmecontrol/perftest.c
146c146
< if (opt.flags == NULL || opt.op == NULL)
---
> if (opt.op == NULL)
148c148
< if (strcmp(opt.flags, "refthread") == 0)
---
> if (opt.flags != NULL && strcmp(opt.flags, "refthread") == 0)
165a166,167
> io_test.num_threads = opt.threads;
>
173a176,181
> if (opt.size < 0){
> fprintf(stderr, "Invalid size.\n");
> arg_help(argc, argv, f);
> }
>
> io_test.size=opt.size;
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list