예제 #1
0
        /// <summary>
        /// Mounts the given device.
        /// </summary>
        public static BobFs Mount(BlockSource device)
        {
            BobFs fs = new BobFs(device);

            fs.CheckHeader();
            return(fs);
        }
예제 #2
0
        /// <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);
        }
예제 #3
0
        internal BobFsNode(BobFs bobFs, uint inum)
        {
            _bobFs = bobFs;
            Inum   = inum;

            _tmpBuffer = new byte[BobFs.BlockSize];
            _node      = new Inode();
            _indirect  = new Indirects();

            _nodeValid = _indirectValid = false;
        }