This is regarding generic UFS .
From what I understand when an absolute path is given (eg:
/home/userU/file.txt
) the disk is accessed for each directory and the file. Hence in this case the disk is accessed 4 times
1 For /
, 1 for home/
, 1 for /userU
, 1 for file.txt
My questions are
1. If a hard link /hL
is given, pointing to the inode of the above file, in what order is the disk accessed?
2. If a soft link /sL
is given, pointing to the above file, in what order is the disk accessed?
Assume that no inodes or any other data are cached initially in all three cases.
Asked by Nht_e0
(43 rep)
Jul 30, 2018, 02:33 AM
Last activity: Jul 30, 2018, 08:13 PM
Last activity: Jul 30, 2018, 08:13 PM