orangefs-dev-proto.h 2.1 KB

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