aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs/smb2proto.h
diff options
context:
space:
mode:
authorSteve French <smfrench@gmail.com>2013-10-14 16:31:32 -0400
committerSteve French <smfrench@gmail.com>2013-10-28 10:22:31 -0400
commit64a5cfa6db94c5abba2cafe77aca077dd1e3283b (patch)
tree4a17ded1db5b4e83ced56aa4d6d081d2a72211e4 /fs/cifs/smb2proto.h
parent7ff8d45c9dccf0744404d6fe44468ede7c1b9533 (diff)
Allow setting per-file compression via SMB2/3
Allow cifs/smb2/smb3 to return whether or not a file is compressed via lsattr, and allow SMB2/SMB3 to set the per-file compression flag ("chattr +c filename" on an smb3 mount). Windows users often set the compressed flag (it can be done from the desktop and file manager). David Disseldorp has patches to Samba server to support this (at least on btrfs) which are complementary to this Signed-off-by: Steve French <smfrench@gmail.com>
Diffstat (limited to 'fs/cifs/smb2proto.h')
-rw-r--r--fs/cifs/smb2proto.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/cifs/smb2proto.h b/fs/cifs/smb2proto.h
index e3fb4801ee96..3cf22e39420d 100644
--- a/fs/cifs/smb2proto.h
+++ b/fs/cifs/smb2proto.h
@@ -142,6 +142,8 @@ extern int SMB2_set_eof(const unsigned int xid, struct cifs_tcon *tcon,
142extern int SMB2_set_info(const unsigned int xid, struct cifs_tcon *tcon, 142extern int SMB2_set_info(const unsigned int xid, struct cifs_tcon *tcon,
143 u64 persistent_fid, u64 volatile_fid, 143 u64 persistent_fid, u64 volatile_fid,
144 FILE_BASIC_INFO *buf); 144 FILE_BASIC_INFO *buf);
145extern int SMB2_set_compression(const unsigned int xid, struct cifs_tcon *tcon,
146 u64 persistent_fid, u64 volatile_fid);
145extern int SMB2_oplock_break(const unsigned int xid, struct cifs_tcon *tcon, 147extern int SMB2_oplock_break(const unsigned int xid, struct cifs_tcon *tcon,
146 const u64 persistent_fid, const u64 volatile_fid, 148 const u64 persistent_fid, const u64 volatile_fid,
147 const __u8 oplock_level); 149 const __u8 oplock_level);