lec5_directories

lec5_directories - 1 Stdio, Files and Directories Marco...

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

View Full Document Right Arrow Icon
1 Stdio, Files and Directories Marco Gruteser
Background image of page 1

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

View Full DocumentRight Arrow Icon
2 What will out contain? mkdir mydir; cd mydir; touch b %ls a b >out %ls a b >out 2>out %ls a b >out 2>>out %ls a b >>out 2>out %ls a b >out 2>&1
Background image of page 2
3 Kernel File Data Structures – A  process opening the same file twice V-node Information i-node information Current File size File status flags Current file offset V-node ptr File status flags Current file offset V-node ptr File table V-node table Process table Fd 2 Fd 3
Background image of page 3

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

View Full DocumentRight Arrow Icon
4 Kernel File Data Structures – A  process with a copied file descriptor V-node Information i-node information Current File size File status flags Current file offset V-node ptr File table V-node table Process table Fd 2 Fd 3
Background image of page 4
5 Kernel File Data Structures – Two  processes opening the same file V-node Information i-node information Current File size File status flags Current file offset V-node ptr File status flags Current file offset V-node ptr File table V-node table Process table Fd 2 Fd 3
Background image of page 5

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

View Full DocumentRight Arrow Icon
6 Kernel File Data Structures – A child  process inheriting the same file V-node Information i-node information Current File size File status flags Current file offset V-node ptr File table V-node table Process table Fd 2 Fd 32
Background image of page 6
Directories and File  Metadata 7
Background image of page 7

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

View Full DocumentRight Arrow Icon
Image of page 8
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 22

lec5_directories - 1 Stdio, Files and Directories Marco...

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

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