From ebee4589fbabe0ed6f8b1662481558ff784e0e92 Mon Sep 17 00:00:00 2001 From: Ralph Boehme Date: Fri, 2 Jun 2017 13:05:22 +0200 Subject: librpc/idl: convert offload flags to a bitmap Signed-off-by: Ralph Boehme Reviewed-by: Stefan Metzmacher --- librpc/idl/ioctl.idl | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'librpc') diff --git a/librpc/idl/ioctl.idl b/librpc/idl/ioctl.idl index f72f9d2507b..17dfdf802a0 100644 --- a/librpc/idl/ioctl.idl +++ b/librpc/idl/ioctl.idl @@ -67,19 +67,22 @@ interface copychunk hyper length; } fsctl_offload_read_input; - const uint32 OFFLOAD_READ_FLAG_FILE_TOO_SMALL = 0x00000001; - const uint32 OFFLOAD_READ_FLAG_ALL_ZERO_BEYOND_RANGE = 0x00000002; - const uint32 OFFLOAD_READ_FLAG_CANNOT_OFFLOAD_BEYOND_RANGE = 0x00000004; + typedef [public,bitmap32bit] bitmap { + OFFLOAD_READ_FLAG_FILE_TOO_SMALL = 0x01, + OFFLOAD_READ_FLAG_ALL_ZERO_BEYOND_RANGE = 0x02, + OFFLOAD_READ_FLAG_CANNOT_OFFLOAD_BEYOND_RANGE = 0x04 + } offload_flags; + typedef [public] struct { uint32 size; - uint32 flags; + offload_flags flags; hyper xfer_length; uint8 token[512]; } fsctl_offload_read_output; typedef [public] struct { uint32 size; - uint32 flags; + offload_flags flags; hyper file_offset; hyper copy_length; hyper xfer_offset; -- cgit v1.2.1