Click here to Skip to main content
15,886,199 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
im reading operating system concepts book by Abraham. I was wondering where are the directories stored? physical or logical adress! explain a bit please.
Posted
Updated 30-Apr-12 23:36pm
v2

1 solution

Both. When referencing files and directories on a system, the user level (or higher kernel level) code will address them with logical addresses. However, the actual disk driver will address them by converting the logical addresses to physical in order to read or write specific areas of the disk.
 
Share this answer
 
Comments
Ghost_x 1-May-12 11:40am    
Can you explain a bit more about the "user level code will address them with logical addresses" or refer me to something?
Richard MacCutchan 1-May-12 12:28pm    
A physical disk can be partitioned into multiple sections, so section 1 would start at location 0 and section 2 at location 1,000,000, for example. However at the user level you would address section 2 by logical addresses that start at 0, and the driver would convert that to the physical address of the disk, offset from 1,000,000.

I don't know of any references for this but I'm sure Google could help you.
Ghost_x 1-May-12 12:30pm    
A'right thanks. It really helped!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900