diff options
| author | Damien Le Moal <[email protected]> | 2022-04-21 11:30:23 -0700 |
|---|---|---|
| committer | Martin K. Petersen <[email protected]> | 2022-04-25 23:23:05 -0400 |
| commit | 4a5fc1c6d75261f2f014a961d39ab10aae66a0f9 (patch) | |
| tree | 5e9130186a29368108ad921d400f9bce82313954 /tools/perf/scripts/python | |
| parent | 35dbe2b9a7b0c92777c855c6a2cca8390f4c166b (diff) | |
scsi: scsi_debug: Add gap zone support
Add the 'zone_cap_mb' kernel module parameter. This parameter defines the
zone capacity. The zone capacity must be less than or equal to the zone
size.
Report that sequential write zones and gap zones are paired in the Zoned
Block Device Characteristics VPD page (page B6h).
This patch has been tested as follows:
modprobe scsi_debug delay=0 sector_size=512 dev_size_mb=128 zbc=host-managed zone_nr_conv=16 zone_size_mb=4 zone_cap_mb=3
modprobe brd rd_nr=1 rd_size=$((1<<20))
mkfs.f2fs -m /dev/ram0 -c /dev/${scsi_debug_dev}
mount /dev/ram0 /mnt
# Run a fio job that uses /mnt
Link: https://lore.kernel.org/r/[email protected]
Cc: Douglas Gilbert <[email protected]>
Acked-by: Douglas Gilbert <[email protected]>
Signed-off-by: Damien Le Moal <[email protected]>
[ bvanassche: Switched to reporting a constant zone starting LBA granularity ]
Signed-off-by: Bart Van Assche <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions