lseek command (Disk Allocation)

300 views Asked by At

"The lseek command repositions the offset of the descriptor fildes to the argument offset according to the directive whence and is mainly used in file system implementation for Indexed Disk Allocation"

I was reading my professor's powerpoint and came upon this statement. What I don't understand is how the lseek command ties in to indexed disk allocation compared to Linked and contiguous. Could someone explain why it says indexed disk allocation is easier to implement than Contiguous or Linked?

From what I read from another source: "The lseek() command will degrade into O(N) time because we will need to scan the file allocation table sequentially to access file data."

Wouldn't this relate to contiguous disk allocation more because it blocks allocated data sequentially.

0

There are 0 answers