mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -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 {
|
|||
/* Linux specials */
|
||||
__kernel_fsid_t f_fsid;
|
||||
long f_namelen;
|
||||
long f_spare[6];
|
||||
long f_flags;
|
||||
long f_spare[5];
|
||||
};
|
||||
|
||||
#if (_MIPS_SIM == _MIPS_SIM_ABI32) || (_MIPS_SIM == _MIPS_SIM_NABI32)
|
||||
|
|
@ -53,7 +54,8 @@ struct statfs64 {
|
|||
__u64 f_bavail;
|
||||
__kernel_fsid_t f_fsid;
|
||||
__u32 f_namelen;
|
||||
__u32 f_spare[6];
|
||||
__u32 f_flags;
|
||||
__u32 f_spare[5];
|
||||
};
|
||||
|
||||
#endif /* _MIPS_SIM == _MIPS_SIM_ABI32 */
|
||||
|
|
@ -73,7 +75,8 @@ struct statfs64 { /* Same as struct statfs */
|
|||
/* Linux specials */
|
||||
__kernel_fsid_t f_fsid;
|
||||
long f_namelen;
|
||||
long f_spare[6];
|
||||
long f_flags;
|
||||
long f_spare[5];
|
||||
};
|
||||
|
||||
struct compat_statfs64 {
|
||||
|
|
@ -88,7 +91,8 @@ struct compat_statfs64 {
|
|||
__u64 f_bavail;
|
||||
__kernel_fsid_t f_fsid;
|
||||
__u32 f_namelen;
|
||||
__u32 f_spare[6];
|
||||
__u32 f_flags;
|
||||
__u32 f_spare[5];
|
||||
};
|
||||
|
||||
#endif /* _MIPS_SIM == _MIPS_SIM_ABI64 */
|
||||
|
|
|
|||
Loading…
Reference in a new issue