mirror of
https://github.com/torvalds/linux.git
synced 2026-03-07 23:24:35 +01:00
Build the SMB2 maperror KUnit tests as `smb2maperror_test.ko`. Link: https://lore.kernel.org/linux-cifs/20260210081040.4156383-1-geert@linux-m68k.org/ Suggested-by: Geert Uytterhoeven <geert@linux-m68k.org> Acked-by: Paulo Alcantara (Red Hat) <pc@manguebit.org> Signed-off-by: ChenXiaoSong <chenxiaosong@kylinos.cn> Signed-off-by: Steve French <stfrench@microsoft.com>
61 lines
1.4 KiB
C
61 lines
1.4 KiB
C
/* SPDX-License-Identifier: LGPL-2.1 */
|
|
/*
|
|
*
|
|
* Definitions for various global variables and structures
|
|
*
|
|
* Copyright (C) International Business Machines Corp., 2002, 2011
|
|
* Etersoft, 2012
|
|
* Author(s): Steve French (sfrench@us.ibm.com)
|
|
* Jeremy Allison (jra@samba.org)
|
|
* Pavel Shilovsky (pshilovsky@samba.org) 2012
|
|
*
|
|
*/
|
|
#ifndef _SMB2_GLOB_H
|
|
#define _SMB2_GLOB_H
|
|
|
|
/*
|
|
*****************************************************************
|
|
* Constants go here
|
|
*****************************************************************
|
|
*/
|
|
|
|
/*
|
|
* Identifiers for functions that use the open, operation, close pattern
|
|
* in smb2inode.c:smb2_compound_op()
|
|
*/
|
|
enum smb2_compound_ops {
|
|
SMB2_OP_SET_DELETE = 1,
|
|
SMB2_OP_SET_INFO,
|
|
SMB2_OP_QUERY_INFO,
|
|
SMB2_OP_QUERY_DIR,
|
|
SMB2_OP_MKDIR,
|
|
SMB2_OP_RENAME,
|
|
SMB2_OP_HARDLINK,
|
|
SMB2_OP_SET_EOF,
|
|
SMB2_OP_UNLINK,
|
|
SMB2_OP_POSIX_QUERY_INFO,
|
|
SMB2_OP_SET_REPARSE,
|
|
SMB2_OP_GET_REPARSE,
|
|
SMB2_OP_QUERY_WSL_EA,
|
|
SMB2_OP_OPEN_QUERY,
|
|
};
|
|
|
|
/* Used when constructing chained read requests. */
|
|
#define CHAINED_REQUEST 1
|
|
#define START_OF_CHAIN 2
|
|
#define END_OF_CHAIN 4
|
|
#define RELATED_REQUEST 8
|
|
|
|
/*
|
|
*****************************************************************
|
|
* Struct definitions go here
|
|
*****************************************************************
|
|
*/
|
|
|
|
struct status_to_posix_error {
|
|
__u32 smb2_status;
|
|
int posix_error;
|
|
char *status_string;
|
|
};
|
|
|
|
#endif /* _SMB2_GLOB_H */
|