Support C++ fstreams
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 30/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- cpp
- Domain
- operating-systems
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.
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".
- Dominant language
- C
- Stars
- 122
- Forks
- 34
- PR merge metrics
- No merged PRs in 30d
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.
More from llnl/UnifyFS
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
-
build system
Difficulty 3/5 1-2 days Newbie friendliness 35/100
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
Similar issues
-
level/task module/gcp type/bug
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
-
Difficulty 1/5 Under an hour Newbie friendliness 86/100
hapostgres/pg_auto_failover#1190 ·
-
docs
Difficulty 1/5 Under an hour Newbie friendliness 85/100
-
P3 sonic-vpp
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
sonic-net/sonic-buildimage#29662 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 94/100
spack/spack-packages#6586 ·