/// <summary> /// 创建一个全新的 SuperBlock /// </summary> /// <param name="vfs"></param> /// <param name="inodeCapacity"></param> /// <param name="blockSize"></param> /// <param name="blockCapacity"></param> /// <returns></returns> public static SuperBlock Create(VFSCore vfs, UInt32 inodeCapacity, UInt16 blockSize, UInt32 blockCapacity) { var _superBlock = new _SuperBlock(inodeCapacity, blockSize, blockCapacity); var superBlock = new SuperBlock(vfs, _superBlock); superBlock.Save(); return(superBlock); }
public SuperBlock(VFSCore vfs, _SuperBlock data) { this.vfs = vfs; this.data = data; if (data.IsValid()) { init(); } }
/// <summary> /// 创建一个全新的 SuperBlock /// </summary> /// <param name="vfs"></param> /// <param name="inodeCapacity"></param> /// <param name="blockSize"></param> /// <param name="blockCapacity"></param> /// <returns></returns> public static SuperBlock Create(VFSCore vfs, UInt32 inodeCapacity, UInt16 blockSize, UInt32 blockCapacity) { var _superBlock = new _SuperBlock(inodeCapacity, blockSize, blockCapacity); var superBlock = new SuperBlock(vfs, _superBlock); superBlock.Save(); return superBlock; }