aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs/smb2ops.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/cifs/smb2ops.c')
-rw-r--r--fs/cifs/smb2ops.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/fs/cifs/smb2ops.c b/fs/cifs/smb2ops.c
index 1266137406fa..bcf310c8b784 100644
--- a/fs/cifs/smb2ops.c
+++ b/fs/cifs/smb2ops.c
@@ -181,6 +181,15 @@ smb2_is_path_accessible(const unsigned int xid, struct cifs_tcon *tcon,
181 return rc; 181 return rc;
182} 182}
183 183
184static int
185smb2_get_srv_inum(const unsigned int xid, struct cifs_tcon *tcon,
186 struct cifs_sb_info *cifs_sb, const char *full_path,
187 u64 *uniqueid, FILE_ALL_INFO *data)
188{
189 *uniqueid = le64_to_cpu(data->IndexNumber);
190 return 0;
191}
192
184struct smb_version_operations smb21_operations = { 193struct smb_version_operations smb21_operations = {
185 .setup_request = smb2_setup_request, 194 .setup_request = smb2_setup_request,
186 .check_receive = smb2_check_receive, 195 .check_receive = smb2_check_receive,
@@ -199,6 +208,8 @@ struct smb_version_operations smb21_operations = {
199 .tree_connect = SMB2_tcon, 208 .tree_connect = SMB2_tcon,
200 .tree_disconnect = SMB2_tdis, 209 .tree_disconnect = SMB2_tdis,
201 .is_path_accessible = smb2_is_path_accessible, 210 .is_path_accessible = smb2_is_path_accessible,
211 .query_path_info = smb2_query_path_info,
212 .get_srv_inum = smb2_get_srv_inum,
202}; 213};
203 214
204struct smb_version_values smb21_values = { 215struct smb_version_values smb21_values = {