SlideShare a Scribd company logo
Topic Outline
FILE SYSTEM DIRECTORY
File definition
File Systems and Disks
File Attributes
File types
File operations
Method of accessing file
Directory definition
Directory structures
Directory Operations
Information Elements of
a File Directory
04/16/171 abdalla ali khamis abdallalikha@gmail.com
File
2
A file is a named collection of related information
that is recorded on secondary storage(Abraham
Silberschatz).
Data files are numeric, alphabetic, alphanumeric,
or binary. Files may be free form like text files or
be formatted rigidly . r (Abraham Silberschatz)
04/16/17abdalla ali khamis abdallalikha@gmail.com
File Systems and Disks
3
User view is a named collection of data which are store
in secondary storage medium.
OS & file system view File is collection of disk blocks i.e.,
a container in which File System maps file names and offsets
to disk blocks
04/16/17abdalla ali khamis abdallalikha@gmail.com
File Attributes
4
Name.
Identifier.
Type.
Location.
Size.
Protection.
 Locks
Dates
04/16/17abdalla ali khamis abdallalikha@gmail.com
FILE TYPES
04/16/175 abdalla ali khamis abdallalikha@gmail.com
FILE OPERATIONS
6
 Creating a file
 Writing a file
 Reading a file.
 Repositioning within a file
 Deleting a file
 Truncating a file
04/16/17abdalla ali khamis abdallalikha@gmail.com
Methods for Accessing Files
Sequential access: Sequential access is the one in
which the record are access in the form of sequence
whereby read all bytes or records in order in which
read one record after the other from the beginning in
the file.
Random access: Random access in the one in which
the record can be read un any order.
Indexed sequential: Indexed sequential access is the
one in which file is access items in file based on the
contents of (part of) an item in the file.
04/16/177 abdalla ali khamis abdallalikha@gmail.com
Directory – A Special Kind of File
8
A tool for users & applications to organize and find
files
User-friendly names
Names that are meaningful over long periods of time
The data structure for OS to locate files (i.e.,
containers) on disk
04/16/17abdalla ali khamis abdallalikha@gmail.com
Directory structures
9
o Single level
One directory per system, one entry pointing to each file
Small, single-user or single-use systems
PDA, cell phone, etc.
o Two-level
Single “master” directory per system
Each entry points to one single-level directory per user
Uncommon in modern operating systems
o Hierarchical
Any directory entry may point to
Individual file
Another directory
Common in most modern operating systems
04/16/17abdalla ali khamis abdallalikha@gmail.com
Directory Operations
10
o Create:
Make a new directory
o Add, Delete entry:
o Invoked by file create & destroy, directory create & destroy
o Find, List:
o Search or enumerate directory entries
o Rename:
o Change name of an entry without changing anything else about it
o Link, Unlink:
o Add or remove entry pointing to another entry elsewhere
o Introduces possibility of loops in directory graph
o Destroy:
o Removes directory; must be empty
04/16/17abdalla ali khamis abdallalikha@gmail.com
Information Elements of a File
Directory: basic information
File Name:
This is a name as chosen by the creator of the file.
File Type:
A file type can be of the text type, binary, load module, and
many other types.
File Organization:
File organization is for systems that support different
organizations.
04/16/1711 abdalla ali khamis abdallalikha@gmail.com
Information Elements of a File
Directory: Address Information
o Volume:This component indicates a device on which
the file is stored
o Starting Address:This is a starting physical address
on secondary storage (for example: cylinder, track,
and block number on disk)
o Size Used:This is a current size of the file. It can be
measured in bytes, words, or blocks.
o Size Allocated:This is the maximum size a file can
have.
04/16/1712 abdalla ali khamis abdallalikha@gmail.com
Information Elements of a File
directory: access control information
Owner:
This is a user who is assigned control of the file. The
owner may be able to grant or deny access (to the file)
to other users and to change these privileges.
Access Information:
A simple version of this element would include the
user’s name and password for each authorized user.
Permitted Actions:
This is for controlling reading, writing, executing, and
transmitting over a network.
04/16/1713 abdalla ali khamis abdallalikha@gmail.com
Information Elements of a File
Directory: usage information
o Date Created
o Identity of Creator
o Date Last Read Access
o Identity of Last Reader
o Date Last Modified
o Identity of Last Modifier
o Date of Last Backup
o Current Usage:
04/16/1714 abdalla ali khamis abdallalikha@gmail.com
Study Questions
1. Why do some systems keep track of the type of a file,
while others leave it to the user or simply do not
implement multiple file types?
2. Explain the purpose of the open and close operations.
3. List advantages and advantages of operating system
“knowing” and supporting many file types
4. Why would we want a subdirectory in our account?
04/16/1715 abdalla ali khamis abdallalikha@gmail.com

More Related Content

PPTX
File Management
PPTX
File management
PPTX
File System in Operating System
PPTX
File Management in Operating System
PDF
PPT
File management
PPTX
File management
PPT
Ch10
File Management
File management
File System in Operating System
File Management in Operating System
File management
File management
Ch10

What's hot (20)

PPT
Ch11
PPT
File Management
PPTX
File system structure
PPT
Files concepts.53
PPT
Lecture #1 Introduction
 
PPT
File organization
PDF
Degonto file management
PPT
File structures
PPTX
Sql server lesson3
DOCX
Switching & Multiplexing
PPT
OPERATING SYSTEM
PPTX
Operating system file system
PPTX
File and directory
PPTX
File system Os
PDF
File handling in qbasic
PPTX
File system interface
PPT
PPT
File organisation
PPTX
Disk structure & File Handling
PPTX
The windows hierarchy
Ch11
File Management
File system structure
Files concepts.53
Lecture #1 Introduction
 
File organization
Degonto file management
File structures
Sql server lesson3
Switching & Multiplexing
OPERATING SYSTEM
Operating system file system
File and directory
File system Os
File handling in qbasic
File system interface
File organisation
Disk structure & File Handling
The windows hierarchy
Ad

Similar to Introduction to file systems (20)

PPTX
CHAPTER 1 - Operating systems File System Interface.pptx
PPT
file management_osnotes.ppt
PPTX
Chapter 12.pptx
PPTX
File System Interface
PPT
distributed SYSTEMS FSnewBBIT305KCAU.ppt
PPT
Chapter 10 - File System Interface
PPTX
Learn about the File Concept in operating systems ppt
PPTX
file_concept.pptx file presentation directories
PPTX
file_concept.pptx file presentation directories
PPTX
Operating System File Management Unit v.pptx
PDF
CH11.pdf
PPT
Unit 3 file management
PPT
network and system admistration by Chapter 4.ppt
PPT
OSCh11
PPT
Ch11 OS
 
PPT
PPTX
Chapter 2 Linux File System and net.pptx
PPTX
Degonto, File management system in fisheries science
PPT
Unix/Linux Basic Commands and Shell Script
PPTX
FILE MANAGEMENT.pptx
CHAPTER 1 - Operating systems File System Interface.pptx
file management_osnotes.ppt
Chapter 12.pptx
File System Interface
distributed SYSTEMS FSnewBBIT305KCAU.ppt
Chapter 10 - File System Interface
Learn about the File Concept in operating systems ppt
file_concept.pptx file presentation directories
file_concept.pptx file presentation directories
Operating System File Management Unit v.pptx
CH11.pdf
Unit 3 file management
network and system admistration by Chapter 4.ppt
OSCh11
Ch11 OS
 
Chapter 2 Linux File System and net.pptx
Degonto, File management system in fisheries science
Unix/Linux Basic Commands and Shell Script
FILE MANAGEMENT.pptx
Ad

Recently uploaded (20)

PDF
STL Containers in C++ : Sequence Container : Vector
PPTX
Tech Workshop Escape Room Tech Workshop
PDF
Top 10 Software Development Trends to Watch in 2025 🚀.pdf
 
PPTX
Custom Software Development Services.pptx.pptx
PDF
DuckDuckGo Private Browser Premium APK for Android Crack Latest 2025
PPTX
"Secure File Sharing Solutions on AWS".pptx
PDF
AI/ML Infra Meetup | LLM Agents and Implementation Challenges
PDF
DNT Brochure 2025 – ISV Solutions @ D365
PDF
Autodesk AutoCAD Crack Free Download 2025
PPTX
GSA Content Generator Crack (2025 Latest)
PPTX
Advanced SystemCare Ultimate Crack + Portable (2025)
PPTX
Patient Appointment Booking in Odoo with online payment
PDF
Website Design Services for Small Businesses.pdf
PDF
Designing Intelligence for the Shop Floor.pdf
PPTX
Weekly report ppt - harsh dattuprasad patel.pptx
PDF
AI/ML Infra Meetup | Beyond S3's Basics: Architecting for AI-Native Data Access
PPTX
Cybersecurity: Protecting the Digital World
PDF
How to Make Money in the Metaverse_ Top Strategies for Beginners.pdf
PDF
Topaz Photo AI Crack New Download (Latest 2025)
PDF
Cost to Outsource Software Development in 2025
STL Containers in C++ : Sequence Container : Vector
Tech Workshop Escape Room Tech Workshop
Top 10 Software Development Trends to Watch in 2025 🚀.pdf
 
Custom Software Development Services.pptx.pptx
DuckDuckGo Private Browser Premium APK for Android Crack Latest 2025
"Secure File Sharing Solutions on AWS".pptx
AI/ML Infra Meetup | LLM Agents and Implementation Challenges
DNT Brochure 2025 – ISV Solutions @ D365
Autodesk AutoCAD Crack Free Download 2025
GSA Content Generator Crack (2025 Latest)
Advanced SystemCare Ultimate Crack + Portable (2025)
Patient Appointment Booking in Odoo with online payment
Website Design Services for Small Businesses.pdf
Designing Intelligence for the Shop Floor.pdf
Weekly report ppt - harsh dattuprasad patel.pptx
AI/ML Infra Meetup | Beyond S3's Basics: Architecting for AI-Native Data Access
Cybersecurity: Protecting the Digital World
How to Make Money in the Metaverse_ Top Strategies for Beginners.pdf
Topaz Photo AI Crack New Download (Latest 2025)
Cost to Outsource Software Development in 2025

Introduction to file systems

  • 1. Topic Outline FILE SYSTEM DIRECTORY File definition File Systems and Disks File Attributes File types File operations Method of accessing file Directory definition Directory structures Directory Operations Information Elements of a File Directory 04/16/171 abdalla ali khamis abdallalikha@gmail.com
  • 2. File 2 A file is a named collection of related information that is recorded on secondary storage(Abraham Silberschatz). Data files are numeric, alphabetic, alphanumeric, or binary. Files may be free form like text files or be formatted rigidly . r (Abraham Silberschatz) 04/16/17abdalla ali khamis abdallalikha@gmail.com
  • 3. File Systems and Disks 3 User view is a named collection of data which are store in secondary storage medium. OS & file system view File is collection of disk blocks i.e., a container in which File System maps file names and offsets to disk blocks 04/16/17abdalla ali khamis abdallalikha@gmail.com
  • 5. FILE TYPES 04/16/175 abdalla ali khamis abdallalikha@gmail.com
  • 6. FILE OPERATIONS 6  Creating a file  Writing a file  Reading a file.  Repositioning within a file  Deleting a file  Truncating a file 04/16/17abdalla ali khamis abdallalikha@gmail.com
  • 7. Methods for Accessing Files Sequential access: Sequential access is the one in which the record are access in the form of sequence whereby read all bytes or records in order in which read one record after the other from the beginning in the file. Random access: Random access in the one in which the record can be read un any order. Indexed sequential: Indexed sequential access is the one in which file is access items in file based on the contents of (part of) an item in the file. 04/16/177 abdalla ali khamis abdallalikha@gmail.com
  • 8. Directory – A Special Kind of File 8 A tool for users & applications to organize and find files User-friendly names Names that are meaningful over long periods of time The data structure for OS to locate files (i.e., containers) on disk 04/16/17abdalla ali khamis abdallalikha@gmail.com
  • 9. Directory structures 9 o Single level One directory per system, one entry pointing to each file Small, single-user or single-use systems PDA, cell phone, etc. o Two-level Single “master” directory per system Each entry points to one single-level directory per user Uncommon in modern operating systems o Hierarchical Any directory entry may point to Individual file Another directory Common in most modern operating systems 04/16/17abdalla ali khamis abdallalikha@gmail.com
  • 10. Directory Operations 10 o Create: Make a new directory o Add, Delete entry: o Invoked by file create & destroy, directory create & destroy o Find, List: o Search or enumerate directory entries o Rename: o Change name of an entry without changing anything else about it o Link, Unlink: o Add or remove entry pointing to another entry elsewhere o Introduces possibility of loops in directory graph o Destroy: o Removes directory; must be empty 04/16/17abdalla ali khamis abdallalikha@gmail.com
  • 11. Information Elements of a File Directory: basic information File Name: This is a name as chosen by the creator of the file. File Type: A file type can be of the text type, binary, load module, and many other types. File Organization: File organization is for systems that support different organizations. 04/16/1711 abdalla ali khamis abdallalikha@gmail.com
  • 12. Information Elements of a File Directory: Address Information o Volume:This component indicates a device on which the file is stored o Starting Address:This is a starting physical address on secondary storage (for example: cylinder, track, and block number on disk) o Size Used:This is a current size of the file. It can be measured in bytes, words, or blocks. o Size Allocated:This is the maximum size a file can have. 04/16/1712 abdalla ali khamis abdallalikha@gmail.com
  • 13. Information Elements of a File directory: access control information Owner: This is a user who is assigned control of the file. The owner may be able to grant or deny access (to the file) to other users and to change these privileges. Access Information: A simple version of this element would include the user’s name and password for each authorized user. Permitted Actions: This is for controlling reading, writing, executing, and transmitting over a network. 04/16/1713 abdalla ali khamis abdallalikha@gmail.com
  • 14. Information Elements of a File Directory: usage information o Date Created o Identity of Creator o Date Last Read Access o Identity of Last Reader o Date Last Modified o Identity of Last Modifier o Date of Last Backup o Current Usage: 04/16/1714 abdalla ali khamis abdallalikha@gmail.com
  • 15. Study Questions 1. Why do some systems keep track of the type of a file, while others leave it to the user or simply do not implement multiple file types? 2. Explain the purpose of the open and close operations. 3. List advantages and advantages of operating system “knowing” and supporting many file types 4. Why would we want a subdirectory in our account? 04/16/1715 abdalla ali khamis abdallalikha@gmail.com