orangefs-dev-proto.h 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. /*
  2. * (C) 2001 Clemson University and The University of Chicago
  3. *
  4. * See COPYING in top-level directory.
  5. */
  6. #ifndef _ORANGEFS_DEV_PROTO_H
  7. #define _ORANGEFS_DEV_PROTO_H
  8. /*
  9. * types and constants shared between user space and kernel space for
  10. * device interaction using a common protocol
  11. */
  12. /*
  13. * valid orangefs kernel operation types
  14. */
  15. #define ORANGEFS_VFS_OP_INVALID 0xFF000000
  16. #define ORANGEFS_VFS_OP_FILE_IO 0xFF000001
  17. #define ORANGEFS_VFS_OP_LOOKUP 0xFF000002
  18. #define ORANGEFS_VFS_OP_CREATE 0xFF000003
  19. #define ORANGEFS_VFS_OP_GETATTR 0xFF000004
  20. #define ORANGEFS_VFS_OP_REMOVE 0xFF000005
  21. #define ORANGEFS_VFS_OP_MKDIR 0xFF000006
  22. #define ORANGEFS_VFS_OP_READDIR 0xFF000007
  23. #define ORANGEFS_VFS_OP_SETATTR 0xFF000008
  24. #define ORANGEFS_VFS_OP_SYMLINK 0xFF000009
  25. #define ORANGEFS_VFS_OP_RENAME 0xFF00000A
  26. #define ORANGEFS_VFS_OP_STATFS 0xFF00000B
  27. #define ORANGEFS_VFS_OP_TRUNCATE 0xFF00000C
  28. #define ORANGEFS_VFS_OP_RA_FLUSH 0xFF00000D
  29. #define ORANGEFS_VFS_OP_FS_MOUNT 0xFF00000E
  30. #define ORANGEFS_VFS_OP_FS_UMOUNT 0xFF00000F
  31. #define ORANGEFS_VFS_OP_GETXATTR 0xFF000010
  32. #define ORANGEFS_VFS_OP_SETXATTR 0xFF000011
  33. #define ORANGEFS_VFS_OP_LISTXATTR 0xFF000012
  34. #define ORANGEFS_VFS_OP_REMOVEXATTR 0xFF000013
  35. #define ORANGEFS_VFS_OP_PARAM 0xFF000014
  36. #define ORANGEFS_VFS_OP_PERF_COUNT 0xFF000015
  37. #define ORANGEFS_VFS_OP_CANCEL 0xFF00EE00
  38. #define ORANGEFS_VFS_OP_FSYNC 0xFF00EE01
  39. #define ORANGEFS_VFS_OP_FSKEY 0xFF00EE02
  40. #define ORANGEFS_VFS_OP_READDIRPLUS 0xFF00EE03
  41. #define ORANGEFS_VFS_OP_FEATURES 0xFF00EE05 /* 2.9.6 */
  42. /* features is a 64-bit unsigned bitmask */
  43. #define ORANGEFS_FEATURE_READAHEAD 1
  44. /*
  45. * Misc constants. Please retain them as multiples of 8!
  46. * Otherwise 32-64 bit interactions will be messed up :)
  47. */
  48. #define ORANGEFS_MAX_DEBUG_STRING_LEN 0x00000800
  49. /*
  50. * The maximum number of directory entries in a single request is 96.
  51. * XXX: Why can this not be higher. The client-side code can handle up to 512.
  52. * XXX: What happens if we expect more than the client can return?
  53. */
  54. #define ORANGEFS_MAX_DIRENT_COUNT_READDIR 96
  55. #include "upcall.h"
  56. #include "downcall.h"
  57. #endif