aboutsummaryrefslogtreecommitdiff
path: root/include/fuse_common.h
diff options
context:
space:
mode:
authorNikolaus Rath <Nikolaus@rath.org>2017-03-15 16:44:35 -0700
committerNikolaus Rath <Nikolaus@rath.org>2017-03-15 16:48:27 -0700
commitee0b29552ae92a6d991b02c778377fda6bfbfac5 (patch)
tree0f1dfb369b96c2f8be41f15cbc8e7858810fd999 /include/fuse_common.h
parent13df95268223a2757d0e9000d3ab10980541a814 (diff)
downloadlibfuse-ee0b29552ae92a6d991b02c778377fda6bfbfac5.tar.gz
open(): fix documentation of O_TRUNC flag
The FUSE_CAP_ATOMIC_IO_TRUNC capability is enabled by default, but we didn't update the open() documentation accordingly.
Diffstat (limited to 'include/fuse_common.h')
-rw-r--r--include/fuse_common.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/fuse_common.h b/include/fuse_common.h
index 7c2e86f..bb73d9f 100644
--- a/include/fuse_common.h
+++ b/include/fuse_common.h
@@ -106,7 +106,9 @@ struct fuse_file_info {
#define FUSE_CAP_POSIX_LOCKS (1 << 1)
/**
- * Indicates that the filesystem supports the O_TRUNC open flag
+ * Indicates that the filesystem supports the O_TRUNC open flag. If
+ * disabled, and an application specifies O_TRUNC, fuse first calls
+ * truncate() and then open() with O_TRUNC filtered out.
*
* This feature is enabled by default when supported by the kernel.
*/