提交 154603fe 编写于 作者: A Alan Somers 提交者: Miklos Szeredi

fuse: document fuse_fsync_in.fsync_flags

The FUSE_FSYNC_DATASYNC flag was introduced by commit b6aeaded
("[PATCH] FUSE - file operations") as a magic number.  No new values have
been added to fsync_flags since.
Signed-off-by: NAlan Somers <asomers@FreeBSD.org>
Signed-off-by: NMiklos Szeredi <mszeredi@redhat.com>
上级 bbd84f33
...@@ -464,7 +464,7 @@ int fuse_fsync_common(struct file *file, loff_t start, loff_t end, ...@@ -464,7 +464,7 @@ int fuse_fsync_common(struct file *file, loff_t start, loff_t end,
memset(&inarg, 0, sizeof(inarg)); memset(&inarg, 0, sizeof(inarg));
inarg.fh = ff->fh; inarg.fh = ff->fh;
inarg.fsync_flags = datasync ? 1 : 0; inarg.fsync_flags = datasync ? FUSE_FSYNC_FDATASYNC : 0;
args.in.h.opcode = opcode; args.in.h.opcode = opcode;
args.in.h.nodeid = get_node_id(inode); args.in.h.nodeid = get_node_id(inode);
args.in.numargs = 1; args.in.numargs = 1;
......
...@@ -360,6 +360,13 @@ struct fuse_file_lock { ...@@ -360,6 +360,13 @@ struct fuse_file_lock {
*/ */
#define FUSE_POLL_SCHEDULE_NOTIFY (1 << 0) #define FUSE_POLL_SCHEDULE_NOTIFY (1 << 0)
/**
* Fsync flags
*
* FUSE_FSYNC_FDATASYNC: Sync data only, not metadata
*/
#define FUSE_FSYNC_FDATASYNC (1 << 0)
enum fuse_opcode { enum fuse_opcode {
FUSE_LOOKUP = 1, FUSE_LOOKUP = 1,
FUSE_FORGET = 2, /* no reply */ FUSE_FORGET = 2, /* no reply */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册