Skip to content

Commit

Permalink
Support O_APPEND.
Browse files Browse the repository at this point in the history
Fixes: libfuse#76.
  • Loading branch information
Nikratio committed Aug 6, 2017
1 parent 95c65a6 commit 6ac4046
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions ChangeLog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ Unreleased Changes

* Truly disable the writeback cache, instead of just adjusting the
default and printing a warning when explicitly enabled.
* SSHFS now supports O_APPEND.

Release 3.1.0 (2017-08-04)
--------------------------
Expand Down
3 changes: 3 additions & 0 deletions sshfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -2518,6 +2518,9 @@ static int sshfs_open_common(const char *path, mode_t mode,
if (fi->flags & O_TRUNC)
pflags |= SSH_FXF_TRUNC;

if (fi->flags & O_APPEND)
pflags |= SSH_FXF_APPEND;

sf = g_new0(struct sshfs_file, 1);
list_init(&sf->write_reqs);
pthread_cond_init(&sf->write_finished, NULL);
Expand Down

0 comments on commit 6ac4046

Please sign in to comment.