C# Class VirtualFileSystem._SuperBlock

Show file Open project: SummerWish/vfs Class Usage Examples

Public Properties

Property Type Description
blockAllocated System.UInt32
blockCapacity System.UInt32
blockPreserved System.UInt32
blockSize System.UInt16
inodeAllocated System.UInt32
inodeCapacity System.UInt32
magicValue System.UInt16

Public Methods

Method Description
IsValid ( ) : System.Boolean

是否是一个有效的结构

_SuperBlock ( UInt32 inodeCapacity, UInt16 blockSize, UInt32 blockCapacity ) : System

初始化一个全新的 SuperBlock

Method Details

IsValid() public method

是否是一个有效的结构
public IsValid ( ) : System.Boolean
return System.Boolean

_SuperBlock() public method

初始化一个全新的 SuperBlock
public _SuperBlock ( UInt32 inodeCapacity, UInt16 blockSize, UInt32 blockCapacity ) : System
inodeCapacity System.UInt32
blockSize System.UInt16
blockCapacity System.UInt32
return System

Property Details

blockAllocated public property

已经实际分配了多少个数据块
public UInt32,System blockAllocated
return System.UInt32

blockCapacity public property

可以容纳多少个数据块
public UInt32,System blockCapacity
return System.UInt32

blockPreserved public property

已经预留了多少个数据块
public UInt32,System blockPreserved
return System.UInt32

blockSize public property

每个数据块大小
public UInt16,System blockSize
return System.UInt16

inodeAllocated public property

已经分配了多少个 inode
public UInt32,System inodeAllocated
return System.UInt32

inodeCapacity public property

可以容纳多少个 inode
public UInt32,System inodeCapacity
return System.UInt32

magicValue public property

有效标识符,必须为 0x1234 标识符放在最后,这样 SuperBlock 之前字段数量变更后就会要求重新格式化,避免潜在数据问题
public UInt16,System magicValue
return System.UInt16