Create and open a file
If the file does not exist, first create it with the specified mode, and then open it.
Open flags (with the exception of O_NOCTTY) are available in fi->flags.
Filesystem may store an arbitrary file handle (pointer, index, etc) in fi->fh, and use this in other all other file operations (read, write, flush, release, fsync).
There are also some flags (direct_io, keep_cache) which the filesystem may set in fi, to change the way the file is opened. See fuse_file_info structure in <fuse_common.h> for more details.
If this method is not implemented or under Linux kernel versions earlier than 2.6.15, the mknod() and open() methods will be called instead.
Introduced in version 2.5
Valid replies: fuse_reply_create fuse_reply_err
|req ||request handle |
|parent ||inode number of the parent directory |
|name ||to create |
|mode ||file type and mode with which to create the new file |
|fi ||file information |