Re: Zoned block device regression test 11

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Michael,

On 2018/08/22 12:05, Michael Kelley (EOSG) wrote:
> One more question:  What's the preferred source for the zbc_* commands?
> I built from https://github.com/hgst/libzbc, but get this runtime failure:
> 
> root@MHKfio2:~# zbc_report_zones /dev/nullb0
> Device /dev/nullb0:
>     Vendor ID: FAKE HGST HM libzbc
>     Emulated zoned block device interface, Host-managed zone model

The above line says "emulated" which means that libzbc detected a regular block
device and went into emulation mode. This means that your null_blk setup is not
supporting zoned mode or nullb0 was not created as a zoned device.
You can easily check if the nullb device created is zoned or not: just look into
/sys/block/nullb0/queue/zoned. It should say "host-managed". In your case, the
content is probably "none".

>     2097152 512-bytes sectors
>     262144 logical blocks of 4096 B
>     262144 physical blocks of 4096 B
>     1.074 GB capacity
>     Read commands are restricted
>     Maximum number of open sequential write required zones: 32
> zbc_report_nr_zones at 0, ro 0x00 failed -6
> 
> Michael
> 

On another note, you can also use the sysutils blkzone command to do the same:
blkzone report /dev/nullb0 will five you the zone list.

Best regards.

-- 
Damien Le Moal
Western Digital Research




[Index of Archives]     [Linux Kernel]     [Linux SCSI]     [Linux IDE]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux