diff options
author | Steve French <smfrench@gmail.com> | 2013-10-15 00:31:32 +0400 |
---|---|---|
committer | Steve French <smfrench@gmail.com> | 2013-10-28 18:22:31 +0400 |
commit | 64a5cfa6db94c5abba2cafe77aca077dd1e3283b (patch) | |
tree | 4a17ded1db5b4e83ced56aa4d6d081d2a72211e4 /fs/cifs/cifsglob.h | |
parent | 7ff8d45c9dccf0744404d6fe44468ede7c1b9533 (diff) | |
download | linux-64a5cfa6db94c5abba2cafe77aca077dd1e3283b.tar.xz |
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/cifsglob.h')
-rw-r--r-- | fs/cifs/cifsglob.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/cifs/cifsglob.h b/fs/cifs/cifsglob.h index 52b6f6c26bfc..06e8947fc370 100644 --- a/fs/cifs/cifsglob.h +++ b/fs/cifs/cifsglob.h @@ -278,6 +278,8 @@ struct smb_version_operations { /* set attributes */ int (*set_file_info)(struct inode *, const char *, FILE_BASIC_INFO *, const unsigned int); + int (*set_compression)(const unsigned int, struct cifs_tcon *, + struct cifsFileInfo *); /* check if we can send an echo or nor */ bool (*can_echo)(struct TCP_Server_Info *); /* send echo request */ |