10_file system

10_file system - Chapter 10: File System Chapter Chapter...

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

View Full Document Right Arrow Icon
Chapter 10: File System Chapter 10: File System
Background image of page 1

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

View Full DocumentRight Arrow Icon
10.2 Modified by Bo Li ©2009 Operating System Concepts Chapter 10: File System Chapter 10: File System File Concept Access Methods Directory Structure File-System Mounting File Sharing Protection
Background image of page 2
10.3 Modified by Bo Li ©2009 Operating System Concepts File Concept File Concept Contiguous logical address space User view – the smallest unit of logical secondary storage Commonly, files represent programs and data Data numeric character binary Program source object forms
Background image of page 3

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

View Full DocumentRight Arrow Icon
10.4 Modified by Bo Li ©2009 Operating System Concepts File Structure File Structure File structure depends on its type A text file – a sequence of characters A source file – sequence of subroutines and functions An object file – a sequence of bytes organized into blocks An executable file is a series of code sections that the loader can bring into memory and execute
Background image of page 4
10.5 Modified by Bo Li ©2009 Operating System Concepts File Attributes File Attributes Name – only information kept in human-readable form Identifier – unique tag (number) identifies file within file system Type – needed for systems that support different types Location – pointer to file location on device Size – current file size Protection – controls who can do reading, writing, executing Time, date, and user identification – data for protection, security, and usage monitoring Information about files are kept in the directory structure, which is maintained on the disk
Background image of page 5

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

View Full DocumentRight Arrow Icon
10.6 Modified by Bo Li ©2009 Operating System Concepts File Operations File Operations File is an abstract data type Create Write Read Repositioning within file - seek Delete Truncate Open(F i ) – search the directory structure on disk for entry F i , and move the content of entry to memory Close (F i ) – move the content of entry F i in memory to directory structure on disk
Background image of page 6
10.7 Modified by Bo Li ©2009 Operating System Concepts Open Files Open Files Files need to be open() and close() before and after usage,
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 / 29

10_file system - Chapter 10: File System Chapter Chapter...

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