You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
819 B

  1. # rename-exdev
  2. If using path preservation and a `rename` fails with `EXDEV`:
  3. 1. Move file from `/branch/a/b/c` to `/branch/.mergerfs_rename_exdev/a/b/c`.
  4. 2. symlink the rename's `newpath` to the moved file.
  5. The `target` value is determined by the value of `rename-exdev`.
  6. * `rename-exdev=passthrough`: Return `EXDEV` as normal.
  7. * `rename-exdev=rel-symlink`: A relative path from the `newpath`.
  8. * `rename-exdev=abs-symlink`: An absolute value using the mergerfs
  9. mount point.
  10. * Defaults to `passthrough`.
  11. **NOTE:** It is possible that some applications check the file they
  12. rename. In those cases it is possible it will error or complain.
  13. **NOTE:** The reason `abs-symlink` is not split into two like
  14. `link-exdev` is due to the complexities in managing absolute base
  15. symlinks when multiple `oldpaths` exist.