diff options
author | Sachin Prabhu <sprabhu@redhat.com> | 2013-03-05 19:25:56 +0000 |
---|---|---|
committer | Steve French <sfrench@us.ibm.com> | 2013-03-06 18:30:04 -0600 |
commit | c483a9841df1de327e01af7deb6ba349210e5f82 (patch) | |
tree | d48fe8bb27a79e4777d0df626884129a0a2623ee /fs/cifs/connect.c | |
parent | 72d282dc5109e5dc0d963be020604e0cc82f7ed7 (diff) | |
download | lwn-c483a9841df1de327e01af7deb6ba349210e5f82.tar.gz lwn-c483a9841df1de327e01af7deb6ba349210e5f82.zip |
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 <sprabhu@redhat.com>
Reviewed-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs/cifs/connect.c')
0 files changed, 0 insertions, 0 deletions