]> git.karo-electronics.de Git - karo-tx-linux.git/commit
Allow setting per-file compression via CIFS protocol
authorSteve French <smfrench@gmail.com>
Mon, 14 Oct 2013 20:27:32 +0000 (15:27 -0500)
committerSteve French <smfrench@gmail.com>
Wed, 16 Oct 2013 05:09:44 +0000 (00:09 -0500)
commitec03969d8eb21047a825b183bba2535c74df1c3e
tree195ccb7722cc4d50db3153c3604f38175ded2a1d
parent765ad44d00f890cab5a9b8300c5d5fe9e14b71a6
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>
fs/cifs/cifspdu.h
fs/cifs/cifsproto.h
fs/cifs/cifssmb.c
fs/cifs/smb1ops.c
fs/cifs/smb2pdu.h