G read write or exec more generally generalize

Info iconThis preview shows page 1. Sign up to view the full content.

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

Unformatted text preview: s) •  SetFilePointer(handle, …) •  close(fd) •  CloseHandle(handle, …) •  unlink(name) •  DeleteFile(name) •  rename(old, new) •  CopyFile(name) •  MoveFile(name) 31 May 2012 Disks and File Systems 29 University of Washington Directories   Directories provide:   a way for users to organize their files   a convenient file name space for both users and FS’s   Most file systems support mul< ­level directories   naming hierarchies (/, /usr, /usr/local, /usr/local/bin, …)   Most file systems support the no<on of current directory   absolute names: fully ­qualified starKng from root of FS bash$ cd /usr/local   relaKve names: specified with respect to current directory bash$ cd /usr/local bash$ cd bin (absolute) (relaKve, equivalent to cd /usr/local/bin) 31 May 2012 Disks and File Systems 30 University of Washington Directory internals   A directory is typically just a file that happens to contain special metadata   directory = list of (name of file, file abributes)   abributes include such things as: size, protecKon, locaKon on disk, creaKon Kme, access Kme, …   the directory list is usually unordered (effecKvely random)   when you type “ls”, the “ls” command sorts the results for you   31 May...
View Full Document

This document was uploaded on 04/04/2014.

Ask a homework question - tutors are online