[PATCH] idl: define FSCTL_DUPLICATE_EXTENTS_TO_FILE

Jeremy Allison jra at samba.org
Mon Feb 9 16:06:23 MST 2015


On Mon, Feb 02, 2015 at 11:56:21AM +0100, David Disseldorp wrote:
> As specified in the recent 20150129 revision of MS-FSCC.
> 
> Signed-off-by: David Disseldorp <ddiss at samba.org>

I want to add 'Reviewed-by:' but I can't find a copy
of 20150129 revision of MS-FSCC :-(.

Can you send me a copy of it and I'll +1 and push
the patch ?

Thanks,

Jeremy.

>  libcli/smb/smb_constants.h | 1 +
>  librpc/idl/ioctl.idl       | 7 +++++++
>  2 files changed, 8 insertions(+)
> 
> diff --git a/libcli/smb/smb_constants.h b/libcli/smb/smb_constants.h
> index f2c880c..1421718 100644
> --- a/libcli/smb/smb_constants.h
> +++ b/libcli/smb/smb_constants.h
> @@ -525,6 +525,7 @@ enum csc_policy {
>  #define FSCTL_FILE_LEVEL_TRIM		(FSCTL_FILESYSTEM | FSCTL_ACCESS_WRITE | 0x0208 | FSCTL_METHOD_BUFFERED)
>  #define FSCTL_OFFLOAD_READ		(FSCTL_FILESYSTEM | FSCTL_ACCESS_READ | 0x0264 | FSCTL_METHOD_BUFFERED)
>  #define FSCTL_OFFLOAD_WRITE		(FSCTL_FILESYSTEM | FSCTL_ACCESS_WRITE | 0x0268 | FSCTL_METHOD_BUFFERED)
> +#define FSCTL_DUP_EXTENTS_TO_FILE	(FSCTL_FILESYSTEM | FSCTL_ACCESS_WRITE | 0x0344 | FSCTL_METHOD_BUFFERED)
>  
>  #define FSCTL_NAMED_PIPE		0x00110000
>  #define FSCTL_PIPE_PEEK			(FSCTL_NAMED_PIPE | FSCTL_ACCESS_READ | 0x000C | FSCTL_METHOD_BUFFERED)
> diff --git a/librpc/idl/ioctl.idl b/librpc/idl/ioctl.idl
> index 7760644..321d12c 100644
> --- a/librpc/idl/ioctl.idl
> +++ b/librpc/idl/ioctl.idl
> @@ -87,6 +87,13 @@ interface copychunk
>  		uint32 flags;
>  		hyper length_written;
>  	} fsctl_offload_write_output;
> +
> +	typedef [public] struct {
> +		uint8 source_handle[8];
> +		hyper source_off;
> +		hyper target_off;
> +		hyper byte_count;
> +	} fsctl_dup_extents_to_file;
>  }
>  
>  interface compression
> -- 
> 2.1.2


More information about the samba-technical mailing list