statfs.h 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
  2. /*
  3. * This file is subject to the terms and conditions of the GNU General Public
  4. * License. See the file "COPYING" in the main directory of this archive
  5. * for more details.
  6. *
  7. * Copyright (C) 1995, 1999 by Ralf Baechle
  8. */
  9. #ifndef _ASM_STATFS_H
  10. #define _ASM_STATFS_H
  11. #include <linux/posix_types.h>
  12. #include <asm/sgidefs.h>
  13. #ifndef __KERNEL_STRICT_NAMES
  14. #include <linux/types.h>
  15. typedef __kernel_fsid_t fsid_t;
  16. #endif
  17. struct statfs {
  18. long f_type;
  19. #define f_fstyp f_type
  20. long f_bsize;
  21. long f_frsize; /* Fragment size - unsupported */
  22. long f_blocks;
  23. long f_bfree;
  24. long f_files;
  25. long f_ffree;
  26. long f_bavail;
  27. /* Linux specials */
  28. __kernel_fsid_t f_fsid;
  29. long f_namelen;
  30. long f_flags;
  31. long f_spare[5];
  32. };
  33. #if (_MIPS_SIM == _MIPS_SIM_ABI32) || (_MIPS_SIM == _MIPS_SIM_NABI32)
  34. /*
  35. * Unlike the traditional version the LFAPI version has none of the ABI junk
  36. */
  37. struct statfs64 {
  38. __u32 f_type;
  39. __u32 f_bsize;
  40. __u32 f_frsize; /* Fragment size - unsupported */
  41. __u32 __pad;
  42. __u64 f_blocks;
  43. __u64 f_bfree;
  44. __u64 f_files;
  45. __u64 f_ffree;
  46. __u64 f_bavail;
  47. __kernel_fsid_t f_fsid;
  48. __u32 f_namelen;
  49. __u32 f_flags;
  50. __u32 f_spare[5];
  51. };
  52. #endif /* _MIPS_SIM == _MIPS_SIM_ABI32 */
  53. #if _MIPS_SIM == _MIPS_SIM_ABI64
  54. struct statfs64 { /* Same as struct statfs */
  55. long f_type;
  56. long f_bsize;
  57. long f_frsize; /* Fragment size - unsupported */
  58. long f_blocks;
  59. long f_bfree;
  60. long f_files;
  61. long f_ffree;
  62. long f_bavail;
  63. /* Linux specials */
  64. __kernel_fsid_t f_fsid;
  65. long f_namelen;
  66. long f_flags;
  67. long f_spare[5];
  68. };
  69. struct compat_statfs64 {
  70. __u32 f_type;
  71. __u32 f_bsize;
  72. __u32 f_frsize; /* Fragment size - unsupported */
  73. __u32 __pad;
  74. __u64 f_blocks;
  75. __u64 f_bfree;
  76. __u64 f_files;
  77. __u64 f_ffree;
  78. __u64 f_bavail;
  79. __kernel_fsid_t f_fsid;
  80. __u32 f_namelen;
  81. __u32 f_flags;
  82. __u32 f_spare[5];
  83. };
  84. #endif /* _MIPS_SIM == _MIPS_SIM_ABI64 */
  85. #endif /* _ASM_STATFS_H */