A disk having a file system that has both logical and physical block sizes of 512 bytes. Information of each file is already in memory.
How is the logical-to-physical address mapping accomplished for contiguous, linked and indexed? (For the indexed allocation- a file is always less than 512 blocks long.)