Content-Type: multipart/mixed; boundary="===============3336395216137958785==" MIME-Version: 1.0 From: ssunder at xilinx.com Subject: [SPDK] How to handle write zeros with Virtio umap flag ? Date: Mon, 03 May 2021 05:43:57 +0000 Message-ID: <20210503054357.2812.91748@ml01.vlan13.01.org> List-ID: To: spdk@lists.01.org --===============3336395216137958785== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Hi, I am trying to understand the behavior of VIRTIO_BLK_WRITE_ZEROES_FLAG_UNMA= P folded inside Virtio write zeros request. I found a mention of this flag = in vhost_blk.c, where the vhost_blk returning the error as a feature not su= pported. Please see the code snippet: /* Zeroed and Unmap the range, SPDK doen't support it. */ if (desc->flags & VIRTIO_BLK_WRITE_ZEROES_FLAG_UNMAP) { SPDK_NOTICELOG("Can't support Write Zeroes with Unmap flag\n"); invalid_blk_request(task, VIRTIO_BLK_S_UNSUPP); return -1; } I would like to understand why this is not supported in the SPDK bdev subsy= stem. If it is not possible to support this request, what is the workaroun= d I can implement to avoid returning the feature not supported in Virtio's = response to a user request? --===============3336395216137958785==--