blk-zoned: implement ioctls
Adds the new BLKREPORTZONE and BLKRESETZONE ioctls for respectively obtaining the zone configuration of a zoned block device and resetting the write pointer of sequential zones of a zoned block device. The BLKREPORTZONE ioctl maps directly to a single call of the function blkdev_report_zones. The zone information result is passed as an array of struct blk_zone identical to the structure used internally for processing the REQ_OP_ZONE_REPORT operation. The BLKRESETZONE ioctl maps to a single call of the blkdev_reset_zones function. Signed-off-by:Shaun Tancheff <shaun.tancheff@seagate.com> Signed-off-by:
Damien Le Moal <damien.lemoal@hgst.com> Reviewed-by:
Christoph Hellwig <hch@lst.de> Reviewed-by:
Martin K. Petersen <martin.petersen@oracle.com> Reviewed-by:
Hannes Reinecke <hare@suse.com> Signed-off-by:
Jens Axboe <axboe@fb.com>
Showing
- block/blk-zoned.c 93 additions, 0 deletionsblock/blk-zoned.c
- block/ioctl.c 4 additions, 0 deletionsblock/ioctl.c
- include/linux/blkdev.h 21 additions, 0 deletionsinclude/linux/blkdev.h
- include/uapi/linux/blkzoned.h 40 additions, 0 deletionsinclude/uapi/linux/blkzoned.h
- include/uapi/linux/fs.h 4 additions, 0 deletionsinclude/uapi/linux/fs.h
Loading
Please register or sign in to comment