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

  • 115Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: File System Architecture
The operating-system component that hides hardware differences and provides a consistent interface to storage devices is the
.

115 questions

  1. 1
    The operating-system component that hides hardware differences and provides a consistent interface to storage devices is the
    _____
    .
    Hint

    Think of the software layer that handles communication with particular hardware.

    Answer

    device driver

  2. 2
    Applications work with files through the
    _____
    rather than addressing physical disk locations directly.
    Hint

    This is the user-facing view of files and directories.

    Answer

    logical file system

  3. 3
    The file-system layer responsible for arranging files on the storage device is the
    _____
    .
    Hint

    It connects the logical view of files to their organization on storage.

    Answer

    file organization module

  4. 4
    A file is transferred from storage into
    _____
    so that it can be processed.
    Hint

    This is the working area where a computer can operate on data.

    Answer

    memory

  5. 5
    The data structure that stores a file's name, state, and other identifying information is the
    _____
    .
    Hint

    It keeps track of information associated with an individual file.

    Answer

    file control block

  6. 6
    Separating applications from hardware with layers makes the system easier to change, but the extra layers add
    _____
    .
    Hint

    Each layer adds work to a request as it passes through the system.

    Answer

    overhead

  7. 7
    The operating system can support different storage devices through the same logical interface because device-specific details are handled by
    _____
    .
    Hint

    These components adapt the operating system to particular hardware.

    Answer

    device drivers

  8. 8
    To connect a logical filename to where its data is physically stored, the system maps it to
    _____
    .
    Hint

    These are numbered units of storage on a device.

    Answer

    blocks

  9. 9
    Because disks are slower than memory, systems use
    _____
    to hold data temporarily and speed up access.
    Hint

    These temporary storage areas can reduce repeated trips to a slow device.

    Answer

    buffers and caches

  10. 10
    Keeping data that may be needed again in memory is an example of using a
    _____
    .
    Hint

    It stores likely-to-be-reused data for faster access.

    Answer

    cache

  11. 11
    Reading a likely next block while the current block is being fetched is called
    _____
    .
    Hint

    The system anticipates what data may be needed next.

    Answer

    read ahead

  12. 12
    The operating system may store information such as a file's name, last modified state, and retrieval status as
    _____
    .
    Hint

    This describes information about a file rather than its actual contents.

    Answer

    metadata

  13. 13
    On a magnetic disk, the circular paths on a platter are called
    _____
    .
    Hint

    They run around the disk surface.

    Answer

    tracks

  14. 14
    The divisions of a track used to organize data on a rotating disk are called
    _____
    .
    Hint

    They divide tracks into smaller portions.

    Answer

    sectors

  15. 15
    A unit formed from the intersection of a track and a sector is a
    _____
    .
    Hint

    This is a numbered unit that the system can retrieve from the disk.

    Answer

    block

  16. 16
    A hard disk's platters rotate while its read-write heads move across them to access data stored in
    _____
    .
    Hint

    These are the numbered storage units on the disk.

    Answer

    blocks

  17. 17
    The effect that helps keep a hard disk's read-write head slightly above the platter is called the
    _____
    .
    Hint

    It is associated with the airflow produced by the rotating disk.

    Answer

    Bernoulli effect

  18. 18
    Shaking a machine with a mechanical hard disk can be dangerous because the read-write head may
    _____
    the platter.
    Hint

    Normally the head should remain just above the disk surface.

    Answer

    hit

  19. 19
    The set of tracks at the same position across multiple platters is referred to as a
    _____
    .
    Hint

    This term groups corresponding tracks on a multi-platter disk.

    Answer

    cylinder

  20. 20
    In a fixed-size block system, a small file may waste space because it occupies a block larger than its contents; this is
    _____
    .
    Hint

    The unused space is inside an allocated block.

    Answer

    internal fragmentation

  21. 21
    Using smaller blocks can reduce wasted space for small files, but it requires tracking
    _____
    blocks.
    Hint

    Smaller units mean that a file may be represented by a greater number of units.

    Answer

    more

  22. 22
    The size of a disk's blocks affects both wasted storage space and the amount of
    _____
    the file system must manage.
    Hint

    Consider the work required to keep track of where every block belongs.

    Answer

    bookkeeping

  23. 23
    A file control block can store links to related indexes or tables when a file system needs to manage
    _____
    information.
    Hint

    The file control block may hold more than basic file details.

    Answer

    additional

  24. 24
    The information needed to describe a volume, including its logical layout, must be recorded so the system can manage files and
    _____
    .
    Hint

    These organize files into named locations.

    Answer

    directories

  25. 25
    The record used to identify a bootable device and begin starting the operating system is the
    _____
    .
    Hint

    The startup process transfers control to this structure on the boot device.

    Answer

    boot control block

  26. 26
    Connecting a file system to the operating system's directory structure is called
    _____
    .
    Hint

    The system makes the file system available at a particular location.

    Answer

    mounting

  27. 27
    The location in the directory structure where a mounted file system becomes accessible is its
    _____
    .
    Hint

    It is the place where users can reach the mounted storage.

    Answer

    mount point

  28. 28
    A file system's in-memory structures allow the operating system to manage mounted devices and support operations such as
    _____
    and close.
    Hint

    This operation begins access to a file.

    Answer

    open

  29. 29
    A file system may be connected automatically during startup or connected only when needed; this latter approach is
    _____
    .
    Hint

    It is used for devices such as removable drives that are not always attached.

    Answer

    ad hoc mounting

  30. 30
    An operating system may ask to check a removable drive after it was used with another operating system because the drive may contain different
    _____
    .
    Hint

    The drive stores organizational information in addition to file contents.

    Answer

    metadata

  31. 31
    If a system does not understand the format used on a drive, it may be unable to access the drive's
    _____
    .
    Hint

    This is the method used to organize and manage the drive's files.

    Answer

    file system

  32. 32
    Damage to directory structures or file control blocks can make files difficult to locate because these structures contain
    _____
    .
    Hint

    It includes information that maps files to their stored locations.

    Answer

    metadata

  33. 33
    A directory organized as a simple list may be slow to search because finding an entry can require checking entries one by one; this is a
    _____
    .
    Hint

    Its entries are examined in sequence.

    Answer

    linear list

  34. 34
    A directory can use structures such as a linked list or a
    _____
    to make data access faster.
    Hint

    This is a tree-based organization used to speed up searching.

    Answer

    B tree

  35. 35
    A directory hash table uses a mathematical function to convert input data into a
    _____
    used to locate an entry.
    Hint

    The output helps identify where the data can be found.

    Answer

    hash number

  36. 36
    When different inputs produce the same hash value, the hash table has a
    _____
    that must be handled.
    Hint

    Two items have landed on the same hash result.

    Answer

    collision

  37. 37
    If a file is stored in one consecutive run of disk blocks, it uses
    _____
    allocation.
    Hint

    The file's blocks sit next to one another on the disk.

    Answer

    contiguous

  38. 38
    Contiguous allocation makes it straightforward to retrieve a file because the system can read a known run of
    _____
    .
    Hint

    The file occupies a continuous sequence of these storage units.

    Answer

    blocks

  39. 39
    A limitation of contiguous allocation is that free space can become split into separate gaps, producing
    _____
    .
    Hint

    The total free space may be sufficient even though no single gap is large enough.

    Answer

    fragmentation

  40. 40
    When a contiguous file grows but there is not enough adjacent space, the system may have to move the
    _____
    elsewhere on disk.
    Hint

    The file may not fit in its original run of blocks.

    Answer

    whole file

  41. 41
    Rearranging files to reduce fragmentation and create larger free regions is called
    _____
    .
    Hint

    It reorganizes files on a disk to make storage more continuous.

    Answer

    defragmentation

  42. 42
    In extent-based allocation, a file can grow by receiving another group of consecutive blocks called an
    _____
    .
    Hint

    A file can consist of one or more of these groups.

    Answer

    extent

  43. 43
    Compared with a file made from individually linked blocks, an extent allows the system to retrieve a consecutive group of blocks with fewer
    _____
    .
    Hint

    The disk head does not need to travel to a separate location for every block in the group.

    Answer

    disk movements

  44. 44
    In linked allocation, each file block contains a pointer to the
    _____
    block in the file.
    Hint

    The pointer continues the sequence of blocks.

    Answer

    next

  45. 45
    The special pointer value that indicates the end of a linked file is called a
    _____
    pointer.
    Hint

    It does not point to another block.

    Answer

    null

  46. 46
    Linked allocation can use space flexibly because it allocates only the blocks a file
    _____
    .
    Hint

    Unlike a fixed-size reservation, the allocation can grow with the file.

    Answer

    needs

  47. 47
    A weakness of linked allocation is that a corrupted pointer can prevent access to the
    _____
    of the file.
    Hint

    The chain may be broken partway through.

    Answer

    rest

  48. 48
    A file allocation table stores the links between file blocks in a central
    _____
    rather than inside each block.
    Hint

    The links are kept together in an organized structure.

    Answer

    table

  49. 49
    Keeping the file allocation table in memory can speed up access because the system can consult the block links without repeatedly reading them from
    _____
    .
    Hint

    The table describes how files are laid out on the storage device.

    Answer

    disk

  50. 50
    A disadvantage of relying on a single file allocation table is that it becomes a
    _____
    of failure.
    Hint

    If this one structure is damaged, many files may become inaccessible.

    Answer

    single point

  51. 51
    In indexed allocation, a file's starting block points to an
    _____
    that lists the file's data blocks.
    Hint

    It contains references to the blocks that make up the file.

    Answer

    index block

  52. 52
    An index block supports access to a file's blocks through a shared list of block locations, rather than following a
    _____
    from block to block.
    Hint

    This is the sequence used in linked allocation.

    Answer

    linked chain

  53. 53
    When one index block cannot list all of a file's blocks, an index can point to another index; this is
    _____
    indexing.
    Hint

    The arrangement uses two levels of index.

    Answer

    double

  54. 54
    A file system that combines direct blocks with single, double, and triple indirect blocks uses
    _____
    allocation.
    Hint

    It supports multiple levels of references to data blocks.

    Answer

    multilevel indexed

  55. 55
    In the described Unix UFS example, each block is
    _____
    in size.
    Hint

    The example uses a block size of four kilobytes.

    Answer

    4K

  56. 56
    In that UFS example, the number of bits used for a block address limits the maximum addressable storage capacity of the
    _____
    .
    Hint

    The address width determines how many blocks can be identified on it.

    Answer

    device

  57. 57
    A file system may use direct blocks for frequently accessed files so that they can be reached
    _____
    .
    Hint

    Direct references avoid an extra index lookup.

    Answer

    quickly

  58. 58
    Different storage media may use different file systems because their access patterns and workloads are
    _____
    .
    Hint

    A DVD, USB drive, and main disk do not necessarily have the same requirements.

    Answer

    different

  59. 59
    A bitmap records the allocation state of each disk block using one
    _____
    per block.
    Hint

    The structure represents each block with a binary value.

    Answer

    bit

  60. 60
    In the bitmap example, a bit value represents whether a block is
    _____
    or used.
    Hint

    The bitmap distinguishes available storage from allocated storage.

    Answer

    free

  61. 61
    For a disk with 2402^{40}240 bytes and blocks of 2122^{12}212 bytes, the number of blocks is 2282^{28}228, requiring a bitmap of about
    _____
    megabytes.
    Hint

    The bitmap needs one bit for each of the 2282^{28}228 blocks.

    Answer

    256

  62. 62
    A linked free-space list stores pointers from each unused block to the
    _____
    unused block.
    Hint

    It organizes free blocks as a chain.

    Answer

    next

  63. 63
    When a block is allocated from the head of a free-space list, the next free block becomes the new
    _____
    .
    Hint

    This is the first position in the list.

    Answer

    head

  64. 64
    A linked free-space list can use less space than a bitmap because it records the
    _____
    blocks rather than one status bit for every block.
    Hint

    Only available blocks need to be linked.

    Answer

    unused

  65. 65
    A free-space list can be made more efficient by allocating a group of
    _____
    blocks at a time.
    Hint

    The blocks in the group are adjacent on the disk.

    Answer

    contiguous

  66. 66
    A system may track the number of free blocks in addition to their locations using a
    _____
    .
    Hint

    It summarizes free storage for a file system.

    Answer

    space map

  67. 67
    A large storage system may manage free space differently from a small computer because its scale and workload are
    _____
    .
    Hint

    The same management method may not suit both sizes of system.

    Answer

    different

  68. 68
    The overall goal of choosing a free-space management method is to achieve good performance for the system's
    _____
    .
    Hint

    Different systems use their storage in different ways.

    Answer

    workload

  69. 69
    For a magnetic disk, the time needed for the head to move to the correct track is the
    _____
    .
    Hint

    It measures the head's movement across the disk.

    Answer

    seek time

  70. 70
    The time spent waiting for a rotating disk to bring the desired sector under the head is
    _____
    .
    Hint

    It depends on the disk's rotation.

    Answer

    rotational latency

  71. 71
    The rate at which data is transferred from a storage device is its
    _____
    .
    Hint

    It describes how quickly data moves between the device and the computer.

    Answer

    transfer rate

  72. 72
    The time spent by a disk controller processing a storage request is called
    _____
    .
    Hint

    It is added to the time spent seeking, waiting for rotation, and transferring data.

    Answer

    controller overhead

  73. 73
    The time to move the head to the right track and wait for the desired sector is part of the disk's
    _____
    .
    Hint

    It combines positioning time and rotational waiting.

    Answer

    access latency

  74. 74
    After locating data on a disk, the system must also account for the time required to transfer it into
    _____
    .
    Hint

    This is where the computer can work on the retrieved data.

    Answer

    memory

  75. 75
    Increasing a magnetic disk's rotational speed generally reduces its
    _____
    .
    Hint

    The desired sector comes around more often when the disk spins faster.

    Answer

    rotational latency

  76. 76
    Unlike a magnetic disk, an SSD has no moving read-write head, so it does not have mechanical
    _____
    time.
    Hint

    This disk delay normally comes from moving the head to a track.

    Answer

    seek

  77. 77
    An SSD's memory cells have a limited number of read-write cycles, so
    _____
    software spreads use across the cells.
    Hint

    It helps prevent the same cells from being used up too quickly.

    Answer

    leveling

  78. 78
    Compared with a magnetic disk, an SSD is generally faster and more expensive, while offering
    _____
    capacity for a given cost.
    Hint

    The content describes a trade-off between speed, price, and storage amount.

    Answer

    lower

  79. 79
    Magnetic tape remains useful for storing large amounts of data at low cost, even though it is
    _____
    .
    Hint

    Its low cost and large capacity come with a performance trade-off.

    Answer

    slow

  80. 80
    The lecture summarizes storage trade-offs as a choice among speed, cost, and
    _____
    .
    Hint

    This refers to how much data the device can store.

    Answer

    size

  81. 81
    The hardware component that mediates communication between the computer and a disk is the
    _____
    .
    Hint

    The computer communicates with this component, which handles device-specific operations.

    Answer

    disk controller

  82. 82
    Connecting storage devices together so they can be accessed as a shared storage system creates a
    _____
    .
    Hint

    It is a network dedicated to connecting storage resources.

    Answer

    storage area network

  83. 83
    Cloud storage is not a mysterious separate kind of technology; it is storage on a computer located
    _____
    .
    Hint

    The storage is remote from the user's own machine.

    Answer

    somewhere else

  84. 84
    Network attached storage can appear in a file explorer as a drive even though the data is stored on a separate
    _____
    .
    Hint

    The storage is reached through the network rather than residing on the local computer.

    Answer

    server

  85. 85
    The network protocol mentioned for sending data across a network is
    _____
    .
    Hint

    It is a common protocol used to transmit data over networks.

    Answer

    TCP

  86. 86
    When many users access many storage devices, a storage network can be sped up by using
    _____
    connections instead of copper.
    Hint

    These connections use light to transmit data.

    Answer

    optical

  87. 87
    Splitting data across multiple devices can allow the devices to serve different parts of a request in
    _____
    .
    Hint

    The devices work at the same time rather than one after another.

    Answer

    parallel

  88. 88
    Processing disk requests in the order they arrive is the
    _____
    scheduling algorithm.
    Hint

    It honors the arrival order without rearranging requests.

    Answer

    first come, first served

  89. 89
    The disk scheduling algorithm that selects the pending request requiring the least head movement is
    _____
    .
    Hint

    It chooses the closest request from the head's current position.

    Answer

    shortest seek time first

  90. 90
    A risk of shortest seek time first is that requests far from the current head position may experience
    _____
    .
    Hint

    Nearby requests may repeatedly be selected ahead of distant ones.

    Answer

    starvation

  91. 91
    Giving waiting requests progressively greater priority over time is called
    _____
    .
    Hint

    It prevents a request from being postponed forever.

    Answer

    aging

  92. 92
    The scan algorithm moves the disk head in one direction servicing requests and then
    _____
    to service requests on the way back.
    Hint

    After reaching an end, the head travels through the disk in the opposite direction.

    Answer

    reverses

  93. 93
    The scan algorithm is often compared to a
    _____
    that travels in both directions and serves people along the way.
    Hint

    It moves through floors, stopping for people as it goes.

    Answer

    lift

  94. 94
    Circular scan, or C-SCAN, services requests in one direction and then returns to the beginning without servicing requests on the
    _____
    .
    Hint

    It resets to the start before beginning another servicing pass.

    Answer

    return

  95. 95
    Compared with scan, C-SCAN can provide a more
    _____
    waiting time for requests.
    Hint

    Its one-direction servicing pattern makes waits more consistent.

    Answer

    uniform

  96. 96
    The LOOK algorithm reverses direction after the last pending request rather than traveling to the physical end of the
    _____
    .
    Hint

    It avoids moving through a region with no requests.

    Answer

    disk

  97. 97
    C-LOOK combines circular servicing with the LOOK idea by jumping back after the last request instead of going to the disk's
    _____
    .
    Hint

    There is no need to travel beyond the furthest request.

    Answer

    end

  98. 98
    The best disk scheduling algorithm depends partly on the machine's request
    _____
    .
    Hint

    The number and pattern of pending requests affect which approach works well.

    Answer

    load

  99. 99
    A disk scheduler may be implemented as a separate module so that it can be changed to improve
    _____
    .
    Hint

    The goal is to reduce delays in accessing storage.

    Answer

    performance

  100. 100
    Preparing a disk by defining the sectors it can use is called
    _____
    .
    Hint

    This operation establishes the disk's usable organization.

    Answer

    formatting

  101. 101
    A physical disk can be divided into multiple logical sections called
    _____
    .
    Hint

    Each section can be treated as a separate logical disk.

    Answer

    partitions

  102. 102
    A partition is a physical split of a disk, whereas a volume is a
    _____
    split.
    Hint

    A volume describes how storage is presented, not just a physical boundary.

    Answer

    logical

  103. 103
    A volume can span more than one
    _____
    .
    Hint

    Logical storage does not have to be confined to one device.

    Answer

    physical disk

  104. 104
    A group of disk blocks managed together by the file system may be called a
    _____
    .
    Hint

    It can contain several blocks.

    Answer

    cluster

  105. 105
    An application that manages its own storage layout may request
    _____
    access instead of using a file system.
    Hint

    The application accesses a partition without relying on the usual file organization.

    Answer

    raw disk

  106. 106
    The disk structure containing boot code and a partition table is the
    _____
    .
    Hint

    It helps the system choose a partition during startup.

    Answer

    master boot record

  107. 107
    A master boot record can help a computer choose which partition to
    _____
    .
    Hint

    The choice determines which operating system starts.

    Answer

    boot

  108. 108
    Disk space reserved to support virtual memory when RAM is insufficient is called
    _____
    .
    Hint

    The operating system uses it as backing storage for memory.

    Answer

    swap space

  109. 109
    Keeping swap space in one continuous region can reduce delays caused by
    _____
    access.
    Hint

    The region is stored on a physical storage device.

    Answer

    disk

  110. 110
    Some operating systems put swap space in its own partition, while others manage it as a
    _____
    .
    Hint

    In this arrangement, swap is stored within a regular file system.

    Answer

    file

  111. 111
    RAID stands for redundant array of
    _____
    disks.
    Hint

    The acronym describes an array built from disks intended to be affordable.

    Answer

    inexpensive

  112. 112
    RAID can improve read performance by distributing data across disks so that several devices can read in
    _____
    .
    Hint

    The devices work at the same time on different portions of the data.

    Answer

    parallel

  113. 113
    Keeping an identical copy of data on another disk is called
    _____
    .
    Hint

    The second disk duplicates what is stored on the first.

    Answer

    mirroring

  114. 114
    Some RAID arrangements use
    _____
    information so lost data can be reconstructed after a disk failure.
    Hint

    It provides information used to calculate missing data.

    Answer

    parity

  115. 115
    Replacing a failed disk while the system continues operating is called
    _____
    .
    Hint

    The replacement does not require the machine to be turned off.

    Answer

    hot swap

1 of 115
Question 1 of 115

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent