Bug 1102989
| Summary: | [libgfapi] glfs_open doesn't works for O_CREAT flag | |||
|---|---|---|---|---|
| Product: | [Community] GlusterFS | Reporter: | SATHEESARAN <sasundar> | |
| Component: | libgfapi | Assignee: | Ric Wheeler <rwheeler> | |
| Status: | CLOSED WONTFIX | QA Contact: | SATHEESARAN <sasundar> | |
| Severity: | high | Docs Contact: | ||
| Priority: | unspecified | |||
| Version: | mainline | CC: | gluster-bugs, ravishankar, skoduri, ssamanta | |
| Target Milestone: | --- | |||
| Target Release: | --- | |||
| Hardware: | x86_64 | |||
| OS: | Linux | |||
| Whiteboard: | ||||
| Fixed In Version: | Doc Type: | Known Issue | ||
| Doc Text: |
As of glusterfs 3.5, glfs_open() does not support O_CREAT as documented here: https://github.com/gluster/glusterfs/blob/release-3.5/api/src/glfs.h#L362
|
Story Points: | --- | |
| Clone Of: | ||||
| : | 1103004 (view as bug list) | Environment: | ||
| Last Closed: | 2014-07-04 08:58:56 UTC | Type: | Bug | |
| Regression: | --- | Mount Type: | --- | |
| Documentation: | --- | CRM: | ||
| Verified Versions: | Category: | --- | ||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
| Cloudforms Team: | --- | Target Upstream Version: | ||
| Embargoed: | ||||
| Bug Depends On: | ||||
| Bug Blocks: | 1103004 | |||
Description of problem: ----------------------- glfs_open doesn't recognize the O_CREAT flag as the open system call and hence call to create new files with glfs_open() fails Version-Release number of selected component (if applicable): ------------------------------------------------------------- mainline How reproducible: ----------------- Always Steps to Reproduce: ------------------- 1. use glfs_open() with O_CREAT flag to create a new file and to open it Actual results: --------------- glfs_open() fails with error message, "No such file or directory" Expected results: ------------------ glfs_open() should create a file, if issued with O_CREAT flag Additional info: ----------------- Code snippet from the C program which uses libgfapi <snip> fd2 = glfs_open(fs1, file, O_WRONLY|O_SYNC|O_CREAT); if( fd2 == NULL ) { printf( "Error: %s\n",strerror(errno) ); close( fd1 ); } </snip>