Sitelet https://github.com/fusepy/fusepy/pull/127
Skip to content

Pass flags to create in non raw_fi mode. - #127

Open
valentindavid wants to merge 1 commit into
fusepy:masterfrom
valentindavid:create_flags
Open

valentindavid wants to merge 1 commit into
fusepy:masterfrom
valentindavid:create_flags

Conversation

@valentindavid

Copy link
Copy Markdown

Calls to open with O_CREAT on a file system will end up with a call to
create on fuse. So it is possible to "create" with O_RDWR. Users need
to make the distinction between O_RDWR and O_WRONLY.

It is common to open with O_CREAT|O_RDWR before mmap'ing the new file.
If the filesystem does not allow reading of that file, it will cause a
bus error.

Calls to open with O_CREAT on a file system will end up with a call to
create on fuse. So it is possible to "create" with O_RDWR.  Users need
to make the distinction between O_RDWR and O_WRONLY.

It is common to open with O_CREAT|O_RDWR before mmap'ing the new file.
If the filesystem does not allow reading of that file, it will cause a
bus error.
@jjardon

jjardon commented Feb 20, 2019

Copy link
Copy Markdown

Any chance to apply this anytime soon?

@jjardon

jjardon commented Aug 5, 2019

Copy link
Copy Markdown

@terencehonles ping

mxmlnkn pushed a commit to mxmlnkn/mfusepy that referenced this pull request Sep 1, 2024
fusepy#127

Calls to open with O_CREAT on a file system will end up with a call to
create on FUSE. So it is possible to "create" with O_RDWR. Users need
to make the distinction between O_RDWR and O_WRONLY.

It is common to open with O_CREAT|O_RDWR before mmap'ing the new file.
If the filesystem does not allow reading of that file, it will cause a
bus error.
@mxmlnkn

mxmlnkn commented Jul 6, 2025

Copy link
Copy Markdown

Note that this change breaks all the examples that implement create because there is now one additional argument in non-raw-fi mode, which the examples do not implement.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants