]> Git Repo - linux.git/commit - fs/cifs/inode.c
cifs: Check server capability before attempting silly rename
authorSachin Prabhu <[email protected]>
Tue, 5 Mar 2013 19:25:56 +0000 (19:25 +0000)
committerSteve French <[email protected]>
Thu, 7 Mar 2013 00:30:04 +0000 (18:30 -0600)
commitc483a9841df1de327e01af7deb6ba349210e5f82
treed48fe8bb27a79e4777d0df626884129a0a2623ee
parent72d282dc5109e5dc0d963be020604e0cc82f7ed7
cifs: Check server capability before attempting silly rename

cifs_rename_pending_delete() attempts to silly rename file using
CIFSSMBRenameOpenFile(). This uses the SET_FILE_INFORMATION TRANS2
command with information level set to the passthru info-level
SMB_SET_FILE_RENAME_INFORMATION.

We need to check to make sure that the server support passthru
info-levels before attempting the silly rename or else we will fail to
rename the file.

Signed-off-by: Sachin Prabhu <[email protected]>
Reviewed-by: Jeff Layton <[email protected]>
Signed-off-by: Steve French <[email protected]>
fs/cifs/inode.c
This page took 0.053125 seconds and 4 git commands to generate.