From 303126bad91a536b4173ec3932aa312823729cbb Mon Sep 17 00:00:00 2001 From: "G.raud Meyer" Date: Tue, 20 Mar 2018 08:18:34 +0100 Subject: New workaround renamexdev to enable moving files across remote filesystems sshfs.rst: update the documentation. --- sshfs.rst | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'sshfs.rst') diff --git a/sshfs.rst b/sshfs.rst index dac3108..d91a99c 100644 --- a/sshfs.rst +++ b/sshfs.rst @@ -107,6 +107,8 @@ Options :rename: Emulate overwriting an existing file by deleting and renaming. + :renamexdev: Make rename fail with EXDEV instead of the default EPERM + to allow moving files across remote filesystems. :truncate: Work around servers that don't support truncate by coping the whole file, truncating it locally, and sending it back. @@ -228,6 +230,17 @@ removed it, but before SSHFS had the time to rename the old file. In this case, the rename will still fail. +Permission denied when moving files across remote filesystems +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +Most SFTP servers return only a generic "failure" when failing to rename +across filesystem boundaries (EXDEV). sshfs normally converts this generic +failure to a permission denied error (EPERM). If the option ``-o +workaround=renamexdev`` is given, generic failures will be considered EXDEV +errors which will make programs like `mv(1)` attempt to actually move the +file after the failed rename. + + SSHFS hangs ~~~~~~~~~~~ -- cgit v1.2.3