scsi: scsi_debug: Add zone_size_mb module parameter
authorDamien Le Moal <damien.lemoal@wdc.com>
Wed, 22 Apr 2020 10:42:20 +0000 (19:42 +0900)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 5 May 2020 04:37:33 +0000 (00:37 -0400)
commit98e0a689868c26eb82650ee759073f2295e74c97
tree3d3bf171adfd8933685837aa3f71bcccde6199ac
parentaa8fecf96b704adfd2ee2b6c76248c1f1cb237ef
scsi: scsi_debug: Add zone_size_mb module parameter

Add the zone_size_mb module parameters to control the zone size of a ZBC
device. If the zone size specified is not a divisor of the device capacity,
the last zone of the device will be created as a smaller "runt" zone. This
parameter is ignored for device types other than 0x14 (zbc=2 case).

Note: for testing purposes, zone sizes that are not a power of 2 are
accepted but will result in the drive being rejected by the sd driver.

Link: https://lore.kernel.org/r/20200422104221.378203-7-damien.lemoal@wdc.com
Signed-off-by: Douglas Gilbert <dgilbert@interlog.com>
Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/scsi_debug.c