Support C++ fstreams
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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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