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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
use Duration;
use ;
/// Placeholder TTL for default entries.
/// Callers (Dicfuse::get_stat / get_stat_fast / readdirplus) always override
/// this with the mount-appropriate value via `Dicfuse::reply_ttl()`.
const DEFAULT_ENTRY_TTL: Duration = ZERO;
// pub struct stat64 {
// pub st_dev: ::dev_t, // Device ID of the device containing the file
// pub st_ino: ::ino64_t, // Inode number of the file
// pub st_nlink: ::nlink_t, // Number of hard links to the file
// pub st_mode: ::mode_t, // File type and mode (permissions)
// pub st_uid: ::uid_t, // User ID of the file's owner
// pub st_gid: ::gid_t, // Group ID of the file's owner
// __pad0: ::c_int, // Padding for alignment (not used)
// pub st_rdev: ::dev_t, // Device ID (if the file is a special file)
// pub st_size: ::off_t, // Total size of the file in bytes
// pub st_blksize: ::blksize_t, // Block size for filesystem I/O
// pub st_blocks: ::blkcnt64_t, // Number of blocks allocated for the file
// pub st_atime: ::time_t, // Time of last access
// pub st_atime_nsec: i64, // Nanoseconds of last access time
// pub st_mtime: ::time_t, // Time of last modification
// pub st_mtime_nsec: i64, // Nanoseconds of last modification time
// pub st_ctime: ::time_t, // Time of last status change
// pub st_ctime_nsec: i64, // Nanoseconds of last status change time
// __reserved: [i64; 3], // Reserved for future use (not used)
// }