gfs_pio_create() creates a new file in the
Gfarm file system whose name is the
string pointed to by gfarm_url with the access mode mode,
and returns a GFS_File structure to the address pointed to by
gfp. Mode specifies the file permissions to be created,
and is modified by the process's
The flags argument has the same meaning as the second argument of gfs_pio_open(), including the point such that exactly one of GFARM_FILE_RDONLY, GFARM_FILE_WRONLY, and GFARM_FILE_RDWR should be specified.
Note that GFARM_FILE_TRUNC must be explicitly specified by the flags argument if needed.
The function terminated successfully.
gfarm_url refers to a directory.
gfarm_url refers to a symbolic link.
gfarm_url refers to not a regular file.
A component used as a directory in gfarm_url is not, in fact, a directory.
The requested access to the file is not allowed, or one of the directories in gfarm_url did not allow search (execute) permission, or the file did not exist yet and write access to the parent directory is not allowed. Or, the authentication to the metadata server fails.
Insufficient memory was available.
flags is not valid.
gfarm_url does not include a metadata server.
gfarm_url does not include a port number of the metadata server.
The metadata server cannot be resolved.
The process opens too many files.
The system limit on the total number of open files has been reached.
Network is unrechable.
Connetion timeout occurs.
Protocol error occurs.
Connection to the metadata server is broken.
Specified authentication protocol is not supported.
User authentication failed when connecting to the metadata server.
An error except the above occurred. The reason is shown by gfarm_error_string(3).