hpc / hpc/mpifileutils

dsync to a folder that doesn't exist returns 0

Open
#668 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

If you do similar to below, trying to dsync to a folder which does not exist, the return code from mpifileutils is 0. It should be non-zero, I'm guessing 2?

$ dsync CMakeLists.txt  foo/bar; echo $?
[2026-02-04T02:44:12] [0] [/home/username/code/mpifileutils-v0.12/mpifileutils/src/dsync/dsync.c:3360] ERROR: Destination parent directory is not writable `/home/username/code/mpifileutils-v0.12/mpifileutils/src/dsync/foo' (errno=2 No such file or directory)
0

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 in mpifileutils/src/dsync/dsync.c around line 3360 and trace how the missing destination parent-directory error affects dsync's process exit status. Reproduce the command with a nonexistent destination, then verify that the command reports a non-zero status instead of 0.

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
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.