1 /* 2 * Copyright (C) 2015-2017 Alibaba Group Holding Limited 3 */ 4 5 #ifndef VFS_CONF_H 6 #define VFS_CONF_H 7 8 #ifndef VFS_CONFIG_DEVICE_NODES 9 #define VFS_DEVICE_NODES 25 10 #else 11 #define VFS_DEVICE_NODES VFS_CONFIG_DEVICE_NODES 12 #endif 13 14 #ifndef VFS_CONFIG_FD_OFFSET 15 #define VFS_FD_OFFSET 48 16 #else 17 #define VFS_FD_OFFSET VFS_CONFIG_FD_OFFSET 18 #endif 19 20 #ifndef VFS_CONFIG_PATH_MAX 21 #define VFS_PATH_MAX 256 22 #else 23 #define VFS_PATH_MAX VFS_CONFIG_PATH_MAX 24 #endif 25 26 #ifndef VFS_CONFIG_MAX_FILE_NUM 27 #define VFS_MAX_FILE_NUM (VFS_DEVICE_NODES * 2) 28 #else 29 #define VFS_MAX_FILE_NUM VFS_CONFIG_MAX_FILE_NUM 30 #endif 31 32 #ifndef VFS_CONFIG_STAT_INCLUDE_SIZE 33 #define VFS_STAT_INCLUDE_SIZE 1 34 #else 35 #define VFS_STAT_INCLUDE_SIZE VFS_CONFIG_STAT_INCLUDE_SIZE 36 #endif 37 38 #ifndef VFS_CONFIG_CURRENT_DIRECTORY_ENABLE 39 #define CURRENT_WORKING_DIRECTORY_ENABLE 0 40 #else 41 #define CURRENT_WORKING_DIRECTORY_ENABLE VFS_CONFIG_CURRENT_DIRECTORY_ENABLE 42 #endif 43 44 #endif /* VFS_CONF_H */ 45 46