/// <summary> /// Mounts the given device. /// </summary> public static BobFs Mount(BlockSource device) { BobFs fs = new BobFs(device); fs.CheckHeader(); return(fs); }
/// <summary> /// Creates a new file system in the given device /// </summary> public static BobFs Mkfs(BlockSource device) { BobFs fs = new BobFs(device); fs.Format(); return(fs); }
internal BobFsNode(BobFs bobFs, uint inum) { _bobFs = bobFs; Inum = inum; _tmpBuffer = new byte[BobFs.BlockSize]; _node = new Inode(); _indirect = new Indirects(); _nodeValid = _indirectValid = false; }