From: Jeff Layton Date: Mon, 20 Oct 2008 18:45:22 +0000 (-0400) Subject: cifs: make cifs_rename handle -EACCES errors X-Git-Tag: v2.6.28-rc1~19^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=14121bdccc17b8c0e4368a9c0e4f82c3dd47f240;p=pandora-kernel.git 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 Signed-off-by: Steve French --- Reading git-diff-tree failed