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>