Discussion11 - 11/11/2010 COP4600 Discussion 11 Homework4:...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
11/11/2010 1 COP4600 Discussion 11 Homework4: Disk, File System Call, Interrupts and DMA TA: Huafeng Jin [email protected] Reminder Homework4 will be posted soon, due one week. Please prepare early. Discussion10 Recap Assignment4 (cont.) Assignment Description (Modify file simulator to include hard link and symbolic links: 3 new commands (ln, ln -s, stat -L), 4 existing commands) Hard Link/Symbolic Link Implementation (Add entry, get inode#, create data block, create inode, link count) Other Implementation Issues (How to delete a file: setFree()) Work Flow Question In the current working directory, we have a file ( f , content: “ abcd ”), a hard link ( hl ) and a symbolic link ( sl ). Both the hard link and the symbolic link are linked with the file. temp file has content “ efgh ”. If we call: cp temp sl What will be printed out for: more f What happens after: rm f rm hl Question Answer: cp temp sl Copy temp’s content to source file of symbolic link more f Print out “ efgh rm f Remove f’s entry from directory block, but inode is still there (link count = 1) rm hl Remove hl’s entry from directory block, the delete the inode for the file Outline Disk Disk Structure Data Access Time Disk Arm Scheduling Algorithms RAID File System Call Interrupt and DMA
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
11/11/2010 2 Outline Disk Disk Structure Data Access Time Disk Arm Scheduling Algorithms RAID File System Call Interrupt and DMA Disk Structure Magnetic Disk Disk Structure Each Platter (one surface): Disk Structure Concepts: Track: One circular region on the platter. Sector: Subdivision of a track. Cylinder: All tracks from platters together for a given arm position. Example
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 01/15/2012 for the course COP 4600 taught by Professor Yavuz-kahveci during the Spring '07 term at University of Florida.

Page1 / 8

Discussion11 - 11/11/2010 COP4600 Discussion 11 Homework4:...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online