diff options
author | G.raud Meyer <graud@gmx.com> | 2018-03-20 08:18:34 +0100 |
---|---|---|
committer | Nikolaus Rath <Nikolaus@rath.org> | 2018-03-28 19:48:02 +0100 |
commit | 303126bad91a536b4173ec3932aa312823729cbb (patch) | |
tree | 79230746df136a9fc4f921a6946a46b186399ce5 /sshfs.c | |
parent | f0a0cc2b7e7d837946af7597caf9cc7394f238dc (diff) | |
download | sshfs-303126bad91a536b4173ec3932aa312823729cbb.tar sshfs-303126bad91a536b4173ec3932aa312823729cbb.tar.gz sshfs-303126bad91a536b4173ec3932aa312823729cbb.tar.bz2 sshfs-303126bad91a536b4173ec3932aa312823729cbb.zip |
New workaround renamexdev to enable moving files across remote filesystems
sshfs.rst: update the documentation.
Diffstat (limited to 'sshfs.c')
-rw-r--r-- | sshfs.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -214,6 +214,7 @@ struct sshfs { struct fuse_args ssh_args; char *workarounds; int rename_workaround; + int renamexdev_workaround; int truncate_workaround; int buflimit_workaround; int unrel_append; @@ -446,6 +447,8 @@ static struct fuse_opt workaround_opts[] = { SSHFS_OPT("none", fstat_workaround, 0), SSHFS_OPT("rename", rename_workaround, 1), SSHFS_OPT("norename", rename_workaround, 0), + SSHFS_OPT("renamexdev", renamexdev_workaround, 1), + SSHFS_OPT("norenamexdev", renamexdev_workaround, 0), SSHFS_OPT("truncate", truncate_workaround, 1), SSHFS_OPT("notruncate", truncate_workaround, 0), SSHFS_OPT("buflimit", buflimit_workaround, 1), @@ -2333,6 +2336,8 @@ static int sshfs_rename(const char *from, const char *to, unsigned int flags) } } } + if (err == -EPERM && sshfs.renamexdev_workaround) + err = -EXDEV; return err; } @@ -3365,6 +3370,7 @@ static void usage(const char *progname) " -o workaround=LIST colon separated list of workarounds\n" " none no workarounds enabled\n" " [no]rename fix renaming to existing file (default: off)\n" +" [no]renamexdev fix moving across filesystems (default: off)\n" " [no]truncate fix truncate for old servers (default: off)\n" " [no]buflimit fix buffer fillup bug in server (default: on)\n" " [no]fstat always use stat() instead of fstat() (default: off)\n" @@ -3851,6 +3857,7 @@ int main(int argc, char *argv[]) #else sshfs.rename_workaround = 0; #endif + sshfs.renamexdev_workaround = 0; sshfs.truncate_workaround = 0; sshfs.buflimit_workaround = 1; sshfs.ssh_ver = 2; |