-
Notifications
You must be signed in to change notification settings - Fork 259
Description
Instructions
I have thoroughly read the Reporting Bugs and Feature Requests wiki page.
Meta
Running Unison to sync local drive with removable USB SSD.
Environment
- unison version 2.53.7
- Linux Mint 21.3
- ocaml 4.14.2)
- issue affect both - GUI and CLI
- both - local and SSH
- use of fsmonitor: no
Reproduction Recipe
After performing initial sync with Unison, I've unmounted and removed my USB SSD, plugged it to another PC and added some files and directories.
I have then plugged it back to my computer and started Unison again. After rescanning both folders it wrote that "Everything is in sync" (which is not true - there are new files there)
Interesting fact - if I create additional file in exactly the same directory as the "undetected new files" on my local computer and rescan with Unison - it will detect all new files - including files created on another PC which were previously undetected
Additional information - my SSD is formatted as ExFAT, and the profile PRF is:
root = /media/artur/Extreme Pro/Test1/
root = /home/artur/Test1/
fat = true
times = true
log = true
logfile = sync_test1.log
Steps to reproduce:
- both roots (home and media) are in sync
- unmount and remove "media"
- add some files to some subdirectory on ANOTHER PC - Windows PC:
for example add file "test1" in already existing directory "Archive"
and also add "test2" in the already existing directory "Documents" - bring back the USB SSD and mount it on local PC, start Unison again and resccan (either via GUI or CLI)
- Unison will report that everything is in sync and no changes has been made to either replica
- now on LOCAL PC - create additional (empty) file on "media" in the Archive directory (let's say test3)
- hit RESCAN on Unison GUI (or start it again via CLI):
- Unison will now detect the "test3" file correctly as well as "test1" file ...but "test2" remains undetected
- after clicking GO - it will correctly copy test1 and test3 to the replica in "home".
Expected behavior vs actual behavior
Expected behavior - Unison should be able to detect files modified to removable drives on external PCs
Additionally:
- if i test using above steps on very small replica set (just 2 directories with few empty files) - SOMETIMES Unison detects them and sometimes it doesn't. (but if it doesn't - then running additional rescans will not change anything - files remain undetected)
- adding on local pc additional file to the directory containing new (undetected) files will always cause Unison to detect those files in that particular directory (just type "touch /media/....../Test1/Archive/xxx")
- on my large volume (containing about 1TB of data and almost 100,000 files) it basically happens on every run. (so i need to delete Unison cache - the "archive files ar*" and "fingerprint files fp*" to make Unison do the "first time scan" in order to guarantee my files are really in sync)