1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
use bitflags;
// Flags use by the OPEN request/reply.
/// Bypass page cache for this open file.
const FOPEN_DIRECT_IO: u32 = 1;
/// Don't invalidate the data cache on open.
const FOPEN_KEEP_CACHE: u32 = 2;
/// The file is not seekable.
const FOPEN_NONSEEKABLE: u32 = 4;
/// allow caching this directory
const FOPEN_CACHE_DIR: u32 = 8;
/// the file is stream-like (no file position at all)
const FOPEN_STREAM: u32 = 16;
/// Instructs the kernel not to send an implicit FLUSH request when the last file handle is closed.
/// This delegates the responsibility of persisting data entirely to the FUSE daemon.
const FOPEN_NOFLUSH: u32 = 32;
/// Indicates that the filesystem can handle parallel direct writes to the same file from multiple threads.
/// The kernel will not serialize writes, so the FUSE daemon itself MUST implement locking
const FOPEN_PARALLEL_DIRECT_WRITES: u32 = 64;
/// Enables passthrough I/O. After open, subsequent I/O calls (read, write) will be sent
/// directly to the underlying file by the kernel, bypassing the FUSE daemon for maximum performance.
/// The daemon will not receive further I/O requests for this file handle.
const FOPEN_PASSTHROUGH: u32 = 128;
bitflags!