Exemplo n.º 1
0
        /// <summary>
        /// Mounts the given device.
        /// </summary>
        public static BobFs Mount(BlockSource device)
        {
            BobFs fs = new BobFs(device);

            fs.CheckHeader();
            return(fs);
        }
Exemplo n.º 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);
        }
Exemplo n.º 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;
        }