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

📄 restore.h

📁 nandflash文件系统源代码
💻 H
字号:
/*! * $Id: restore.h 153 2008-09-17 19:08:16Z sriramsrao $  * * \file restore.h * \brief rebuild metatree from saved checkpoint * \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_RESTORE_H)#define KFS_RESTORE_H#include <fstream>#include <string>#include <deque>#include <map>#include "util.h"using std::ifstream;using std::string;using std::deque;using std::map;namespace KFS {/*! * \brief state for restoring from a checkpoint file */class Restorer {	ifstream file;			//!< the CP filepublic:	/* 	 * process the CP file.  also, if the # of replicas of a file is below	 * the specified value, bump up replication.  this allows us to change	 * the filesystem wide degree of replication in a simple manner.	 */	bool rebuild(string cpname, int16_t minNumReplicasPerFile = 1);	};extern bool restore_chunkVersionInc(deque <string> &c);}#endif // !defined(KFS_RESTORE_H)

⌨️ 快捷键说明

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