| 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 |
***************************************************************** |
| 18 |
* Constants go here |
| 19 |
***************************************************************** |
| 20 |
*/ |
| 21 |
|
| 22 |
/* |
| 23 |
* Identifiers for functions that use the open, operation, close pattern |
| 24 |
* in smb2inode.c:smb2_compound_op() |
| 25 |
*/ |
| 26 |
enum smb2_compound_ops { |
| 27 |
SMB2_OP_SET_DELETE = 1, |
| 28 |
SMB2_OP_SET_INFO, |
| 29 |
SMB2_OP_QUERY_INFO, |
| 30 |
SMB2_OP_QUERY_DIR, |
| 31 |
SMB2_OP_MKDIR, |
| 32 |
SMB2_OP_RENAME, |
| 33 |
SMB2_OP_HARDLINK, |
| 34 |
SMB2_OP_SET_EOF, |
| 35 |
SMB2_OP_UNLINK, |
| 36 |
SMB2_OP_POSIX_QUERY_INFO, |
| 37 |
SMB2_OP_SET_REPARSE, |
| 38 |
SMB2_OP_GET_REPARSE, |
| 39 |
SMB2_OP_QUERY_WSL_EA, |
| 40 |
SMB2_OP_OPEN_QUERY, |
| 41 |
}; |
| 42 |
|
| 43 |
/* Used when constructing chained read requests. */ |
| 44 |
#define CHAINED_REQUEST 1 |
| 45 |
#define START_OF_CHAIN 2 |
| 46 |
#define END_OF_CHAIN 4 |
| 47 |
#define RELATED_REQUEST 8 |
| 48 |
|
| 49 |
/* |
| 50 |
***************************************************************** |
| 51 |
* Struct definitions go here |
| 52 |
***************************************************************** |
| 53 |
*/ |
| 54 |
|
| 55 |
struct status_to_posix_error { |
| 56 |
__u32 smb2_status; |
| 57 |
int posix_error; |
| 58 |
char *status_string; |
| 59 |
}; |
| 60 |
|
| 61 |
#endif /* _SMB2_GLOB_H */ |