Skip to content

Unison (fastcheck=true) doesn't notice new files (written in exFAT by another computer running Windows) #1122

@Artur2048

Description

@Artur2048

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:

  1. both roots (home and media) are in sync
  2. unmount and remove "media"
  3. 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"
  4. bring back the USB SSD and mount it on local PC, start Unison again and resccan (either via GUI or CLI)
  5. Unison will report that everything is in sync and no changes has been made to either replica
  6. now on LOCAL PC - create additional (empty) file on "media" in the Archive directory (let's say test3)
  7. hit RESCAN on Unison GUI (or start it again via CLI):
  8. Unison will now detect the "test3" file correctly as well as "test1" file ...but "test2" remains undetected
  9. 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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    windowsspecific to Microsoft Windowswontfixmaintainers choose not to work on this, but PR would still be considered

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions