diff options
author | Pavel Shilovsky <pshilovsky@samba.org> | 2012-09-18 19:20:32 -0400 |
---|---|---|
committer | Steve French <smfrench@gmail.com> | 2012-09-24 22:46:29 -0400 |
commit | c839ff244ba2d54d0933596e29a4b03e3c846a9a (patch) | |
tree | 91c58400bd08c1e5a18ed33cca16f7b890be5dde /fs/cifs/smb2proto.h | |
parent | d143341815bdc7c45d5289a3ab5743c838332518 (diff) |
CIFS: Add SMB2 support for set_file_size
Signed-off-by: Pavel Shilovsky <pshilovsky@samba.org>
Signed-off-by: Steve French <smfrench@gmail.com>
Diffstat (limited to 'fs/cifs/smb2proto.h')
-rw-r--r-- | fs/cifs/smb2proto.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/fs/cifs/smb2proto.h b/fs/cifs/smb2proto.h index 99f6945c8643..3d4866279530 100644 --- a/fs/cifs/smb2proto.h +++ b/fs/cifs/smb2proto.h | |||
@@ -56,6 +56,9 @@ extern int smb2_query_path_info(const unsigned int xid, struct cifs_tcon *tcon, | |||
56 | struct cifs_sb_info *cifs_sb, | 56 | struct cifs_sb_info *cifs_sb, |
57 | const char *full_path, FILE_ALL_INFO *data, | 57 | const char *full_path, FILE_ALL_INFO *data, |
58 | bool *adjust_tz); | 58 | bool *adjust_tz); |
59 | extern int smb2_set_path_size(const unsigned int xid, struct cifs_tcon *tcon, | ||
60 | const char *full_path, __u64 size, | ||
61 | struct cifs_sb_info *cifs_sb, bool set_alloc); | ||
59 | extern int smb2_mkdir(const unsigned int xid, struct cifs_tcon *tcon, | 62 | extern int smb2_mkdir(const unsigned int xid, struct cifs_tcon *tcon, |
60 | const char *name, struct cifs_sb_info *cifs_sb); | 63 | const char *name, struct cifs_sb_info *cifs_sb); |
61 | extern void smb2_mkdir_setinfo(struct inode *inode, const char *full_path, | 64 | extern void smb2_mkdir_setinfo(struct inode *inode, const char *full_path, |
@@ -118,5 +121,8 @@ extern int SMB2_rename(const unsigned int xid, struct cifs_tcon *tcon, | |||
118 | extern int SMB2_set_hardlink(const unsigned int xid, struct cifs_tcon *tcon, | 121 | extern int SMB2_set_hardlink(const unsigned int xid, struct cifs_tcon *tcon, |
119 | u64 persistent_fid, u64 volatile_fid, | 122 | u64 persistent_fid, u64 volatile_fid, |
120 | __le16 *target_file); | 123 | __le16 *target_file); |
124 | extern int SMB2_set_eof(const unsigned int xid, struct cifs_tcon *tcon, | ||
125 | u64 persistent_fid, u64 volatile_fid, u32 pid, | ||
126 | __le64 *eof); | ||
121 | 127 | ||
122 | #endif /* _SMB2PROTO_H */ | 128 | #endif /* _SMB2PROTO_H */ |