SlideShare a Scribd company logo
BY
CHANDINI SANS
FILE SYSTEM INTERFACE
The user level ( visible) portion of the file system.
FILE
‘related information’ that is recorded on secondary
storage such as magnetic disks, magnetic tapes and
optical disks.
a. a file is a sequence of bits, bytes, lines or records
b. The file is an entry in a directory
c. Information about files is kept in the directory
structure, which is maintained on the disk.
FILE SYSTEM INTERFACE
The file may have attributes :
(name, creator, date, type, permissions)
1. Name – only information kept in human-readable form
2. Identifier – unique tag (number) identifies file within file
system
3. Type – needed for systems that support different types
4. Location – pointer to file location on device
5. Size – current file size
6. Protection – controls who can do reading, writing, executing
7. Time, date, and user identification – data for protection,
security, and usage monitoring
ATTRIBUTES OF A FILE
 Create
 Write
 Read
 Reposition within file – file seek
 Delete
 Truncate
 Open(Fi) – search the directory structure on disk for entry Fi,
and move the content of entry to memory.
 Close (Fi) – move the content of entry Fi in memory to
directory structure on disk.
FILE OPERATIONS
refers to the ability of the operating system to distinguish types of file such as
‘text files, source files and binary files’ etc
MS-DOS and UNIX have the following types of files:
 ORDINARY FILES :
These files contain user information,text, databases or executable program.
The user can apply various operations on files like add, modify, delete.
 DIRECTORY FILES :
These files ‘contain list of file names and other information’ related to these files.
 SPECIAL FILES :
These files are also known as device files , they represent physical device like disks,
terminals, printers, networks, tape drive.
These files are of two types
 Character special files - data is handled character by character as in case of
terminals or printers.
 Block special files - data is handled in blocks as in the case of disks and tapes.
FILE TYPES
FILE TYPES - NAME, EXTENSION
The manner in which the records of a file may be accessed.
There are several ways to access files:
 SEQUENTIAL ACCESS
records are accessed in some sequence i.e the information in the file is processed
inorder, one record after the other. This access method is the most primitive one.
Example: Compilers usually access files in this fashion.
 DIRECT/RANDOM ACCESS
1. Each record has its own address on the file with by the help of which it can
be directly accessed for reading or writing.
2. The records need not be in any sequence within the file and they need not be
in adjacent locations on the storage medium.
 INDEXED SEQUENTIAL ACCESS
1. This mechanism is built up on base of sequential access.
2. An index is created for each file which contains pointers to various blocks.
3. Index is searched sequentially and its pointer is used to access the file directly.
FILE ACCESS MECHANISMS
SEQUENTIAL ACCESS :
read next
write next
reset
no read after last write
(rewrite)
DIRECT ACCESS :
read n
write n
position to n
read next
write next
rewrite n
n = relative block number
INDEXED ACCESS :
collection of nodes containing information about all files.
DIRECTORY STRUCTURE
1. Name
2. Type
3. Address
4. Current length
5. Maximum length
6. Date last accessed (for archival)
7. Date last updated (for dump)
8. Owner ID (who pays)
9. Protection information
INFORMATION ON DEVICE DIRECTORY
jbreecher@younger:~/public/os$ stat Code
File: `Code'
Size: 4096 Blocks: 8 IO Block: 4096 directory
Device: 14h/20d Inode: 28606492 Links: 2
Access: (0755/drwxr-xr-x) Uid: ( 1170/jbreecher) Gid: ( 100/ users)
Access: 2006-11-16 14:52:11.000000000 -0500
Modify: 2006-11-16 14:52:01.000000000 -0500
Change: 2006-11-16 14:52:01.000000000 -0500
 Search for a file
❒ Create a file
❒ Delete a file
❒ List a directory
❒ Rename a file
❒ Traverse the file system
OPERATIONS PERFORMED ON A DIRECTORY
1. Efficiency – locating a file quickly.
2. Naming – convenient to users.
 Two users can have same name for different files.
 The same file can have several different names.
3. Grouping – logical grouping of files by properties
(e.g., all Java programs, allgames, …)
ORGANIZE THE DIRECTIORY (LOGICALLY) TO OBTAIN
A single directory for all users.
-Naming problem
-Grouping problem
SINGLE LEVEL DIRECTORY
Separate directory for each user.
1. Path name
2. Can have the same file name for different user
3. Efficient searching
4. No grouping capability
TWO LEVEL DIRECTORY
 Efficient searching , Grouping Capability
 Current directory (working directory) : cd /spell/mail/prog
TREE STRUCTURED DIRECTORY
ACYCLIC GRAPH DIRECTORY
Have shared subdirectories and files.
GENERAL GRAPH DIRECTORY
 Allow only links to file not subdirectories.
 Every time a new link is added use a cycle detection algorithm to
determine whether it is OK.

More Related Content

PPT
Chapter 10 - File System Interface
Wayne Jones Jnr
 
PPT
Ch02 early system memory management
Jacob Cadeliña
 
PPTX
file system in operating system
tittuajay
 
PPT
Chapter 12 - Mass Storage Systems
Wayne Jones Jnr
 
PPT
Chapter 11 - File System Implementation
Wayne Jones Jnr
 
PPT
File Management in Operating Systems
vampugani
 
PPTX
Segmentation in Operating Systems.
Muhammad SiRaj Munir
 
PPTX
File Protection in Operating System
Meghaj Mallick
 
Chapter 10 - File System Interface
Wayne Jones Jnr
 
Ch02 early system memory management
Jacob Cadeliña
 
file system in operating system
tittuajay
 
Chapter 12 - Mass Storage Systems
Wayne Jones Jnr
 
Chapter 11 - File System Implementation
Wayne Jones Jnr
 
File Management in Operating Systems
vampugani
 
Segmentation in Operating Systems.
Muhammad SiRaj Munir
 
File Protection in Operating System
Meghaj Mallick
 

What's hot (20)

PPTX
File allocation methods (1)
Dr. Jasmine Beulah Gnanadurai
 
PPT
File access methods.54
myrajendra
 
PDF
NTFS file system
Ravi Yasas
 
PPTX
Distributed file system
Anamika Singh
 
PDF
Cs8493 unit 4
Kathirvel Ayyaswamy
 
PPT
Free space managment46
myrajendra
 
PPT
Contiguous Memory Allocation.ppt
infomerlin
 
PPTX
File access method
GayathriS578276
 
PPT
System call
Sumant Diwakar
 
PPT
Files
kirtidhamija16
 
PPTX
Paging and segmentation
Piyush Rochwani
 
PPTX
File Management in Operating System
Janki Shah
 
PPT
Memory management early_systems
Mybej Che
 
PPTX
File System in Operating System
Meghaj Mallick
 
PPTX
System calls
Bernard Senam
 
PPTX
Operating system paging and segmentation
hamza haseeb
 
PPTX
Data-Intensive Technologies for Cloud Computing
huda2018
 
PPT
Swap-space Management
Agnas Jasmine
 
PDF
File System Implementation - Part1
Amir Payberah
 
PPTX
Multimedia system, Architecture & Databases
Harshita Ved
 
File allocation methods (1)
Dr. Jasmine Beulah Gnanadurai
 
File access methods.54
myrajendra
 
NTFS file system
Ravi Yasas
 
Distributed file system
Anamika Singh
 
Cs8493 unit 4
Kathirvel Ayyaswamy
 
Free space managment46
myrajendra
 
Contiguous Memory Allocation.ppt
infomerlin
 
File access method
GayathriS578276
 
System call
Sumant Diwakar
 
Paging and segmentation
Piyush Rochwani
 
File Management in Operating System
Janki Shah
 
Memory management early_systems
Mybej Che
 
File System in Operating System
Meghaj Mallick
 
System calls
Bernard Senam
 
Operating system paging and segmentation
hamza haseeb
 
Data-Intensive Technologies for Cloud Computing
huda2018
 
Swap-space Management
Agnas Jasmine
 
File System Implementation - Part1
Amir Payberah
 
Multimedia system, Architecture & Databases
Harshita Ved
 
Ad

Viewers also liked (8)

PDF
File System Interface
Amir Payberah
 
PDF
Chapter12 - Designing System Interfaces, Controls and Security(Demo Presentat...
John Ely Masculino
 
PPTX
Human Computer Interface of an Information System
university of education,Lahore
 
PPT
Paging
guest53a712
 
PPS
Interface
kamal kotecha
 
PPT
Os Swapping, Paging, Segmentation and Virtual Memory
sgpraju
 
PPT
User Interface Design
JReifman
 
PPTX
Paging and Segmentation in Operating System
Raj Mohan
 
File System Interface
Amir Payberah
 
Chapter12 - Designing System Interfaces, Controls and Security(Demo Presentat...
John Ely Masculino
 
Human Computer Interface of an Information System
university of education,Lahore
 
Paging
guest53a712
 
Interface
kamal kotecha
 
Os Swapping, Paging, Segmentation and Virtual Memory
sgpraju
 
User Interface Design
JReifman
 
Paging and Segmentation in Operating System
Raj Mohan
 
Ad

Similar to File System Interface (20)

PDF
oslectureset7.pdf
WaltonJrSmithTZ
 
PPT
Unit 3 file management
Kalai Selvi
 
PPT
os unit-5-part2.ppt,Disk management file
anchitaa1
 
PPT
Unit 3 chapter 1-file management
Kalai Selvi
 
PPTX
File management
sangrampatil81
 
PPTX
CHAPTER 1 - Operating systems File System Interface.pptx
AnithaSakthivel3
 
PPTX
Model of file system
Ishucs
 
DOCX
File system interfacefinal
marangburu42
 
PPTX
File System.pptx
bcanawakadalcollege
 
DOCX
File system
lodhran-hayat
 
PPT
file management_osnotes.ppt
HelalMirzad
 
PPTX
File system
Navin Royal Achakkagari
 
PDF
Unit ivos - file systems
donny101
 
PDF
File Systems
Shipra Swati
 
PPTX
operating system notes for file managment.pptx
panditestmail
 
PPTX
FILE MANAGEMENT.pptx
jayashri kolekar
 
PPT
operating system File - System Interface
Dr. Chandrakant Divate
 
PPTX
File system interface
Dayan Ahmed
 
PDF
File structure
A. S. M. Shafi
 
PDF
File system in operating system e learning
Lavanya Sharma
 
oslectureset7.pdf
WaltonJrSmithTZ
 
Unit 3 file management
Kalai Selvi
 
os unit-5-part2.ppt,Disk management file
anchitaa1
 
Unit 3 chapter 1-file management
Kalai Selvi
 
File management
sangrampatil81
 
CHAPTER 1 - Operating systems File System Interface.pptx
AnithaSakthivel3
 
Model of file system
Ishucs
 
File system interfacefinal
marangburu42
 
File System.pptx
bcanawakadalcollege
 
File system
lodhran-hayat
 
file management_osnotes.ppt
HelalMirzad
 
Unit ivos - file systems
donny101
 
File Systems
Shipra Swati
 
operating system notes for file managment.pptx
panditestmail
 
FILE MANAGEMENT.pptx
jayashri kolekar
 
operating system File - System Interface
Dr. Chandrakant Divate
 
File system interface
Dayan Ahmed
 
File structure
A. S. M. Shafi
 
File system in operating system e learning
Lavanya Sharma
 

Recently uploaded (20)

PPTX
MSME 4.0 Template idea hackathon pdf to understand
alaudeenaarish
 
PPTX
IoT_Smart_Agriculture_Presentations.pptx
poojakumari696707
 
PDF
67243-Cooling and Heating & Calculation.pdf
DHAKA POLYTECHNIC
 
PDF
Packaging Tips for Stainless Steel Tubes and Pipes
heavymetalsandtubes
 
PDF
20ME702-Mechatronics-UNIT-1,UNIT-2,UNIT-3,UNIT-4,UNIT-5, 2025-2026
Mohanumar S
 
PPTX
22PCOAM21 Session 1 Data Management.pptx
Guru Nanak Technical Institutions
 
PDF
STUDY OF NOVEL CHANNEL MATERIALS USING III-V COMPOUNDS WITH VARIOUS GATE DIEL...
ijoejnl
 
PPTX
MT Chapter 1.pptx- Magnetic particle testing
ABCAnyBodyCanRelax
 
PDF
settlement FOR FOUNDATION ENGINEERS.pdf
Endalkazene
 
PPTX
MULTI LEVEL DATA TRACKING USING COOJA.pptx
dollysharma12ab
 
PPT
Understanding the Key Components and Parts of a Drone System.ppt
Siva Reddy
 
PPTX
FUNDAMENTALS OF ELECTRIC VEHICLES UNIT-1
MikkiliSuresh
 
PPTX
Inventory management chapter in automation and robotics.
atisht0104
 
PDF
Advanced LangChain & RAG: Building a Financial AI Assistant with Real-Time Data
Soufiane Sejjari
 
PDF
All chapters of Strength of materials.ppt
girmabiniyam1234
 
PPTX
Chapter_Seven_Construction_Reliability_Elective_III_Msc CM
SubashKumarBhattarai
 
PDF
Zero carbon Building Design Guidelines V4
BassemOsman1
 
PDF
The Effect of Artifact Removal from EEG Signals on the Detection of Epileptic...
Partho Prosad
 
PPTX
database slide on modern techniques for optimizing database queries.pptx
aky52024
 
PPTX
22PCOAM21 Session 2 Understanding Data Source.pptx
Guru Nanak Technical Institutions
 
MSME 4.0 Template idea hackathon pdf to understand
alaudeenaarish
 
IoT_Smart_Agriculture_Presentations.pptx
poojakumari696707
 
67243-Cooling and Heating & Calculation.pdf
DHAKA POLYTECHNIC
 
Packaging Tips for Stainless Steel Tubes and Pipes
heavymetalsandtubes
 
20ME702-Mechatronics-UNIT-1,UNIT-2,UNIT-3,UNIT-4,UNIT-5, 2025-2026
Mohanumar S
 
22PCOAM21 Session 1 Data Management.pptx
Guru Nanak Technical Institutions
 
STUDY OF NOVEL CHANNEL MATERIALS USING III-V COMPOUNDS WITH VARIOUS GATE DIEL...
ijoejnl
 
MT Chapter 1.pptx- Magnetic particle testing
ABCAnyBodyCanRelax
 
settlement FOR FOUNDATION ENGINEERS.pdf
Endalkazene
 
MULTI LEVEL DATA TRACKING USING COOJA.pptx
dollysharma12ab
 
Understanding the Key Components and Parts of a Drone System.ppt
Siva Reddy
 
FUNDAMENTALS OF ELECTRIC VEHICLES UNIT-1
MikkiliSuresh
 
Inventory management chapter in automation and robotics.
atisht0104
 
Advanced LangChain & RAG: Building a Financial AI Assistant with Real-Time Data
Soufiane Sejjari
 
All chapters of Strength of materials.ppt
girmabiniyam1234
 
Chapter_Seven_Construction_Reliability_Elective_III_Msc CM
SubashKumarBhattarai
 
Zero carbon Building Design Guidelines V4
BassemOsman1
 
The Effect of Artifact Removal from EEG Signals on the Detection of Epileptic...
Partho Prosad
 
database slide on modern techniques for optimizing database queries.pptx
aky52024
 
22PCOAM21 Session 2 Understanding Data Source.pptx
Guru Nanak Technical Institutions
 

File System Interface

  • 2. The user level ( visible) portion of the file system. FILE ‘related information’ that is recorded on secondary storage such as magnetic disks, magnetic tapes and optical disks. a. a file is a sequence of bits, bytes, lines or records b. The file is an entry in a directory c. Information about files is kept in the directory structure, which is maintained on the disk. FILE SYSTEM INTERFACE
  • 3. The file may have attributes : (name, creator, date, type, permissions) 1. Name – only information kept in human-readable form 2. Identifier – unique tag (number) identifies file within file system 3. Type – needed for systems that support different types 4. Location – pointer to file location on device 5. Size – current file size 6. Protection – controls who can do reading, writing, executing 7. Time, date, and user identification – data for protection, security, and usage monitoring ATTRIBUTES OF A FILE
  • 4.  Create  Write  Read  Reposition within file – file seek  Delete  Truncate  Open(Fi) – search the directory structure on disk for entry Fi, and move the content of entry to memory.  Close (Fi) – move the content of entry Fi in memory to directory structure on disk. FILE OPERATIONS
  • 5. refers to the ability of the operating system to distinguish types of file such as ‘text files, source files and binary files’ etc MS-DOS and UNIX have the following types of files:  ORDINARY FILES : These files contain user information,text, databases or executable program. The user can apply various operations on files like add, modify, delete.  DIRECTORY FILES : These files ‘contain list of file names and other information’ related to these files.  SPECIAL FILES : These files are also known as device files , they represent physical device like disks, terminals, printers, networks, tape drive. These files are of two types  Character special files - data is handled character by character as in case of terminals or printers.  Block special files - data is handled in blocks as in the case of disks and tapes. FILE TYPES
  • 6. FILE TYPES - NAME, EXTENSION
  • 7. The manner in which the records of a file may be accessed. There are several ways to access files:  SEQUENTIAL ACCESS records are accessed in some sequence i.e the information in the file is processed inorder, one record after the other. This access method is the most primitive one. Example: Compilers usually access files in this fashion.  DIRECT/RANDOM ACCESS 1. Each record has its own address on the file with by the help of which it can be directly accessed for reading or writing. 2. The records need not be in any sequence within the file and they need not be in adjacent locations on the storage medium.  INDEXED SEQUENTIAL ACCESS 1. This mechanism is built up on base of sequential access. 2. An index is created for each file which contains pointers to various blocks. 3. Index is searched sequentially and its pointer is used to access the file directly. FILE ACCESS MECHANISMS
  • 8. SEQUENTIAL ACCESS : read next write next reset no read after last write (rewrite)
  • 9. DIRECT ACCESS : read n write n position to n read next write next rewrite n n = relative block number
  • 11. collection of nodes containing information about all files. DIRECTORY STRUCTURE
  • 12. 1. Name 2. Type 3. Address 4. Current length 5. Maximum length 6. Date last accessed (for archival) 7. Date last updated (for dump) 8. Owner ID (who pays) 9. Protection information INFORMATION ON DEVICE DIRECTORY
  • 13. jbreecher@younger:~/public/os$ stat Code File: `Code' Size: 4096 Blocks: 8 IO Block: 4096 directory Device: 14h/20d Inode: 28606492 Links: 2 Access: (0755/drwxr-xr-x) Uid: ( 1170/jbreecher) Gid: ( 100/ users) Access: 2006-11-16 14:52:11.000000000 -0500 Modify: 2006-11-16 14:52:01.000000000 -0500 Change: 2006-11-16 14:52:01.000000000 -0500
  • 14.  Search for a file ❒ Create a file ❒ Delete a file ❒ List a directory ❒ Rename a file ❒ Traverse the file system OPERATIONS PERFORMED ON A DIRECTORY
  • 15. 1. Efficiency – locating a file quickly. 2. Naming – convenient to users.  Two users can have same name for different files.  The same file can have several different names. 3. Grouping – logical grouping of files by properties (e.g., all Java programs, allgames, …) ORGANIZE THE DIRECTIORY (LOGICALLY) TO OBTAIN
  • 16. A single directory for all users. -Naming problem -Grouping problem SINGLE LEVEL DIRECTORY
  • 17. Separate directory for each user. 1. Path name 2. Can have the same file name for different user 3. Efficient searching 4. No grouping capability TWO LEVEL DIRECTORY
  • 18.  Efficient searching , Grouping Capability  Current directory (working directory) : cd /spell/mail/prog TREE STRUCTURED DIRECTORY
  • 19. ACYCLIC GRAPH DIRECTORY Have shared subdirectories and files.
  • 20. GENERAL GRAPH DIRECTORY  Allow only links to file not subdirectories.  Every time a new link is added use a cycle detection algorithm to determine whether it is OK.