Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 116288
b: refs/heads/master
c: a7c1b99
h: refs/heads/master
v: v3
  • Loading branch information
Tejun Heo authored and Miklos Szeredi committed Oct 16, 2008
1 parent ce40a85 commit 06dda8c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 29d434b39c807320fbe4bcdce0ab98a0b9fcb285
refs/heads/master: a7c1b990f71574e077b94ce4582e2cf11cb891fe
2 changes: 2 additions & 0 deletions trunk/fs/fuse/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ void fuse_finish_open(struct inode *inode, struct file *file,
file->f_op = &fuse_direct_io_file_operations;
if (!(outarg->open_flags & FOPEN_KEEP_CACHE))
invalidate_inode_pages2(inode->i_mapping);
if (outarg->open_flags & FOPEN_NONSEEKABLE)
nonseekable_open(inode, file);
ff->fh = outarg->fh;
file->private_data = fuse_file_get(ff);
}
Expand Down
7 changes: 6 additions & 1 deletion trunk/include/linux/fuse.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
* - add lock_owner field to fuse_setattr_in, fuse_read_in and fuse_write_in
* - add blksize field to fuse_attr
* - add file flags field to fuse_read_in and fuse_write_in
*
* 7.10
* - add nonseekable open flag
*/

#ifndef _LINUX_FUSE_H
Expand All @@ -29,7 +32,7 @@
#define FUSE_KERNEL_VERSION 7

/** Minor version number of this interface */
#define FUSE_KERNEL_MINOR_VERSION 9
#define FUSE_KERNEL_MINOR_VERSION 10

/** The node ID of the root inode */
#define FUSE_ROOT_ID 1
Expand Down Expand Up @@ -101,9 +104,11 @@ struct fuse_file_lock {
*
* FOPEN_DIRECT_IO: bypass page cache for this open file
* FOPEN_KEEP_CACHE: don't invalidate the data cache on open
* FOPEN_NONSEEKABLE: the file is not seekable
*/
#define FOPEN_DIRECT_IO (1 << 0)
#define FOPEN_KEEP_CACHE (1 << 1)
#define FOPEN_NONSEEKABLE (1 << 2)

/**
* INIT request/reply flags
Expand Down

0 comments on commit 06dda8c

Please sign in to comment.