hpc / hpc/mpifileutils

dsync prints out "Completed sync" even if you only did 'dsync --help'

Open
#672 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
200
Forks
85
Avg merge
3d 21h
Merged PRs (30d)
2

Description

In my opinion, there should not be a printout of Completed sync when you do dsync --help. No syncing took place.

$ dsync --help

Usage: dsync [options] source target

Options:
      --dryrun            - show differences, but do not synchronize files
  -b  --batch-files <N>   - batch files into groups of N during copy
      --bufsize <SIZE>    - IO buffer size in bytes (default 4MB)
      --chunksize <SIZE>  - minimum work size per task in bytes (default 4MB)
  -X, --xattrs <OPT>      - copy xattrs (none, all, non-lustre, libattr)
  -c, --contents          - read and compare file contents rather than compare size and mtime
  -D, --delete            - delete extraneous files from target
  -L, --dereference       - copy original files instead of links
  -P, --no-dereference    - don't follow links in source
  -s, --direct            - open files with O_DIRECT
      --open-noatime      - open files with O_NOATIME
      --link-dest <DIR>   - hardlink to files in DIR when unchanged
  -S, --sparse            - create sparse files when possible
      --progress <N>      - print progress every N seconds
  -v, --verbose           - verbose output
  -q, --quiet             - quiet output
  -h, --help              - print usage

For more information see https://mpifileutils.readthedocs.io.
[2026-02-05T22:18:41] Completed sync

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the dsync command entry point and trace how --help exits and where the "Completed sync" message is emitted. Confirm that help displays usage without performing a sync, then verify the message is absent for dsync --help while remaining available after an actual sync.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
cli
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.