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

📄 kfstypes.h

📁 nandflash文件系统源代码
💻 H
字号:
/*! * $Id: kfstypes.h 71 2008-07-07 15:49:14Z sriramsrao $  * * \file kfstypes.h * \brief simple typedefs and enums for the KFS metadata server * \author Blake Lewis (Kosmix Corp.) * * Copyright 2008 Quantcast Corp. * Copyright 2006-2008 Kosmix Corp. * * This file is part of Kosmos File System (KFS). * * Licensed under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or * implied. See the License for the specific language governing * permissions and limitations under the License. * */#if !defined(KFS_TYPES_H)#define KFS_TYPES_H#include <cerrno>#include <cassert>#include "common/kfstypes.h"namespace KFS {/*! * \brief KFS metadata types. */enum MetaType {	KFS_UNINIT,		//!< uninitialized	KFS_INTERNAL,		//!< internal node	KFS_FATTR,		//!< file attributes	KFS_DENTRY,		//!< directory entry	KFS_CHUNKINFO,		//!< chunk information	KFS_SENTINEL = 99999	//!< internal use, must be largest};/*! * \brief KFS file types */enum FileType {	KFS_NONE,		//!< uninitialized	KFS_FILE,		//!< plain file	KFS_DIR			//!< directory};/*! * \brief KFS lease types */enum LeaseType {	READ_LEASE,	WRITE_LEASE};}#endif // !defined(KFS_TYPES_H)

⌨️ 快捷键说明

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