Exam 14: File-System Implementation

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

Describe UNIX inode concept.

Free
(Essay)
4.9/5
(42)
Correct Answer:
Verified

File’s inode is a data structure in a UNIX file system that describes a file or a directory. Each inode stores the attributes and disk block location(s) of the object's data by keeping, say, 15 pointers of the index block. The first 12 of these pointers point to direct blocks; that is, they contain addresses of blocks that contain data of the file. Thus, the data for small files (of no more than 12 blocks) do not need a separate index block. If the block size is 4 KB, then up to 48 KB of data can be accessed directly. The next three pointers point to indirect blocks. The first points to a single indirect block, which is an index block containing not data but the addresses of blocks that do contain data. The second points to a double indirect block, which contains the address of a block that contains the addresses of blocks that contain pointers to the actual data blocks. The last pointer contains the address of a triple indirect block.

The following characteristics of disks make them convenient for being the secondary storage:

Free
(Multiple Choice)
4.7/5
(35)
Correct Answer:
Verified

C

When a boot control block may be empty?

Free
(Essay)
4.8/5
(45)
Correct Answer:
Verified

It could be empty if the disk does not contain an operating system.

What kind of in-memory information are used for file-system management?

(Essay)
4.8/5
(34)

Why is the whole block not available to a user when linked allocation is used?

(Essay)
4.9/5
(37)

Storage devices that do not allow overwrite (such as NVM devices) need only the free list for managing free space.

(True/False)
4.9/5
(30)

Sequential access can be optimized by

(Multiple Choice)
4.8/5
(36)

What is the size of the bit vector of a 1TB disk with 512-byte blocks?

(Multiple Choice)
4.7/5
(31)

The logical file system module includes the free-space manager.

(True/False)
4.9/5
(39)

Why should new allocation algorithms be developed for NVM (nonvolatile memory) devices?

(Essay)
4.9/5
(36)

The file allocation table (FAT) has one entry for each block and is indexed by block number.

(True/False)
4.8/5
(29)

The I/O control level consists of device drivers and interrupt handlers to transfer information between the main memory and the disk system

(True/False)
4.8/5
(36)

What is a role of fsck in UNIX?

(Essay)
4.7/5
(39)

In __________ write, the data are stored in the cache, and control returns to the caller.

(Multiple Choice)
4.9/5
(23)

The consistency check is always able to recover the structures, e.g., resulting in loss of files and entire directories.

(True/False)
4.9/5
(35)

Solaris ZFS file system never overwrites blocks with new data.

(True/False)
4.9/5
(28)

What are the main drawback of a linear list of directory entries?

(Essay)
4.8/5
(34)

For counting method (used by free space management), the entries in the free-space list can be stored in a linked list, rather than a balanced tree, for efficient lookup, insertion, and deletion.

(True/False)
4.9/5
(33)

The addresses of a given number of free blocks can be found faster using linked list rather than using grouping.

(True/False)
4.8/5
(43)

What happens when a process closes the file?

(Essay)
4.8/5
(42)
Showing 1 - 20 of 36
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)