aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs/smb2pdu.c
diff options
context:
space:
mode:
authorPavel Shilovsky <pshilovsky@samba.org>2012-09-18 19:20:32 -0400
committerSteve French <smfrench@gmail.com>2012-09-24 22:46:29 -0400
commit1feeaac753e0a9b3864740556b7840643642abdb (patch)
tree0a13bb908611afd528521f66b3f1f36d60112c9b /fs/cifs/smb2pdu.c
parent6bdf6dbd662176c0da5c3ac8ed10ac94e7776c85 (diff)
CIFS: Add set_file_info support for SMB2
Signed-off-by: Pavel Shilovsky <pshilovsky@samba.org> Signed-off-by: Steve French <smfrench@gmail.com>
Diffstat (limited to 'fs/cifs/smb2pdu.c')
-rw-r--r--fs/cifs/smb2pdu.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/fs/cifs/smb2pdu.c b/fs/cifs/smb2pdu.c
index 74a8381400b1..a1314f99b4cc 100644
--- a/fs/cifs/smb2pdu.c
+++ b/fs/cifs/smb2pdu.c
@@ -1760,3 +1760,14 @@ SMB2_set_eof(const unsigned int xid, struct cifs_tcon *tcon, u64 persistent_fid,
1760 return send_set_info(xid, tcon, persistent_fid, volatile_fid, pid, 1760 return send_set_info(xid, tcon, persistent_fid, volatile_fid, pid,
1761 FILE_END_OF_FILE_INFORMATION, 1, &data, &size); 1761 FILE_END_OF_FILE_INFORMATION, 1, &data, &size);
1762} 1762}
1763
1764int
1765SMB2_set_info(const unsigned int xid, struct cifs_tcon *tcon,
1766 u64 persistent_fid, u64 volatile_fid, FILE_BASIC_INFO *buf)
1767{
1768 unsigned int size;
1769 size = sizeof(FILE_BASIC_INFO);
1770 return send_set_info(xid, tcon, persistent_fid, volatile_fid,
1771 current->tgid, FILE_BASIC_INFORMATION, 1,
1772 (void **)&buf, &size);
1773}