Skip to content

bisync: add size checks to the delta engine and unit tests #5684

Closed

Description

@ivandeex

Synopsis

Delta engine in the bisync beta can only use modtime to detect changes.
We could take file size into consideration too (especially in cases when modtime is not supported),
and add relevant test cases.

Prior discussions

#5164 (comment) (ivandeex)

This is an issue with the overall algorithm of some sync tools but there is no reason you need modtime to decide what to sync.

Theoretically, no. The bisync change detection in its current state is all about bit masks (as opposed to "rclonic" Equal). But it needs more testing.

#5164 (comment) (cjnaz)

Detecting on size change only leaves out the case where a file is changed but is the same size. This could happen when a process writes a time string to a file, for example. Other than this case, in practice changed-but-same-size is relatively rare; however, I'd be submitting a bug report if such a file was missed in the sync.

#5164 (comment) (JWink3101)

Yep. I agree. It is a bad method but it is the same one, to my knowledge, used my rclone already for remotes that do not provide ModTime or a hash

How to use GitHub

  • Please use the 👍 reaction to show that you are affected by the same issue.
  • Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
  • Subscribe to receive notifications on status change and new comments.

Activity

  1. added this to the Soon milestone on Oct 8, 2021
  2. self-assigned this
    on Oct 8, 2021
  3. cjnaz commented on Nov 9, 2021

    @cjnaz
    Contributor

    Best to follow the rclone precedent for change detection based on size.

  4. added a commit that references this issue on Dec 15, 2023
    7613c3f
  5. added a commit that references this issue on Jan 20, 2024
    4bde7f2
  6. added a commit that references this issue on Jan 23, 2024
    f70a4c6
  7. added a commit that references this issue on Jan 26, 2024
    b421664
  8. moved this to Done in bisyncon Aug 20, 2024
  9. added a commit that references this issue on Jul 20, 2026
    d280cea
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

  • Status
    Done

Relationships

None yet

Development

No branches or pull requests

Issue actions