1
2 #ifndef _LINUX_STATFS_H
3 #define _LINUX_STATFS_H
4
5 #include <linux/types.h>
6 #include <asm/statfs.h>
7
8 struct kstatfs {
9 long f_type;
10 long f_bsize;
11 u64 f_blocks;
12 u64 f_bfree;
13 u64 f_bavail;
14 u64 f_files;
15 u64 f_ffree;
16 __kernel_fsid_t f_fsid;
17 long f_namelen;
18 long f_frsize;
19 long f_flags;
20 long f_spare[4];
21 };
22
23
24
25
26
27
28
29
30 #define ST_RDONLY 0x0001
31 #define ST_NOSUID 0x0002
32 #define ST_NODEV 0x0004
33 #define ST_NOEXEC 0x0008
34 #define ST_SYNCHRONOUS 0x0010
35 #define ST_VALID 0x0020
36 #define ST_MANDLOCK 0x0040
37
38
39
40 #define ST_NOATIME 0x0400
41 #define ST_NODIRATIME 0x0800
42 #define ST_RELATIME 0x1000
43
44 struct dentry;
45 extern int vfs_get_fsid(struct dentry *dentry, __kernel_fsid_t *fsid);
46
47 #endif