Skip to content

File based QuickAccess impls: Atomic move not supported #97

Closed

Description

@infeo

The filebased QuickAccess impls use the following pattern to add/or remove an entry:

  1. Copy file to tmp dir
  2. Edit file
  3. Replace original file with tmp-file atomically

The latter might not be possible atomically (e.g. /tmp/ and /home/user/... can be on different disks/partitions). The error message:

Caused by: java.nio.file.AtomicMoveNotSupportedException: /tmp/user-places.xbel.cryptomator.tmp -> /home/user/.local/share/user-places.xbel: Invalid cross-device link

If atomic move is not supported, we could relax the condition on a second try.

Activity

  1. added
    enhancement
    on Nov 11, 2024
  2. self-assigned this
    on Nov 11, 2024
  3. added this to the next milestone on Nov 11, 2024
  4. added a commit that references this issue on Jan 13, 2025
    73c3302
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancement

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions