...
Question 10624 – GATE 1987
January 27, 2024
Question 8028 – GATE 2016 [Set-1]
January 27, 2024
Question 10624 – GATE 1987
January 27, 2024
Question 8028 – GATE 2016 [Set-1]
January 27, 2024

Question 14254 – Operating-Systems

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?

Correct Answer: D

Question 5 Explanation: 
Renaming and creating a new file requires us to search the complete inode for duplicate names (to check if the same name already exists). There is no such problem in deleting and opening a file, as duplicate names are not possible while they are created.
A
Deletion of an existing file from foo
B
Opening of an existing file in foo
C
Creation of a new file in foo
D
Renaming of an existing file in foo
0 0 votes
Article Rating
Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x
error: Alert: Content selection is disabled!!