1. Home
  2. Explore
  3. Computer Science
  4. File System Implementation

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

File System Implementation

  • 79Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Storage Layers
A file system on a mass-storage device must provide users with access to data while organizing that data so it is easily accessible and
.

79 questions

  1. 1
    A 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

  2. 2
    The 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

  3. 3
    A 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

  4. 4
    Storage 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

  5. 5
    A 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

  6. 6
    The 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

  7. 7
    The 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

  8. 8
    Using 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

  9. 9
    A 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

  10. 10
    The 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

  11. 11
    A file's metadata is stored in a structure called the
    _____
    .
    Hint

    This structure contains information about an individual file.

    Answer

    file control block

  12. 12
    A 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

  13. 13
    A 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

  14. 14
    A 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

  15. 15
    Information 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

  16. 16
    A storage device needs a
    _____
    structure to organize files instead of presenting them as one undifferentiated pool.
    Hint

    It groups and names files.

    Answer

    directory

  17. 17
    File-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

  18. 18
    To 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

  19. 19
    If 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

  20. 20
    When 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

  21. 21
    Dividing a storage device into multiple logical sections is called creating
    _____
    .
    Hint

    Each section can contain its own logical file system.

    Answer

    partitions

  22. 22
    Connecting 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

  23. 23
    In Unix, a disk containing binary program files might be mounted at
    _____
    .
    Hint

    This path is associated with binary executable programs.

    Answer

    /bin

  24. 24
    In Unix, user data may be stored on a separate disk mounted at
    _____
    .
    Hint

    The path begins with the abbreviation for user.

    Answer

    /usr

  25. 25
    The 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

  26. 26
    Removing 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

  27. 27
    A 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

  28. 28
    If 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

  29. 29
    A 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

  30. 30
    When 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

  31. 31
    A 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

  32. 32
    For efficient lookup, the same input data should produce the same hash
    _____
    every time.
    Hint

    The result identifies a consistent table location.

    Answer

    number

  33. 33
    A 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

  34. 34
    Hash 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

  35. 35
    In 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

  36. 36
    Contiguous 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

  37. 37
    A 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

  38. 38
    Contiguous 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

  39. 39
    Rearranging scattered blocks into one large contiguous region is called
    _____
    .
    Hint

    This process collects separated free or used regions together.

    Answer

    compaction

  40. 40
    In 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

  41. 41
    In the example of simple contiguous allocation, each block contains
    _____
    bytes.
    Hint

    This is the stated block size in the example.

    Answer

    512

  42. 42
    An 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

  43. 43
    Extent-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

  44. 44
    Extents 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

  45. 45
    In 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

  46. 46
    Linked 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

  47. 47
    A 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

  48. 48
    A 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

  49. 49
    A 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

  50. 50
    A 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

  51. 51
    The 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

  52. 52
    Indexed 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

  53. 53
    Indexed 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

  54. 54
    An 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

  55. 55
    If 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

  56. 56
    In single-indirect allocation, an index points directly to the file's
    _____
    blocks.
    Hint

    These are the blocks containing the actual file contents.

    Answer

    data

  57. 57
    In 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

  58. 58
    Triple-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

  59. 59
    A 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

  60. 60
    A bitmap represents free space with one
    _____
    for every logical block.
    Hint

    This is a binary representation with two possible states.

    Answer

    bit

  61. 61
    In 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

  62. 62
    A 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

  63. 63
    The 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

  64. 64
    In 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

  65. 65
    A 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

  66. 66
    When 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

  67. 67
    A 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

  68. 68
    Grouping 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

  69. 69
    For 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

  70. 70
    Reading 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

  71. 71
    When 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

  72. 72
    A 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

  73. 73
    Delaying writes and performing them together later is a form of
    _____
    writes.
    Hint

    The writes are grouped rather than issued individually.

    Answer

    bunched

  74. 74
    An 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

  75. 75
    For 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

  76. 76
    Keeping 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

  77. 77
    Contiguous 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

  78. 78
    The 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

  79. 79
    A 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

1 of 79
Question 1 of 79

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent