]> Git Repo - linux.git/commit - fs/cifs/inode.c
cifs: make cifs_rename handle -EACCES errors
authorJeff Layton <[email protected]>
Mon, 20 Oct 2008 18:45:22 +0000 (14:45 -0400)
committerSteve French <[email protected]>
Mon, 20 Oct 2008 18:44:13 +0000 (18:44 +0000)
commit14121bdccc17b8c0e4368a9c0e4f82c3dd47f240
tree78489a5a1bd99c542bd5f187c999e6be53691198
parent413460980ea7796582bce672be85879be0865ada
cifs: make cifs_rename handle -EACCES errors

cifs: make cifs_rename handle -EACCES errors

Some servers seem to return -EACCES when attempting to rename one
open file on top of another. Refactor the cifs_rename logic to
attempt to rename the target file out of the way in this situation.

This also fixes the "unlink_target" logic to be undoable if the
subsequent rename fails.

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