Get a zoned block device zone size in number of 512 B sectors. The zone size is always 0 for regular block devices.
Showing the changes to include/uapi/linux (1 of 2 files). Show all
Unified · Split
| @@ -137,8 +137,10 @@ struct blk_zone_range { · 136 unmodified lines | |||
| 137 | * sector specified in the report request structure. | 137 | * sector specified in the report request structure. |
| 138 | * @BLKRESETZONE: Reset the write pointer of the zones in the specified | 138 | * @BLKRESETZONE: Reset the write pointer of the zones in the specified |
| 139 | * sector range. The sector range must be zone aligned. | 139 | * sector range. The sector range must be zone aligned. |
| 140 | * @BLKGETZONESZ: Get the device zone size in number of 512 B sectors. | ||
| 140 | */ | 141 | */ |
| 141 | #define BLKREPORTZONE _IOWR(0x12, 130, struct blk_zone_report) | 142 | #define BLKREPORTZONE _IOWR(0x12, 130, struct blk_zone_report) |
| 142 | #define BLKRESETZONE _IOW(0x12, 131, struct blk_zone_range) | 143 | #define BLKRESETZONE _IOW(0x12, 131, struct blk_zone_range) |
| 144 | #define BLKGETZONESZ _IOW(0x12, 132, __u32) | ||
| 143 | 145 | ||
| 144 | #endif /* _UAPI_BLKZONED_H */ | 146 | #endif /* _UAPI_BLKZONED_H */ |