[SPDK] Re: Using of Compression VBDEV

Cao, Gang <gang.cao at intel.com> Mon, 13 Sep 2021 10:42:38 +0000
Newsgroups dev.linux.lists.spdk
Message-ID <PH0PR11MB5014803E04B9DFA7AF757FFF83D99@PH0PR11MB5014.namprd11.prod.outlook.com>
I/O type 4 is SPDK_BDEV_IO_TYPE_FLUSH

Looks like Compress vbdev does not support this I/O type

-----Original Message-----
From: Ruslan Laishev <zator(a)yandex.ru> 
Sent: Monday, September 13, 2021 16:43
To: spdk(a)lists.01.org
Subject: [SPDK] Using of Compression VBDEV

Hello!
I have created "Compression VBDEV" on top of Malloc0 BDEV.
$ sudo /data/devadm/spdk/scripts/rpc.py bdev_compress_create -p ./pmem_files -b "CryMalloc0A"
COMP_CryMalloc0A
$sudo /data/devadm/spdk/scripts/rpc.py vhost_scsi_controller_add_target vhost.0 0 COMP_CryMalloc0A
0


When I try to execute "mkfs /dev/sda"  (where /dev/sda is the COMP_Malloc0 ) in the inner VM I got error on the VHOST's output:

[2021-09-13 11:32:51.759692] vbdev_compress.c: 811:_comp_bdev_io_submit: *ERROR*: Unknown I/O type 4
[2021-09-13 11:32:51.759741] vbdev_compress.c: 822:_comp_bdev_io_submit: *ERROR*: on bdev_io submission!
...

Is there what I'm need to check ?
Thanks in advance!
_______________________________________________
SPDK mailing list -- spdk(a)lists.01.org
To unsubscribe send an email to spdk-leave(a)lists.01.org