projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d79ff8c
)
engines/sg: Return error if generic_close_file fails
author
Erwan Velu
<erwanaliasr1@gmail.com>
Wed, 8 Sep 2021 20:18:53 +0000
(22:18 +0200)
committer
Erwan Velu
<erwanaliasr1@gmail.com>
Wed, 8 Sep 2021 20:18:53 +0000
(22:18 +0200)
The current code was returning 1 if generic_close_file() fails.
The ret value was prepared with the real error, let's return this one as
the per generic_open_file() error handling.
Signed-off-by: Erwan Velu <erwanaliasr1@gmail.com>
engines/sg.c
patch
|
blob
|
blame
|
history
diff --git
a/engines/sg.c
b/engines/sg.c
index 0c2d2c8b861ad22fdc3080e51a605194450ffcc5..592c448890dc5130cf4fbc2c6a145ce57a76a28d 100644
(file)
--- a/
engines/sg.c
+++ b/
engines/sg.c
@@
-982,7
+982,7
@@
static int fio_sgio_open(struct thread_data *td, struct fio_file *f)
if (sd && !sd->type_checked && fio_sgio_type_check(td, f)) {
ret = generic_close_file(td, f);
- return
1
;
+ return
ret
;
}
return 0;