218k views
3 votes
Consider a file system in which a file can be deleted and its disk space reclaimed while links to that file still exist. What problems may occur if a new file is created in the same storage area or with the same absolute path name? How can these problems be avoided?

User Lincetto
by
7.5k points

1 Answer

7 votes

Answer:

By keeping track of file links and deleting them along with the files

Step-by-step explanation:

when different users create different files with the same name, and one tries to open one of the files, the first file that is found on the VTOC of the disk will be opened. These problems can be avoided by tracking of all links to a file, and whenever there is a need to delete a file, the link to the file as well should be deleted.

User Steven Canfield
by
9.0k points