smb2glob.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /* SPDX-License-Identifier: LGPL-2.1 */
  2. /*
  3. *
  4. * Definitions for various global variables and structures
  5. *
  6. * Copyright (C) International Business Machines Corp., 2002, 2011
  7. * Etersoft, 2012
  8. * Author(s): Steve French ([email protected])
  9. * Jeremy Allison ([email protected])
  10. * Pavel Shilovsky ([email protected]) 2012
  11. *
  12. */
  13. #ifndef _SMB2_GLOB_H
  14. #define _SMB2_GLOB_H
  15. /*
  16. *****************************************************************
  17. * Constants go here
  18. *****************************************************************
  19. */
  20. /*
  21. * Identifiers for functions that use the open, operation, close pattern
  22. * in smb2inode.c:smb2_compound_op()
  23. */
  24. #define SMB2_OP_SET_DELETE 1
  25. #define SMB2_OP_SET_INFO 2
  26. #define SMB2_OP_QUERY_INFO 3
  27. #define SMB2_OP_QUERY_DIR 4
  28. #define SMB2_OP_MKDIR 5
  29. #define SMB2_OP_RENAME 6
  30. #define SMB2_OP_DELETE 7
  31. #define SMB2_OP_HARDLINK 8
  32. #define SMB2_OP_SET_EOF 9
  33. #define SMB2_OP_RMDIR 10
  34. #define SMB2_OP_POSIX_QUERY_INFO 11
  35. /* Used when constructing chained read requests. */
  36. #define CHAINED_REQUEST 1
  37. #define START_OF_CHAIN 2
  38. #define END_OF_CHAIN 4
  39. #define RELATED_REQUEST 8
  40. #endif /* _SMB2_GLOB_H */