Re: [PATCH 0/2] null_blk: zone support

From: Matias BjÃrling
Date: Mon Jul 09 2018 - 03:55:05 EST


On 07/06/2018 07:45 PM, Laurence Oberman wrote:
On Fri, 2018-07-06 at 19:38 +0200, Matias BjÃrling wrote:
This series adds support for exposing a zone block device using the
null_blk device driver.

The first patch moves core null_blk data structures to a shared
header
file. The second implements the actual zone support. The patchset
adds
two new options. One to enable the zone interface, and another to
define the size of the zones to expose.

Thanks,
Matias

Matias BjÃrling (2):
 null_blk: move shared definitions to header file
 null_blk: add zone support

ÂDocumentation/block/null_blk.txt |ÂÂÂ7 ++
Âdrivers/block/MakefileÂÂÂÂÂÂÂÂÂÂÂ|ÂÂÂ5 +-
Âdrivers/block/null_blk.cÂÂÂÂÂÂÂÂÂ| 124 ++++++++++++-----------------
---
Âdrivers/block/null_blk.hÂÂÂÂÂÂÂÂÂ| 108 ++++++++++++++++++++++++++++
Âdrivers/block/null_blk_zoned.cÂÂÂ| 149
+++++++++++++++++++++++++++++++++++++++
Â5 files changed, 315 insertions(+), 78 deletions(-)
Âcreate mode 100644 drivers/block/null_blk.h
Âcreate mode 100644 drivers/block/null_blk_zoned.c


Thank you for this will be very useful.
I will test it to add value.
I dont know the code well enough to review it
Regards
Laurence


Great.

For fio, you can use the zone support here:

https://github.com/bvanassche/fio

It is in the process of being upstreamed.

Also, you'll need the latest libzbc/util-linux (blkzone) if you want to report zones. A bug was fixed around detection of the drive.

https://github.com/hgst/libzbc
https://github.com/karelzak/util-linux