projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
067c18e
)
zbd: Make an error message more detailed
author
Bart Van Assche
<bvanassche@acm.org>
Fri, 13 Jan 2023 22:36:26 +0000
(14:36 -0800)
committer
Bart Van Assche
<bvanassche@acm.org>
Wed, 22 Feb 2023 22:54:04 +0000
(14:54 -0800)
If zone data is invalid, report in detail why it is invalid.
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
zbd.c
patch
|
blob
|
blame
|
history
diff --git
a/zbd.c
b/zbd.c
index 1d96bf178aac56de93b520aa894ca32a8cab3b5c..d6f8f800e3130204c476876b1884d9f3e8508056 100644
(file)
--- a/
zbd.c
+++ b/
zbd.c
@@
-848,8
+848,9
@@
static int parse_zone_info(struct thread_data *td, struct fio_file *f)
p->cond = z->cond;
if (j > 0 && p->start != p[-1].start + zone_size) {
- log_info("%s: invalid zone data\n",
- f->file_name);
+ log_info("%s: invalid zone data [%d:%d]: %"PRIu64" + %"PRIu64" != %"PRIu64"\n",
+ f->file_name, j, i,
+ p[-1].start, zone_size, p->start);
ret = -EINVAL;
goto out;
}