projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
engines: Add Network Block Device (NBD) support using libnbd.
[fio.git]
/
options.c
diff --git
a/options.c
b/options.c
index 6d832354e95d856e89f2c41d6d5691cbd4d8d49c..f4c9bedf377fe0805c787f1bf349e5b91ce0b7e2 100644
(file)
--- a/
options.c
+++ b/
options.c
@@
-493,6
+493,9
@@
int fio_cpus_split(os_cpu_mask_t *mask, unsigned int cpu_index)
const long max_cpu = cpus_online();
cpus_in_mask = fio_cpu_count(mask);
const long max_cpu = cpus_online();
cpus_in_mask = fio_cpu_count(mask);
+ if (!cpus_in_mask)
+ return 0;
+
cpu_index = cpu_index % cpus_in_mask;
index = 0;
cpu_index = cpu_index % cpus_in_mask;
index = 0;
@@
-1896,6
+1899,9
@@
struct fio_option fio_options[FIO_MAX_OPTS] = {
.help = "HTTP (WebDAV/S3) IO engine",
},
#endif
.help = "HTTP (WebDAV/S3) IO engine",
},
#endif
+ { .ival = "nbd",
+ .help = "Network Block Device (NBD) IO engine"
+ },
},
},
{
},
},
{