New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use unsigned short type for exit_what and stonewall #1066
Conversation
@XeS0r Nice! Could you:
And that's about all... |
Actually your fix has uncovered a bug in Line 35 in 5c79c32
|
The more I think about it the more I wonder - wouldn't it be better just to convert both these values (exit_what, stonewall) to be ints rather than shorts even if they could be smaller (even FIO_BOOL seems to go into an int)? numa_mem_mode gets away with it because it's not a fully fledged option passed in via the command line... |
I already fixed this issue. But I want to make sure that I don't find anything else. Now that I'm aware of the unit tests. |
I can also change them both to int if you prefer that solution. |
If it looks like it would be smaller that would be the way to go (we would also likely need to bump |
Yeah just make them ints, and increment the |
@XeS0r Looks good:
|
Ah one more:
|
Yes sure, hopefully this prefix is fulfilling your requirements.
I've also fixed the comment. |
@@ -32,7 +32,7 @@ iodepth=32 | |||
rate=300,300,300 | |||
|
|||
[slow2] | |||
stonewall=1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If this change in job files is required, then we'll have to fix it so that's not the case. If it's not required, don't make the change in the job file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Stonewalls usage is not documented like this. I've changed the man page and also fixed some other stuff in the example. Now it's up to you if we should use stonewall=1
in the example or not. Both will work and it's not required to set a value. But all other examples just use stonewall without any value assigned.
Fixes: 64402a8 ("Expand choices for exitall") Fixes: axboe#1065 Signed-off-by: André Wild <wild.andre.ae@gmail.com>
Looks good to me now, except you still have the exitwhat.fio change in there. Please get rid of that. |
Not saying it's incorrect, but it doesn't matter and it's not related. You can do that as a separate commit, if you'd like. Ditto the fio.1 change, that should be a separate commit as well. |
Ah screw it, I'll just pull it as it is, not worth changing it for imho. |
Thanks for fixing this issue! |
I would have changed that too. Was not sure If you want separate commits. Next time I'm aware of that. Thanks for your patience. |
Fixes: 64402a8 ("Expand choices for exitall")
Fixes: #1065
Signed-off-by: André Wild wild.andre.ae@gmail.com