Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 /*
0003  * (C) 2001 Clemson University and The University of Chicago
0004  *
0005  * See COPYING in top-level directory.
0006  */
0007 
0008 #ifndef _ORANGEFS_DEV_PROTO_H
0009 #define _ORANGEFS_DEV_PROTO_H
0010 
0011 /*
0012  * types and constants shared between user space and kernel space for
0013  * device interaction using a common protocol
0014  */
0015 
0016 /*
0017  * valid orangefs kernel operation types
0018  */
0019 #define ORANGEFS_VFS_OP_INVALID           0xFF000000
0020 #define ORANGEFS_VFS_OP_FILE_IO        0xFF000001
0021 #define ORANGEFS_VFS_OP_LOOKUP         0xFF000002
0022 #define ORANGEFS_VFS_OP_CREATE         0xFF000003
0023 #define ORANGEFS_VFS_OP_GETATTR        0xFF000004
0024 #define ORANGEFS_VFS_OP_REMOVE         0xFF000005
0025 #define ORANGEFS_VFS_OP_MKDIR          0xFF000006
0026 #define ORANGEFS_VFS_OP_READDIR        0xFF000007
0027 #define ORANGEFS_VFS_OP_SETATTR        0xFF000008
0028 #define ORANGEFS_VFS_OP_SYMLINK        0xFF000009
0029 #define ORANGEFS_VFS_OP_RENAME         0xFF00000A
0030 #define ORANGEFS_VFS_OP_STATFS         0xFF00000B
0031 #define ORANGEFS_VFS_OP_TRUNCATE       0xFF00000C
0032 #define ORANGEFS_VFS_OP_RA_FLUSH       0xFF00000D
0033 #define ORANGEFS_VFS_OP_FS_MOUNT       0xFF00000E
0034 #define ORANGEFS_VFS_OP_FS_UMOUNT      0xFF00000F
0035 #define ORANGEFS_VFS_OP_GETXATTR       0xFF000010
0036 #define ORANGEFS_VFS_OP_SETXATTR          0xFF000011
0037 #define ORANGEFS_VFS_OP_LISTXATTR         0xFF000012
0038 #define ORANGEFS_VFS_OP_REMOVEXATTR       0xFF000013
0039 #define ORANGEFS_VFS_OP_PARAM          0xFF000014
0040 #define ORANGEFS_VFS_OP_PERF_COUNT     0xFF000015
0041 #define ORANGEFS_VFS_OP_CANCEL            0xFF00EE00
0042 #define ORANGEFS_VFS_OP_FSYNC          0xFF00EE01
0043 #define ORANGEFS_VFS_OP_FSKEY             0xFF00EE02
0044 #define ORANGEFS_VFS_OP_READDIRPLUS       0xFF00EE03
0045 #define ORANGEFS_VFS_OP_FEATURES    0xFF00EE05 /* 2.9.6 */
0046 
0047 /* features is a 64-bit unsigned bitmask */
0048 #define ORANGEFS_FEATURE_READAHEAD 1
0049 
0050 /*
0051  * Misc constants. Please retain them as multiples of 8!
0052  * Otherwise 32-64 bit interactions will be messed up :)
0053  */
0054 #define ORANGEFS_MAX_DEBUG_STRING_LEN   0x00000800
0055 
0056 #define ORANGEFS_MAX_DIRENT_COUNT_READDIR 512
0057 
0058 #include "upcall.h"
0059 #include "downcall.h"
0060 
0061 #endif