statfs.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. #ifndef _PPC64_STATFS_H
  2. #define _PPC64_STATFS_H
  3. /*
  4. * This program is free software; you can redistribute it and/or
  5. * modify it under the terms of the GNU General Public License
  6. * as published by the Free Software Foundation; either version
  7. * 2 of the License, or (at your option) any later version.
  8. */
  9. #ifndef __KERNEL_STRICT_NAMES
  10. #include <linux/types.h>
  11. typedef __kernel_fsid_t fsid_t;
  12. #endif
  13. /*
  14. * We're already 64-bit, so duplicate the definition
  15. */
  16. struct statfs {
  17. long f_type;
  18. long f_bsize;
  19. long f_blocks;
  20. long f_bfree;
  21. long f_bavail;
  22. long f_files;
  23. long f_ffree;
  24. __kernel_fsid_t f_fsid;
  25. long f_namelen;
  26. long f_frsize;
  27. long f_spare[5];
  28. };
  29. struct statfs64 {
  30. long f_type;
  31. long f_bsize;
  32. long f_blocks;
  33. long f_bfree;
  34. long f_bavail;
  35. long f_files;
  36. long f_ffree;
  37. __kernel_fsid_t f_fsid;
  38. long f_namelen;
  39. long f_frsize;
  40. long f_spare[5];
  41. };
  42. struct compat_statfs64 {
  43. __u32 f_type;
  44. __u32 f_bsize;
  45. __u64 f_blocks;
  46. __u64 f_bfree;
  47. __u64 f_bavail;
  48. __u64 f_files;
  49. __u64 f_ffree;
  50. __kernel_fsid_t f_fsid;
  51. __u32 f_namelen;
  52. __u32 f_frsize;
  53. __u32 f_spare[5];
  54. };
  55. #endif /* _PPC64_STATFS_H */