From d6358a0dc965d89cfca5bc8b9d3d035a894f5212 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Thu, 24 Nov 2022 10:31:17 +0100 Subject: sys/linux: refine BLKPG ioctl This ioctl accepts blkpg_partition struct: https://elixir.bootlin.com/linux/v6.1-rc6/source/block/ioctl.c#L20 --- sys/linux/dev_block.txt | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) (limited to 'sys/linux/dev_block.txt') diff --git a/sys/linux/dev_block.txt b/sys/linux/dev_block.txt index 4ce5e5707..34e283164 100644 --- a/sys/linux/dev_block.txt +++ b/sys/linux/dev_block.txt @@ -85,12 +85,22 @@ hd_geometry { } blkpg_ioctl_arg { - op int32 - flags int32 + op flags[blkpg_ioctl_op, int32] + flags const[0, int32] datalen bytesize[data, int32] - data ptr[in, array[int8]] + data ptr[in, blkpg_partition] } +blkpg_partition { + start int64 + length int64 + pno int32[0:20] + devname array[const[0, int8], BLKPG_DEVNAMELTH] + volname array[const[0, int8], BLKPG_VOLNAMELTH] +} + +blkpg_ioctl_op = BLKPG_ADD_PARTITION, BLKPG_DEL_PARTITION, BLKPG_RESIZE_PARTITION + blk_user_trace_setup { name array[const[0, int8], BLKTRACE_BDEV_SIZE] act_mask int16 -- cgit mrf-deployment