06-Files_Directories_2spp

06-Files_Directories_2spp - 1 CSC 4304 - Systems...

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

View Full Document Right Arrow Icon

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

View Full DocumentRight Arrow Icon

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

View Full DocumentRight Arrow Icon

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

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

Unformatted text preview: 1 CSC 4304 - Systems Programming Fall 2010 Tevfik Ko ! ar Louisiana State University September 9 th , 2010 Lecture - VI Files & Directories File Systems Provides organized and efficient access to data on secondary storage: 1. Organizing data into files and directories and supporting primitives to manipulate them (create, delete, read, write etc) 2. Improve I/O efficiency between disk and memory (perform I/O in units of blocks rather than bytes) 3. Ensure confidentiality and integrity of data Contains file structure via a File Control Block (FCB) Ownership, permissions, location.. A Typical File Control Block File Properties 4 Stat Functions 5 stat returns info about a named file fstat returns info about an already open file lstat returns info about a symbolic link, not the referenced file Directories 6 ! Directories are special files that keep track of other files " the collection of files is systematically organized " first, disks are split into partitions that create logical volumes (can be thought of as virtual disks) " second, each partition contains information about the files within " this information is kept in entries in a device directory (or volume table of contents) " the directory is a symbol table that translates file names into their entries in the directory # it has a logical structure # it has an implementation structure (linked list, table, etc.) Unix Directory Tree Structure 7 Directory Implementation 8 Stal ings, W. (2004) Operating Systems: Internals and Design Principles (5th Edition). Directories Directory is a special file that contains list of names of files and their inode numbers to see contents of a directory: $ls -1ia .$ls -1ia ....
View Full Document

This note was uploaded on 11/23/2011 for the course CSC 4303 taught by Professor Staff during the Fall '10 term at LSU.

Page1 / 13

06-Files_Directories_2spp - 1 CSC 4304 - Systems...

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

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