llnl / llnl/UnifyFS

Support C++ fstreams

Open
#649 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
122
Forks
34
PR merge metrics
No merged PRs in 30d

Description

System information
Type Version/Name
Operating System Linux
OS Version Ubuntu 20.04 LTS
Architecture x86_64
UnifyFS Version current git HEAD
Describe the problem you're observing

It appears C++ fstreams are not handled properly by UnifyFS.

Describe how to reproduce the problem

It looks like pretty much any use of std::ifstream or std::ofstream will fail. I'll post some sample code below.

Include any warning or errors or releveant debugging data

For both std::ofstream and std::ifstream, opening the stream fails. For output streams, the file should have been created automatically, but it isn't. And for input streams, attempting to open a file that is known to exist still fails. The message from strerror(errno) in both cases is "No such file or directory".

Contributor guide

No contributing guide indexed for this repository

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 by reproducing the failure with std::ifstream and std::ofstream on Linux, using the sample behavior described in the issue. Trace UnifyFS handling of these file opens; done means existing files can be opened for input and output streams create their target files successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.