Skip to content

File based QuickAccess impls: Atomic move not supported #97

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.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions