aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs/cifsproto.h
diff options
context:
space:
mode:
authorSteve French <smfrench@gmail.com>2013-10-14 16:27:32 -0400
committerSteve French <smfrench@gmail.com>2013-11-02 13:52:44 -0400
commitc7f508a99bf229963915e79a603e0618d1d2ba76 (patch)
treeb2eaa3a16ccafe2aa1d28130edaa552dd900f66c /fs/cifs/cifsproto.h
parentaf6a12ea8d4bb39a87527835b943bde4215897e5 (diff)
Allow setting per-file compression via CIFS protocol
An earlier patch allowed setting the per-file compression flag "chattr +c filename" on an smb2 or smb3 mount, and also allowed lsattr to return whether a file on a cifs, or smb2/smb3 mount was compressed. This patch extends the ability to set the per-file compression flag to the cifs protocol, which uses a somewhat different IOCTL mechanism than SMB2, although the payload (the flags stored in the compression_state) are the same. Reviewed-by: Jeff Layton <jlayton@redhat.com> Signed-off-by: Steve French <smfrench@gmail.com>
Diffstat (limited to 'fs/cifs/cifsproto.h')
-rw-r--r--fs/cifs/cifsproto.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/cifs/cifsproto.h b/fs/cifs/cifsproto.h
index b5ec2a268f56..aa3397620342 100644
--- a/fs/cifs/cifsproto.h
+++ b/fs/cifs/cifsproto.h
@@ -360,6 +360,8 @@ extern int CIFSSMBUnixQuerySymLink(const unsigned int xid,
360extern int CIFSSMBQuerySymLink(const unsigned int xid, struct cifs_tcon *tcon, 360extern int CIFSSMBQuerySymLink(const unsigned int xid, struct cifs_tcon *tcon,
361 __u16 fid, char **symlinkinfo, 361 __u16 fid, char **symlinkinfo,
362 const struct nls_table *nls_codepage); 362 const struct nls_table *nls_codepage);
363extern int CIFSSMB_set_compression(const unsigned int xid,
364 struct cifs_tcon *tcon, __u16 fid);
363extern int CIFSSMBOpen(const unsigned int xid, struct cifs_tcon *tcon, 365extern int CIFSSMBOpen(const unsigned int xid, struct cifs_tcon *tcon,
364 const char *fileName, const int disposition, 366 const char *fileName, const int disposition,
365 const int access_flags, const int omode, 367 const int access_flags, const int omode,