File System Implementation
- 79Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
79 questions
- 1A file system on a mass-storage device must provide users with access to data while organizing that data so it is easily accessible and_____.
Hint
Think about the user's ability to find stored information again.
Answer
rememberable
- 2The software component that physically accesses a disk by specifying locations such as a cylinder, track, and sector is the_____.
Hint
This component translates higher-level requests into device-specific operations.
Answer
device driver
- 3A logical block may consist of_____physical sectors, so retrieving one logical block can require multiple device-driver commands.
Hint
A logical block is larger than an individual sector.
Answer
multiple
- 4Storage sizes and block sizes are commonly chosen as_____of two so that different levels fit neatly together.
Hint
The phrase is commonly expressed as “___ of two.”
Answer
powers
- 5A hard-disk controller may include a memory area called a_____to hold data read from the disk temporarily.
Hint
It smooths the timing difference between the disk and the computer.
Answer
buffer
- 6The buffer in a disk controller prevents the entire system from having to stop and synchronize precisely with the disk's mechanical operations by temporarily holding_____.
Hint
The disk produces this information before the computer is ready to use it.
Answer
data
- 7The layers between applications and physical storage translate user-level file operations into device-specific_____operations.
Hint
These operations involve reading and writing storage locations.
Answer
access
- 8Using layered file-system design makes it easier to add a USB drive because only the USB-specific_____needs to differ.
Hint
The physical behavior of the new device is handled at one lower layer.
Answer
device driver
- 9A general-purpose operating system uses multiple storage layers because it must support many different_____.
Hint
Examples include hard disks, networks, DVD-ROMs, and USB drives.
Answer
devices
- 10The logical file system represents files using information such as the file name, creation date, and_____.
Hint
This attribute indicates how much data the file contains.
Answer
size
- 11A file's metadata is stored in a structure called the_____.
Hint
This structure contains information about an individual file.
Answer
file control block
- 12A file system may use different metadata formats on different devices because devices may support different logical file-system_____.
Hint
A CD or DVD may use a different format from a hard disk.
Answer
systems
- 13A file name is an example of metadata that is relatively_____across different file systems.
Hint
It is a feature that most file systems need to provide.
Answer
universal
- 14A boot control block contains information that allows an operating system to_____from a storage device.
Hint
It helps the computer begin operating-system initialization.
Answer
start up
- 15Information about a device's volumes includes the number of blocks, the starting position, the ending position, and which blocks are used or_____.
Hint
These blocks are available for storing new data.
Answer
free
- 16A storage device needs a_____structure to organize files instead of presenting them as one undifferentiated pool.
Hint
It groups and names files.
Answer
directory
- 17File-system metadata must be stored on the disk so that it persists after the computer is_____.
Hint
Consider what happens to volatile memory when power is removed.
Answer
turned off
- 18To speed up file access, operating systems commonly bring directory structures and file control blocks into_____.
Hint
This is faster to access than secondary storage.
Answer
memory
- 19If a directory is not cached in memory, opening a file may require one access to locate it in the directory and another access to retrieve the file, approximately_____the access time.
Hint
Two device accesses take about twice as long as one.
Answer
doubling
- 20When a file or directory is changed in memory, the updated structure must eventually be written back to_____storage.
Hint
This storage retains data when power is removed.
Answer
secondary
- 21Dividing a storage device into multiple logical sections is called creating_____.
Hint
Each section can contain its own logical file system.
Answer
partitions
- 22Connecting a partition to a location in the operating system's file-system hierarchy is called_____.
Hint
The term describes attaching a storage volume to the file system.
Answer
mounting
- 23In Unix, a disk containing binary program files might be mounted at_____.
Hint
This path is associated with binary executable programs.
Answer
/bin
- 24In Unix, user data may be stored on a separate disk mounted at_____.
Hint
The path begins with the abbreviation for user.
Answer
/usr
- 25The main partition containing the operating system is commonly called the_____partition.
Hint
It is the primary partition from which the operating system starts.
Answer
root
- 26Removing a USB device without notifying the operating system can cause data loss because cached directories, file control blocks, and data may not have been_____to the device.
Hint
Memory-resident changes must be persisted before removal.
Answer
written back
- 27A file-system consistency check verifies that directory entries and file control blocks point to the correct_____.
Hint
The check ensures that references lead to the intended stored content.
Answer
data
- 28If a consistency check detects problems, the operating system may perform a more detailed check rather than only a_____check.
Hint
The alternative is a thorough examination of the file system.
Answer
superficial
- 29A linear-list directory is simple to implement, but searching it takes time proportional to the_____of the list.
Hint
The more entries the list contains, the more entries may need to be examined.
Answer
length
- 30When a file is equally likely to appear anywhere in a linear directory list, the average search examines approximately_____of the list.
Hint
Sometimes the item is near the beginning and sometimes near the end.
Answer
half
- 31A hash table applies a mathematical_____to data to produce a number used for quick lookup.
Hint
The function transforms a file name or other key into a table location.
Answer
function
- 32For efficient lookup, the same input data should produce the same hash_____every time.
Hint
The result identifies a consistent table location.
Answer
number
- 33A hash-table problem that occurs when different data produces the same hash value is called a_____.
Hint
Two inputs have collided at the same table location.
Answer
collision
- 34Hash tables speed up directory access by computing a location instead of_____through every directory entry.
Hint
This is the operation required by a linear list.
Answer
searching
- 35In contiguous allocation, all blocks belonging to a file are stored together in one_____sequence.
Hint
The blocks are placed one after another on the device.
Answer
contiguous
- 36Contiguous allocation provides good performance because sequential file blocks can be read with fewer disk-head_____.
Hint
The disk head does not need to seek to scattered locations.
Answer
movements
- 37A major disadvantage of contiguous allocation is that a growing file may need to be_____if the space after it is occupied.
Hint
The file must be relocated to a sufficiently large free region.
Answer
moved
- 38Contiguous allocation can cause external_____when free space is divided into separate regions that are too small.
Hint
The disk may have enough total free space but not one large enough region.
Answer
fragmentation
- 39Rearranging scattered blocks into one large contiguous region is called_____.
Hint
This process collects separated free or used regions together.
Answer
compaction
- 40In the simple contiguous-allocation model, a file is identified by a starting block and its_____.
Hint
This indicates how many blocks the file occupies.
Answer
length
- 41In the example of simple contiguous allocation, each block contains_____bytes.
Hint
This is the stated block size in the example.
Answer
512
- 42An extent is a contiguous group of disk_____allocated to a file.
Hint
It is a contiguous allocation unit rather than a single arbitrary byte range.
Answer
blocks
- 43Extent-based allocation allows a file to grow by allocating an additional_____when the original extent is no longer sufficient.
Hint
The new region is another contiguous group of blocks.
Answer
extent
- 44Extents reduce wasted space compared with reserving a large fixed region because a file receives additional space as it_____.
Hint
The allocation adapts to the file's changing size.
Answer
grows
- 45In linked allocation, each file block contains or is associated with a pointer to the_____block.
Hint
The pointers form a chain through the file.
Answer
next
- 46Linked allocation avoids the need to reserve one large contiguous region, allowing blocks to be allocated as the file_____.
Hint
The file can receive blocks incrementally.
Answer
grows
- 47A file allocation table records a file's first_____and the links to subsequent blocks.
Hint
The operating system uses this starting location to begin following the chain.
Answer
block
- 48A linked file whose blocks are scattered across the disk may be slow to access because the disk head must move between_____locations.
Hint
The blocks are not necessarily adjacent.
Answer
different
- 49A defragmentation utility improves access to a linked file by placing its blocks into one large_____block.
Hint
The blocks are gathered together rather than left scattered.
Answer
contiguous
- 50A disadvantage of linked allocation is that losing a pointer in the chain can make the remaining part of the file_____.
Hint
Without the next address, the system cannot continue following the file.
Answer
inaccessible
- 51The file allocation table method cannot always determine whether the entire file has been retrieved because it records a starting block but not necessarily an_____block.
Hint
A separate indication of the final block would provide confirmation.
Answer
end
- 52Indexed allocation stores the locations of a file's data blocks in an_____block.
Hint
This block acts as a directory of data-block addresses.
Answer
index
- 53Indexed allocation can retrieve many file blocks more efficiently than linked allocation because the addresses can be obtained from the index block in_____.
Hint
The system does not need to read each data block merely to find the next address.
Answer
one access
- 54An index block may waste some space when the file uses only a small portion of the block's available pointer_____.
Hint
Unused entries remain available but contain no useful address.
Answer
space
- 55If one index block cannot contain pointers for the entire file, another index block can be used to store the next_____of block addresses.
Hint
The file is divided into manageable portions.
Answer
chunk
- 56In single-indirect allocation, an index points directly to the file's_____blocks.
Hint
These are the blocks containing the actual file contents.
Answer
data
- 57In double-indirect allocation, an index points to additional_____blocks, which then point to data blocks.
Hint
There are two levels of address lookup before reaching the contents.
Answer
index
- 58Triple-indirect allocation adds a third level of_____before the pointers reach the data blocks.
Hint
The address lookup passes through more layers than double-indirect allocation.
Answer
indexing
- 59A file system may combine direct, single-indirect, double-indirect, and triple-indirect references depending on file size and desired_____.
Hint
The choice affects access speed and storage overhead.
Answer
performance
- 60A bitmap represents free space with one_____for every logical block.
Hint
This is a binary representation with two possible states.
Answer
bit
- 61In the bitmap convention described, a value of one means that a block is_____.
Hint
The block can be assigned to a new file.
Answer
free
- 62A CPU instruction that finds the first one bit in a bitmap can identify a free block using computation instead of a_____access.
Hint
The alternative would be to inspect storage directly.
Answer
disk
- 63The bitmap method requires additional memory proportional to the number of_____on the disk.
Hint
There is one bitmap bit for each of these units.
Answer
blocks
- 64In the example given, a one-terabyte disk requires approximately_____megabytes of memory for its bitmap.
Hint
This is the stated memory cost for the example disk.
Answer
64
- 65A linked free-space list stores the location of the first_____block and links to additional free blocks.
Hint
The list tracks blocks available for allocation.
Answer
free
- 66When a block is allocated from a linked free-space list, the system must update the list so that it points to the next_____block.
Hint
The allocated block is no longer available.
Answer
free
- 67A grouped free-space method records a starting block and the number of free blocks in a contiguous_____.
Hint
The method summarizes several adjacent free blocks together.
Answer
group
- 68Grouping free blocks can improve allocation because it records not only where free space begins but also how_____the contiguous region is.
Hint
The number of blocks describes the region's size.
Answer
large
- 69For very large storage systems, free-space information may be divided into multiple regions called_____slabs.
Hint
The term combines a prefix meaning metadata with “slabs.”
Answer
meta
- 70Reading several adjacent blocks into a buffer in anticipation of future requests is called_____.
Hint
The system keeps likely-needed data ready in faster memory.
Answer
caching
- 71When a file system retrieves neighboring blocks before they are explicitly requested, it is using_____to anticipate sequential access.
Hint
The data is obtained in advance.
Answer
prefetching
- 72A disk buffer can improve performance by retrieving several likely-needed blocks rather than only_____requested block.
Hint
The strategy obtains neighboring blocks at the same time.
Answer
one
- 73Delaying writes and performing them together later is a form of_____writes.
Hint
The writes are grouped rather than issued individually.
Answer
bunched
- 74An operating system may delay writing file data while other_____operations are still being performed.
Hint
The lecture contrasts delayed writes with ongoing operations that retrieve data.
Answer
read
- 75For storage performance, an extra CPU_____is generally preferable to an extra disk access.
Hint
One of these operations is far faster than the other.
Answer
instruction
- 76Keeping an index block in memory can reduce the need for an additional_____access during file retrieval.
Hint
The index is normally stored on the storage device.
Answer
disk
- 77Contiguous file allocation generally offers faster sequential access than linked allocation because contiguous blocks reduce disk-head_____.
Hint
The head can continue reading adjacent locations.
Answer
movement
- 78The choice of file-allocation method affects performance because different methods require different numbers and patterns of disk_____.
Hint
These include reads and writes to storage.
Answer
accesses
- 79A file system may trade extra memory usage for faster storage access by keeping directories, indexes, or data in a_____.
Hint
This faster storage area holds recently used or likely-needed information.
Answer
cache

Ask anything
We've read this whole study set, so questions about it get the best answers.