mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
add f_flags to struct statfs(64)
Add a flags field to help glibc implementing statvfs(3) efficiently. We copy the flag values from glibc, and add a new ST_VALID flag to denote that f_flags is implemented. Signed-off-by: Christoph Hellwig <[email protected]> Signed-off-by: Al Viro <[email protected]>
This commit is contained in:
parent
ebabe9a900
commit
365b181897
5 changed files with 89 additions and 13 deletions
|
|
@ -33,7 +33,8 @@ struct statfs {
|
|||
__kernel_fsid_t f_fsid;
|
||||
int f_namelen;
|
||||
int f_frsize;
|
||||
int f_spare[5];
|
||||
int f_flags;
|
||||
int f_spare[4];
|
||||
};
|
||||
|
||||
struct statfs64 {
|
||||
|
|
@ -47,7 +48,8 @@ struct statfs64 {
|
|||
__kernel_fsid_t f_fsid;
|
||||
int f_namelen;
|
||||
int f_frsize;
|
||||
int f_spare[5];
|
||||
int f_flags;
|
||||
int f_spare[4];
|
||||
};
|
||||
|
||||
struct compat_statfs64 {
|
||||
|
|
@ -61,7 +63,8 @@ struct compat_statfs64 {
|
|||
__kernel_fsid_t f_fsid;
|
||||
__u32 f_namelen;
|
||||
__u32 f_frsize;
|
||||
__u32 f_spare[5];
|
||||
__u32 f_flags;
|
||||
__u32 f_spare[4];
|
||||
};
|
||||
|
||||
#endif /* __s390x__ */
|
||||
|
|
|
|||
Loading…
Reference in a new issue