summaryrefslogtreecommitdiffstats
path: root/fs/pnode.h
diff options
context:
space:
mode:
authorSteve French <sfrench@us.ibm.com>2008-09-23 20:23:33 +0200
committerSteve French <sfrench@us.ibm.com>2008-09-23 20:23:33 +0200
commitee2fd967fb23c5eecabc8a660ec66fcd79acbd47 (patch)
tree8a1922499e0775d4849d6ed8d4e3027800d7242d /fs/pnode.h
parentcifs: add function to set file disposition (diff)
downloadlinux-ee2fd967fb23c5eecabc8a660ec66fcd79acbd47.tar.xz
linux-ee2fd967fb23c5eecabc8a660ec66fcd79acbd47.zip
[CIFS] fix busy-file renames and refactor cifs_rename logic
Break out the code that does the actual renaming into a separate function and have cifs_rename call that. That function will attempt a path based rename first and then do a filehandle based one if it looks like the source is busy. The existing logic tried a path based rename first, but if we needed to remove the destination then it only attempted a filehandle based rename afterward. Not all servers support renaming by filehandle, so we need to always attempt path rename first and fall back to filehandle rename if it doesn't work. This also fixes renames of open files on windows servers (at least when the source and destination directories are the same). CC: Jeff Layton <jlayton@redhat.com> Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs/pnode.h')
0 files changed, 0 insertions, 0 deletions