systemd / casync

Content-Addressable Data Synchronization Tool
1.49k stars 117 forks source link

Top-level subvolume extraction fails with 'Failed to run synchronizer: File exists' #239

Open srd424 opened 4 years ago

srd424 commented 4 years ago

If the toplevel directory of a tree is a subvolume, mkdir_or_mksubvol() never seems to get called for it, so it is not created as subvolume. However ca_decoder_finalize_child() checks the subvolume status against the flags and fails with EEXIST, leading to a "Failed to run synchronizer: File exists" message.

Can be worked around by creating the subvolume by hand before calling casync.

This is a different bug to #237.