statfs.h 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
  2. /*
  3. * S390 version
  4. *
  5. * Derived from "include/asm-i386/statfs.h"
  6. */
  7. #ifndef _S390_STATFS_H
  8. #define _S390_STATFS_H
  9. /*
  10. * We can't use <asm-generic/statfs.h> because in 64-bit mode
  11. * we mix ints of different sizes in our struct statfs.
  12. */
  13. #ifndef __KERNEL_STRICT_NAMES
  14. #include <linux/types.h>
  15. typedef __kernel_fsid_t fsid_t;
  16. #endif
  17. struct statfs {
  18. unsigned int f_type;
  19. unsigned int f_bsize;
  20. unsigned long f_blocks;
  21. unsigned long f_bfree;
  22. unsigned long f_bavail;
  23. unsigned long f_files;
  24. unsigned long f_ffree;
  25. __kernel_fsid_t f_fsid;
  26. unsigned int f_namelen;
  27. unsigned int f_frsize;
  28. unsigned int f_flags;
  29. unsigned int f_spare[4];
  30. };
  31. struct statfs64 {
  32. unsigned int f_type;
  33. unsigned int f_bsize;
  34. unsigned long long f_blocks;
  35. unsigned long long f_bfree;
  36. unsigned long long f_bavail;
  37. unsigned long long f_files;
  38. unsigned long long f_ffree;
  39. __kernel_fsid_t f_fsid;
  40. unsigned int f_namelen;
  41. unsigned int f_frsize;
  42. unsigned int f_flags;
  43. unsigned int f_spare[4];
  44. };
  45. #endif