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

📄 ffs2_fs_sb.h

📁 mtd最新cvs的ffs系统
💻 H
字号:
// -*- mode: cpp; mode: fold -*-// Description                                                          /*{{{*/// $Id: ffs2_fs_sb.h,v 1.1 2000/03/27 07:14:15 dwmw2 Exp $/* ######################################################################   Microsoft Flash File System 2         The super block stores some misc information that is occasionally    needed when reading/writing the FS.      ##################################################################### */									/*}}} */#ifndef __LINUX_FFS2FS_FS_SB_H#define __LINUX_FFS2FS_FS_SB_H#include "ffs2_fs.h"enum ffs2_block_state {ffs2_ready, ffs2_erased, ffs2_ecount, ffs2_spare,                       ffs2_reclaim, ffs2_retired};struct ffs2_free_space{   unsigned long Start;   unsigned long Stop;};// Stored information about each blockstruct ffs2_sb_block{   unsigned long FreeSpace;   unsigned long ReclaimableSpace;   unsigned long LargestSpace;   struct ffs2_free_space *FreeList;      enum ffs2_block_state Sate;   unsigned short VirtualBlock;};// Superblock in-core datastruct ffs2_sb_info{   unsigned long EraseSize;      // The block size in bytes   unsigned long ZeroBlock;      /* The first flash block in the file system                                     (hack to advoid needing paritions sometimes) */   struct ffs2_bootrecord Boot;   unsigned short *BlockMap;     // Mapping of virtual blocks to real blocks   struct ffs2_sb_block *Blocks; // boot.TotalBlocks long array};#endif

⌨️ 快捷键说明

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