GATE Assistant

Past questions › Computer Science and Information Technology › GATE 2021 set1

GATE 2021 set1 · CS · MSQ · 1 mark · Operating System › File Systems

GATE 2021 set1 Computer Science and Information Technology question: Consider a linear list based directory implementation in a file system. Each directory…

Consider a linear list based directory implementation in a file system. Each directory is a list of nodes, where each node contains the file name along with the file metadata, such as the list of pointers to the data blocks. Consider a given directory foo.
Which of the following operations will necessarily require a full scan of foo for successful completion?

  1. (A)

    Creation of a new file in foo

  2. (B)

    Deletion of an existing file from foo

  3. (C)

    Renaming of an existing file in foo

  4. (D)

    Opening of an existing file in foo

Show answer

Official answer: A,C

Practise this question with exam-style marking

Discussion

No discussion yet.

Join the discussion