diff options
author | David Disseldorp <ddiss@samba.org> | 2013-08-07 17:16:11 +0200 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2013-08-09 11:10:01 -0700 |
commit | 8fde65e1998e8dfa5210b74c04a5ee6e6c837202 (patch) | |
tree | 32d67751cc37085a654d29aef79e65fc8453561b | |
parent | 86c79f1ab3146ac83a3ac1fb43808997bcfe0d83 (diff) | |
download | samba-8fde65e1998e8dfa5210b74c04a5ee6e6c837202.tar.gz samba-8fde65e1998e8dfa5210b74c04a5ee6e6c837202.tar.bz2 samba-8fde65e1998e8dfa5210b74c04a5ee6e6c837202.zip |
lib: add FSCTL_[GET/SET]_COMPRESSION constants
Values taken from MS-FSCC.
Signed-off-by: David Disseldorp <ddiss@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
-rw-r--r-- | libcli/smb/smb_constants.h | 3 | ||||
-rw-r--r-- | librpc/idl/ioctl.idl | 11 |
2 files changed, 14 insertions, 0 deletions
diff --git a/libcli/smb/smb_constants.h b/libcli/smb/smb_constants.h index 6dd7b28a14..714441300b 100644 --- a/libcli/smb/smb_constants.h +++ b/libcli/smb/smb_constants.h @@ -390,6 +390,9 @@ enum csc_policy { #define FSCTL_OPLOCK_BREAK_ACKNOWLEDGE (FSCTL_FILESYSTEM | FSCTL_ACCESS_ANY | 0x000C | FSCTL_METHOD_BUFFERED) #define FSCTL_OPBATCH_ACK_CLOSE_PENDING (FSCTL_FILESYSTEM | FSCTL_ACCESS_ANY | 0x0010 | FSCTL_METHOD_BUFFERED) #define FSCTL_OPLOCK_BREAK_NOTIFY (FSCTL_FILESYSTEM | FSCTL_ACCESS_ANY | 0x0014 | FSCTL_METHOD_BUFFERED) +#define FSCTL_GET_COMPRESSION (FSCTL_FILESYSTEM | FSCTL_ACCESS_ANY | 0x003C | FSCTL_METHOD_BUFFERED) +#define FSCTL_SET_COMPRESSION (FSCTL_FILESYSTEM | FSCTL_ACCESS_READ \ + | FSCTL_ACCESS_WRITE | 0x0040 | FSCTL_METHOD_BUFFERED) #define FSCTL_FILESYS_GET_STATISTICS (FSCTL_FILESYSTEM | FSCTL_ACCESS_ANY | 0x0060 | FSCTL_METHOD_BUFFERED) #define FSCTL_GET_NTFS_VOLUME_DATA (FSCTL_FILESYSTEM | FSCTL_ACCESS_ANY | 0x0064 | FSCTL_METHOD_BUFFERED) #define FSCTL_IS_VOLUME_DIRTY (FSCTL_FILESYSTEM | FSCTL_ACCESS_ANY | 0x0078 | FSCTL_METHOD_BUFFERED) diff --git a/librpc/idl/ioctl.idl b/librpc/idl/ioctl.idl index 4672777909..b4485e0da5 100644 --- a/librpc/idl/ioctl.idl +++ b/librpc/idl/ioctl.idl @@ -88,3 +88,14 @@ interface copychunk hyper length_written; } fsctl_offload_write_output; } + +interface compression +{ + const uint16 COMPRESSION_FORMAT_NONE = 0x0000; + const uint16 COMPRESSION_FORMAT_DEFAULT = 0x0001; + const uint16 COMPRESSION_FORMAT_LZNT1 = 0x0002; + + typedef [public] struct { + uint16 format; + } compression_state; +} |