⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 storage_func.h

📁 文件系统源代码!!!!! 文件系统源代码
💻 H
字号:
/*** Copyright (C) 2008 Happy Fish / YuQing** FastDFS may be copied only under the terms of the GNU General* Public License V3, which may be found in the FastDFS source kit.* Please visit the FastDFS Home Page http://www.csource.org/ for more detail.**///storage_func.h#ifndef _STORAGE_FUNC_H_#define _STORAGE_FUNC_H_#define STORAGE_DATA_DIR_FORMAT		"%02X"#define STORAGE_META_FILE_EXT		"-m"#define STORAGE_STORE_PATH_PREFIX_CHAR	'M'#ifdef __cplusplusextern "C" {#endiftypedef char * (*get_filename_func)(const void *pArg, \			char *full_filename);int storage_write_to_fd(int fd, get_filename_func filename_func, \		const void *pArg, const char *buff, const int len);int storage_func_init(const char *filename, \		char *bind_addr, const int addr_size);int storage_func_destroy();int storage_write_to_stat_file();int storage_write_to_sync_ini_file();int storage_split_filename(const char *logic_filename, \		int *filename_len, \		char *true_filename, char **ppStorePath);/*int write_serialized(int fd, const char *buff, size_t count, const bool bSync);int fsync_serialized(int fd);int recv_file_serialized(int sock, const char *filename, \		const int64_t file_bytes);*/#ifdef __cplusplus}#endif#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -