SlideShare a Scribd company logo
File System
A file can be "free formed", indexed or structured collection of related bytes having meaning only to
the one who created it. Or in other words an entry in a directory is the file. The file may have
attributes like name, creator, date, type, permissions etc.
File Structure
A file has various kinds of structure. Some of them can be :
 Simple Record Structure with lines of fixed or variable lengths.
 Complex Structures like formatted document or reloadable load files.
 No Definite Structure like sequence of words and bytes etc.
Attributes of a File
Following are some of the attributes of a file :
 Name . It is the only information which is in human-readable form.
 Identifier. The file is identified by a unique tag(number) within file system.
 Type. It is needed for systems that support different types of files.
 Location. Pointer to file location on device.
 Size. The current size of the file.
 Protection. This controls and assigns the power of reading, writing, executing.
 Time, date, and user identification. This is the data for protection, security, and usage
monitoring.
File Access Methods
The way that files are accessed and read into memory is determined by Access methods. Usually a
single access method is supported by systems while there are OS's that support multiple access
methods.
Sequential Access
 Data is accessed one record right after another is an order.
 Read command cause a pointer to be moved ahead by one.
 Write command allocate space for the record and move the pointer to the new End Of File.
 Such a method is reasonable for tape.
Direct Access
 This method is useful for disks.
 The file is viewed as a numbered sequence of blocks or records.
 There are no restrictions on which blocks are read/written, it can be dobe in any order.
 User now says "read n" rather than "read next".
 "n" is a number relative to the beginning of file, not relative to an absolute physical disk location.
Indexed Sequential Access
 It is built on top of Sequential access.
 It uses an Index to control the pointer while accessing files.
What is a Directory?
Information about files is maintained by Directories. A directory can contain multiple files. It can even
have directories inside of them. In Windows we also call these directories as folders.
Following is the information maintained in a directory :
 Name : The name visible to user.
 Type : Type of the directory.
 Location : Device and location on the device where the file header is located.
 Size : Number of bytes/words/blocks in the file.
 Position : Current next-read/next-write pointers.
 Protection : Access control on read/write/execute/delete.
 Usage : Time of creation, access, modification etc.
 Mounting : When the root of one file system is "grafted" into the existing tree of another file
system its called Mounting.

More Related Content

PPTX
Introduction to File System
PDF
File system in operating system e learning
PPTX
Model of file system
PDF
File structure
PPTX
Protection, directory implementation
PPTX
File Protection
PPTX
File Management
Introduction to File System
File system in operating system e learning
Model of file system
File structure
Protection, directory implementation
File Protection
File Management

What's hot (15)

PPTX
Indexing in Search Engine
PDF
Microsoft power point chapter 5 file edited
PPTX
File_Organization_112014
PPTX
File management and data organisation
PPTX
PPTX
File organization and introduction of DBMS
DOCX
File organization in database
PPT
Cds Isis Intro Huridocs
PPTX
20.Namespaces
PPTX
23.database
PPTX
Lecture no 2 resource sharing
PPT
Data Management for Graduate Students
PPT
08 sip database
PPTX
An Introduction to the IMS Learning Object Discovery and Exchange (LODE) Spec...
Indexing in Search Engine
Microsoft power point chapter 5 file edited
File_Organization_112014
File management and data organisation
File organization and introduction of DBMS
File organization in database
Cds Isis Intro Huridocs
20.Namespaces
23.database
Lecture no 2 resource sharing
Data Management for Graduate Students
08 sip database
An Introduction to the IMS Learning Object Discovery and Exchange (LODE) Spec...
Ad

Viewers also liked (16)

DOCX
Virtual memory
DOCX
Memory management
DOCX
Process scheduling
DOCX
Comparison of scheduling algorithms
DOCX
Process synchronization
PPTX
Operation systems
PDF
Operating Systems - memory management
PDF
Operating Systems - Process Synchronization and Deadlocks
DOCX
What is concurrency
DOCX
What is a deadlock
PDF
File management
PPTX
File management
PPTX
File Management
PDF
Memory management
PDF
Build Features, Not Apps
Virtual memory
Memory management
Process scheduling
Comparison of scheduling algorithms
Process synchronization
Operation systems
Operating Systems - memory management
Operating Systems - Process Synchronization and Deadlocks
What is concurrency
What is a deadlock
File management
File management
File Management
Memory management
Build Features, Not Apps
Ad

Similar to File system (20)

PPT
PPTX
file_concept.pptx file presentation directories
PPTX
Learn about the File Concept in operating systems ppt
PPTX
file_concept.pptx file presentation directories
PPTX
operating system notes for file managment.pptx
PPT
Unit 3 chapter 1-file management
PPTX
File management
PPTX
Chapter 12.pptx
PPT
Unit 3 file management
PDF
Chapter 5
PPTX
File Concept.pptx fa s fasfasfasfsfsfasfasfas
PPT
file management_osnotes.ppt
PPT
Operating Systems - File Space Allocation
PPTX
Unit 6 OSY.pptx aaaaaaaaaaaaaaaaaaaaaaaa
PPTX
File concept and access method
PDF
File Systems
PPT
Operating System - File Management concepts
PPT
os unit-5-part2.ppt,Disk management file
PDF
Unit ivos - file systems
PPTX
Operating System Unit 4(RTU Syllabus).pptx
file_concept.pptx file presentation directories
Learn about the File Concept in operating systems ppt
file_concept.pptx file presentation directories
operating system notes for file managment.pptx
Unit 3 chapter 1-file management
File management
Chapter 12.pptx
Unit 3 file management
Chapter 5
File Concept.pptx fa s fasfasfasfsfsfasfasfas
file management_osnotes.ppt
Operating Systems - File Space Allocation
Unit 6 OSY.pptx aaaaaaaaaaaaaaaaaaaaaaaa
File concept and access method
File Systems
Operating System - File Management concepts
os unit-5-part2.ppt,Disk management file
Unit ivos - file systems
Operating System Unit 4(RTU Syllabus).pptx

Recently uploaded (20)

PDF
RTP_AR_KS1_Tutor's Guide_English [FOR REPRODUCTION].pdf
PPTX
CHAPTER IV. MAN AND BIOSPHERE AND ITS TOTALITY.pptx
PPTX
A powerpoint presentation on the Revised K-10 Science Shaping Paper
PDF
احياء السادس العلمي - الفصل الثالث (التكاثر) منهج متميزين/كلية بغداد/موهوبين
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PPTX
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
PDF
Hazard Identification & Risk Assessment .pdf
PPTX
Chinmaya Tiranga Azadi Quiz (Class 7-8 )
PDF
Practical Manual AGRO-233 Principles and Practices of Natural Farming
PDF
advance database management system book.pdf
PDF
GENETICS IN BIOLOGY IN SECONDARY LEVEL FORM 3
PDF
IGGE1 Understanding the Self1234567891011
PDF
Chinmaya Tiranga quiz Grand Finale.pdf
PDF
Empowerment Technology for Senior High School Guide
PDF
Trump Administration's workforce development strategy
PPTX
Onco Emergencies - Spinal cord compression Superior vena cava syndrome Febr...
PDF
1_English_Language_Set_2.pdf probationary
PDF
ChatGPT for Dummies - Pam Baker Ccesa007.pdf
PDF
Computing-Curriculum for Schools in Ghana
PPTX
Unit 4 Skeletal System.ppt.pptxopresentatiom
RTP_AR_KS1_Tutor's Guide_English [FOR REPRODUCTION].pdf
CHAPTER IV. MAN AND BIOSPHERE AND ITS TOTALITY.pptx
A powerpoint presentation on the Revised K-10 Science Shaping Paper
احياء السادس العلمي - الفصل الثالث (التكاثر) منهج متميزين/كلية بغداد/موهوبين
Final Presentation General Medicine 03-08-2024.pptx
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
Hazard Identification & Risk Assessment .pdf
Chinmaya Tiranga Azadi Quiz (Class 7-8 )
Practical Manual AGRO-233 Principles and Practices of Natural Farming
advance database management system book.pdf
GENETICS IN BIOLOGY IN SECONDARY LEVEL FORM 3
IGGE1 Understanding the Self1234567891011
Chinmaya Tiranga quiz Grand Finale.pdf
Empowerment Technology for Senior High School Guide
Trump Administration's workforce development strategy
Onco Emergencies - Spinal cord compression Superior vena cava syndrome Febr...
1_English_Language_Set_2.pdf probationary
ChatGPT for Dummies - Pam Baker Ccesa007.pdf
Computing-Curriculum for Schools in Ghana
Unit 4 Skeletal System.ppt.pptxopresentatiom

File system

  • 1. File System A file can be "free formed", indexed or structured collection of related bytes having meaning only to the one who created it. Or in other words an entry in a directory is the file. The file may have attributes like name, creator, date, type, permissions etc. File Structure A file has various kinds of structure. Some of them can be :  Simple Record Structure with lines of fixed or variable lengths.  Complex Structures like formatted document or reloadable load files.  No Definite Structure like sequence of words and bytes etc. Attributes of a File Following are some of the attributes of a file :  Name . It is the only information which is in human-readable form.  Identifier. The file is identified by a unique tag(number) within file system.  Type. It is needed for systems that support different types of files.  Location. Pointer to file location on device.  Size. The current size of the file.  Protection. This controls and assigns the power of reading, writing, executing.  Time, date, and user identification. This is the data for protection, security, and usage monitoring. File Access Methods The way that files are accessed and read into memory is determined by Access methods. Usually a single access method is supported by systems while there are OS's that support multiple access methods. Sequential Access
  • 2.  Data is accessed one record right after another is an order.  Read command cause a pointer to be moved ahead by one.  Write command allocate space for the record and move the pointer to the new End Of File.  Such a method is reasonable for tape. Direct Access  This method is useful for disks.  The file is viewed as a numbered sequence of blocks or records.  There are no restrictions on which blocks are read/written, it can be dobe in any order.  User now says "read n" rather than "read next".  "n" is a number relative to the beginning of file, not relative to an absolute physical disk location. Indexed Sequential Access  It is built on top of Sequential access.  It uses an Index to control the pointer while accessing files. What is a Directory? Information about files is maintained by Directories. A directory can contain multiple files. It can even have directories inside of them. In Windows we also call these directories as folders. Following is the information maintained in a directory :  Name : The name visible to user.  Type : Type of the directory.  Location : Device and location on the device where the file header is located.  Size : Number of bytes/words/blocks in the file.  Position : Current next-read/next-write pointers.  Protection : Access control on read/write/execute/delete.  Usage : Time of creation, access, modification etc.
  • 3.  Mounting : When the root of one file system is "grafted" into the existing tree of another file system its called Mounting.