aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/uapi/linux/blkzoned.h
diff options
context:
space:
mode:
authorDamien Le Moal <damien.lemoal@wdc.com>2018-10-12 19:08:45 +0900
committerJens Axboe <axboe@kernel.dk>2018-10-25 11:17:40 -0600
commit72cd87576d1d885fc2968416ed5aca8f54749653 (patch)
treec965a7ffee387262de03c108c6fecc837e5b98bb /include/uapi/linux/blkzoned.h
parentblock: Limit allocation of zone descriptors for report zones (diff)
downloadwireguard-linux-72cd87576d1d885fc2968416ed5aca8f54749653.tar.xz
wireguard-linux-72cd87576d1d885fc2968416ed5aca8f54749653.zip
block: Introduce BLKGETZONESZ ioctl
Get a zoned block device zone size in number of 512 B sectors. The zone size is always 0 for regular block devices. Reviewed-by: Hannes Reinecke <hare@suse.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include/uapi/linux/blkzoned.h')
-rw-r--r--include/uapi/linux/blkzoned.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/uapi/linux/blkzoned.h b/include/uapi/linux/blkzoned.h
index ff5a5db8906a..281ac605f752 100644
--- a/include/uapi/linux/blkzoned.h
+++ b/include/uapi/linux/blkzoned.h
@@ -137,8 +137,10 @@ struct blk_zone_range {
* sector specified in the report request structure.
* @BLKRESETZONE: Reset the write pointer of the zones in the specified
* sector range. The sector range must be zone aligned.
+ * @BLKGETZONESZ: Get the device zone size in number of 512 B sectors.
*/
#define BLKREPORTZONE _IOWR(0x12, 130, struct blk_zone_report)
#define BLKRESETZONE _IOW(0x12, 131, struct blk_zone_range)
+#define BLKGETZONESZ _IOW(0x12, 132, __u32)
#endif /* _UAPI_BLKZONED_H */