summaryrefslogtreecommitdiff
path: root/zbd.c
diff options
context:
space:
mode:
authorNiklas Cassel <niklas.cassel@wdc.com>2021-06-14 13:49:03 +0000
committerJens Axboe <axboe@kernel.dk>2021-06-14 08:54:25 -0600
commit50cc48d52fec6c74a46e377b23f19ebed532125a (patch)
treeeae792a4f36d0fdc80c4b817ed1b72e552b11e73 /zbd.c
parentdd4620b7f9171edaa10955c4826454a05af27c85 (diff)
downloadfio-50cc48d52fec6c74a46e377b23f19ebed532125a.tar.gz
fio-50cc48d52fec6c74a46e377b23f19ebed532125a.tar.bz2
zbd: disallow pipes for zonemode=zbd
zoned block device support in fio cannot handle pipes, so simply reject them and give a clear error message. Signed-off-by: Niklas Cassel <niklas.cassel@wdc.com> Reviewed-by: Damien Le Moal <damien.lemoal@wdc.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'zbd.c')
-rw-r--r--zbd.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/zbd.c b/zbd.c
index 5d9e331a..60325d28 100644
--- a/zbd.c
+++ b/zbd.c
@@ -32,6 +32,11 @@ int zbd_get_zoned_model(struct thread_data *td, struct fio_file *f,
{
int ret;
+ if (f->filetype == FIO_TYPE_PIPE) {
+ log_err("zonemode=zbd does not support pipes\n");
+ return -EINVAL;
+ }
+
if (td->io_ops && td->io_ops->get_zoned_model)
ret = td->io_ops->get_zoned_model(td, f, model);
else