Semua buku

Profesional

Aplikasi Tentang Pelatih Masuk Mulai membaca

Computer Science · Glosarium

Apa itu Superblock, block bitmap, inode table, direct and indirect blocks, directory entry?

Dikenal juga sebagai: superblock · block bitmap · inode table · direct block · indirect block · directory entry

Definition 12.4 University Computer Science — Year 3 · Bab 12 — Storage Devices and File Systems

The superblock describes the file system: its size and where its other structures lie. The block bitmap has one bit per block, set when the block is in use, and an inode bitmap does the same for inodes. The inode table holds the inodes, at fixed places, so that an inode number gives its position. An inode’s direct blocks are the blocks whose numbers it holds itself; an indirect block is a block that holds block numbers, reached from the inode. A directory entry pairs a name with an inode number; a directory is a file whose data are its entries.

The 1,024 blocks of a minifs image, by block number, from the first lines of  (not to scale). Block 1 is the inode bitmap, block 2 the block bitmap.
The 1,024 blocks of a minifs image, by block number, from the first lines of Output 12.3 (not to scale). Block 1 is the inode bitmap, block 2 the block bitmap.
A minifs inode, with the block numbers of big.dat in , whose indirect block is 57. Small files need only the inode; a larger file costs one more block, of pointers, and one more read for each of its blocks beyond the tenth. ext2’s inode has 12 direct pointers and one single, one double and one triple indirect pointer, each level a tree one deeper.
A minifs inode, with the block numbers of big.dat in Output 12.3, whose indirect block is 57. Small files need only the inode; a larger file costs one more block, of pointers, and one more read for each of its blocks beyond the tenth. ext2’s inode has 12 direct pointers and one single, one double and one triple indirect pointer, each level a tree one deeper.
Baca dalam konteks →