File management in OS

Department of Information Technology, G H Patel College of Engineering and Technology,
Academic Year – 2017-18 (Even)
2140702 – Operating Systems
File concept, Access methods, File types,
File operation, Directory structure, File
System structure, Allocation methods
(contiguous , linked, indexed)
Prepared By
Tejoy Vachhrajani (160110116057)
Khyati Valera (160110116059)
Vashi Bhavik (160110116061)
Department of Information Technology, G H Patel College of Engineering and Technology 2
File Concept
• Files are the building blocks of any operation system. Permanent
storage of information & data is a file.
• OS is not interested in what information is stored in file . OS maps
files with physical devices.
• User prepare a program (file ), File represent program and data.
The output of program is executable file.
Department of Information Technology, G H Patel College of Engineering and Technology 3
Access Methods
• File access mechanism refers to the manner in which the records
of a file may be accessed. There are several ways to access files
• Sequential access
• Direct/Random access
• Indexed sequential access
Department of Information Technology, G H Patel College of Engineering and Technology 4
Access Methods : Sequential access
• A sequential access is that in which the records are accessed in
some sequence, i.e., the information in the file is processed in
order, one record after the other.
• This access method is the most primitive one.
Example: Compilers usually access files in this fashion.
Department of Information Technology, G H Patel College of Engineering and Technology 5
Access Methods : Direct/Random access
• Random access file organization provides, accessing the records
directly.
• Each record has its own address on the file with by the help of
which it can be directly accessed for reading or writing.
• The records need not be in any sequence within the file and they
need not be in adjacent locations on the storage medium.
Department of Information Technology, G H Patel College of Engineering and Technology 6
Access Methods: Indexed sequential access
• This mechanism is built up on base of sequential access.
• An index is created for each file which contains pointers to various
blocks.
• Index is searched sequentially and its pointer is used to access the
file directly.
Department of Information Technology, G H Patel College of Engineering and Technology 7
File types
• File type refers to the ability of the operating system to distinguish
different types of file such as text files source files and binary files
etc. Many operating systems support many types of files.
Operating system like MS-DOS and UNIX have the following types
of files.
• Ordinary files
• Directory files
• Special files
Department of Information Technology, G H Patel College of Engineering and Technology 8
File types : Ordinary files
• These are the files that contain user information.
• These may have text, databases or executable program.
• The user can apply various operations on such files like add,
modify, delete or even remove the entire file.
Department of Information Technology, G H Patel College of Engineering and Technology 9
File types : Directory files
• These files contain list of file names and other information related
to these files.
Department of Information Technology, G H Patel College of Engineering and Technology 10
File types : Special files
• These files are also known as device files.
• These files represent physical device like disks, terminals, printers,
networks, tape drive etc.
• 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.
Department of Information Technology, G H Patel College of Engineering and Technology 11
File Operations
• File Create Operation : The file is created with no data.
• File Delete Operation : File must has to be deleted when it is no
longer needed just to free up the disk space.
• File Open Operation : The process must open the file before
using it.
• File Close Operation : The file must be closed to free up the
internal table space, when all the accesses are finished and the
attributes and the disk addresses are no longer needed.
• File Read Operation : The file read operation is performed just to
read the data that are stored in the required file.
Department of Information Technology, G H Patel College of Engineering and Technology 12
File Operations
• File Write Operation : The file write operation is used to write the data to the file,
again, generally at the current position.
• File Append Operation : The file append operation is same as the file write
operation except that the file append operation only add the data at the end of the
file.
• File Seek Operation : For random access files, a method is needed just to specify
from where to take the data. Therefore, the file seek operation performs this task.
• File Get Attribute Operation : The file get attributes operation are performed by
the processes when they need to read the file attributes to do their required work.
• File Set Attribute Operation : The file set attribute operation used to set some of
the attributes (user settable attributes) after the file has been created.
• File Rename Operation : The file rename operation is used to change the name of
the existing file.
Department of Information Technology, G H Patel College of Engineering and Technology 13
Directory structure
• Directory is a symbol table of files that stores all the related
information about the file it hold with the contents. Directory is a
list of files. Each entry of a directory define a file information like a
file name, type, its version number, size ,owner of file, access
rights, date of creation and date of last backup.
• Types:-
• 1. Single level directory
• 2. Two level directory
• 3. Tree structured directory
• 4. Acyclic graph directory
• 5. General graph directory
Department of Information Technology, G H Patel College of Engineering and Technology 14
Directory structure
1.Single level directory: -
• In a single level directory system, all the files are placed in one
directory
Department of Information Technology, G H Patel College of Engineering and Technology 15
Directory structure
2.Two level directory: -
• In the two-level directory system, the system maintains a master
block that has one entry for each user.
Department of Information Technology, G H Patel College of Engineering and Technology 16
Directory structure
3.Tree structured directory:-
• In the tree-structured directory, the directory themselves are files.
This leads to the possibility of having sub-directories that can
contain files and sub-subdirectories.
Department of Information Technology, G H Patel College of Engineering and Technology 17
Directory structure
4. Acyclic graph directory:-
• The acyclic directory structure is an extension of the tree-
structured directory structure.
Department of Information Technology, G H Patel College of Engineering and Technology 18
Directory structure
5. General graph directory: -
• The general graph directory is formed by adding links into an
existing tree structure. It overcomes the problem of acyclic graph
by allows the cycles in a directory.
Department of Information Technology, G H Patel College of Engineering and Technology 19
File System Structure
• File system is mounted and maintained by the secondary storage
which provides by disk.
• Characteristics of disk : same place is used for reading , writing ,
modification , user can access disk directly for any block of
information
• Concept of file system is used for the efficient and convenient
access to the disk.
• File system stricter allows to data to store , locate , retrieved data.
Department of Information Technology, G H Patel College of Engineering and Technology 20
Department of Information Technology, G H Patel College of Engineering and Technology 21
File System Structure
IO control interface:-
• It consists of device driver & interrupt hander.
• Transfer data : main memory to disk system.
Basic file system layer:-
• Generate command for device driver.
• Also manage buffer memory & cache.
File Organization Module layer:-
• Maintain information about files
Department of Information Technology, G H Patel College of Engineering and Technology 22
File System Structure
Logical file System Layer :-
• Manages the meta data information.
Application Program Layer :-
• User creates application program.
Physical hardware device layer:-
• Contain actual hardware device.
Department of Information Technology, G H Patel College of Engineering and Technology 23
File System Structure
OS File System Format
Windows FAT , FAT32 , NTFS
UNIX UNIX File System
Standard LINUX Extended File System
Department of Information Technology, G H Patel College of Engineering and Technology 24
Department of Information Technology, G H Patel College of Engineering and Technology 25
Allocation methods
• Files are allocated disk spaces by operating system. Operating
systems deploy following three main ways to allocate disk space to
files.
• Contiguous Allocation
• Linked Allocation
• Indexed Allocation
Department of Information Technology, G H Patel College of Engineering and Technology 26
Allocation methods : Contiguous Allocation
• Each file occupies a contiguous address space on disk.
• Assigned disk address is in linear order.
• Easy to implement.
• External fragmentation is a major issue with this type of allocation
technique.
Department of Information Technology, G H Patel College of Engineering and Technology 27
Allocation methods : Linked Allocation
• Each file carries a list of links to disk blocks.
• Directory contains link / pointer to first block of a file.
• No external fragmentation
• Effectively used in sequential access file.
• Inefficient in case of direct access file.
Department of Information Technology, G H Patel College of Engineering and Technology 28
Allocation methods : Indexed Allocation
• Provides solutions to problems of contiguous and linked
allocation.
• A index block is created having all pointers to files.
• Each file has its own index block which stores the addresses of
disk space occupied by the file.
• Directory contains the addresses of index blocks of files.
Department of Information Technology, G H Patel College of Engineering and Technology 29
1 sur 29

Recommandé

Ch 8 data base par
Ch 8 data baseCh 8 data base
Ch 8 data baseKhan Yousafzai
607 vues40 diapositives
Chap01 (ics12) par
Chap01 (ics12)Chap01 (ics12)
Chap01 (ics12)usmanahmadawan
75 vues54 diapositives
File system in operating system e learning par
File system in operating system e learningFile system in operating system e learning
File system in operating system e learningLavanya Sharma
412 vues40 diapositives
M2 211-unix fs-rl_2.1.1 par
M2 211-unix fs-rl_2.1.1M2 211-unix fs-rl_2.1.1
M2 211-unix fs-rl_2.1.1MrudulaJoshi10
19 vues15 diapositives
Chapter 3 part 1 par
Chapter 3 part 1Chapter 3 part 1
Chapter 3 part 1rohassanie
3.9K vues19 diapositives
Chapter 3 part 2 par
Chapter 3 part 2Chapter 3 part 2
Chapter 3 part 2rohassanie
2.1K vues13 diapositives

Contenu connexe

Tendances

Database File operation par
Database File operationDatabase File operation
Database File operationDr. C.V. Suresh Babu
318 vues45 diapositives
File protection.59 to 60 par
File protection.59 to 60File protection.59 to 60
File protection.59 to 60myrajendra
12.2K vues32 diapositives
Introduction to Object Oriented databases par
Introduction to Object Oriented databasesIntroduction to Object Oriented databases
Introduction to Object Oriented databasesDr. C.V. Suresh Babu
303 vues16 diapositives
Ch 1-final-file organization from korth par
Ch 1-final-file organization from korthCh 1-final-file organization from korth
Ch 1-final-file organization from korthRupali Rana
3.2K vues41 diapositives
Introduction to files and db systems 1.0 par
Introduction to files and db systems 1.0Introduction to files and db systems 1.0
Introduction to files and db systems 1.0Dr. C.V. Suresh Babu
279 vues13 diapositives
File structure par
File structureFile structure
File structureA. S. M. Shafi
44 vues4 diapositives

Tendances(19)

File protection.59 to 60 par myrajendra
File protection.59 to 60File protection.59 to 60
File protection.59 to 60
myrajendra12.2K vues
Ch 1-final-file organization from korth par Rupali Rana
Ch 1-final-file organization from korthCh 1-final-file organization from korth
Ch 1-final-file organization from korth
Rupali Rana3.2K vues
Introduction to File System par SanthiNivas
Introduction to File SystemIntroduction to File System
Introduction to File System
SanthiNivas412 vues
Database systems par Dhani Ahmad
Database systemsDatabase systems
Database systems
Dhani Ahmad11.8K vues
Database Management System And Design Questions par Samir Sabry
Database Management System And Design QuestionsDatabase Management System And Design Questions
Database Management System And Design Questions
Samir Sabry15.2K vues
Computer Software | Lecture 4A par CMDLMS
Computer Software | Lecture 4AComputer Software | Lecture 4A
Computer Software | Lecture 4A
CMDLMS98 vues
Database Management Systems - Management Information System par Nijaz N
Database Management Systems - Management Information SystemDatabase Management Systems - Management Information System
Database Management Systems - Management Information System
Nijaz N8.6K vues

Similaire à File management in OS

File Management par
File ManagementFile Management
File Managementramya marichamy
1.4K vues27 diapositives
File Management & Access Control par
File Management & Access Control File Management & Access Control
File Management & Access Control YuvrajWadavale
38 vues81 diapositives
File system par
File systemFile system
File systemNavin Royal Achakkagari
109 vues87 diapositives
File Management in Operating System par
File Management in Operating SystemFile Management in Operating System
File Management in Operating SystemJanki Shah
23.1K vues20 diapositives
File Systems par
File SystemsFile Systems
File SystemsShipra Swati
1.3K vues11 diapositives
Computer Software | Lecture 4D par
Computer Software | Lecture 4DComputer Software | Lecture 4D
Computer Software | Lecture 4DCMDLMS
23 vues30 diapositives

Similaire à File management in OS(20)

File Management in Operating System par Janki Shah
File Management in Operating SystemFile Management in Operating System
File Management in Operating System
Janki Shah23.1K vues
Computer Software | Lecture 4D par CMDLMS
Computer Software | Lecture 4DComputer Software | Lecture 4D
Computer Software | Lecture 4D
CMDLMS23 vues
Computer Software - Lecture D par CMDLearning
Computer Software - Lecture DComputer Software - Lecture D
Computer Software - Lecture D
CMDLearning12 vues
fileorganizationandintroductionofdbms-210313163900.pdf par FraolUmeta
fileorganizationandintroductionofdbms-210313163900.pdffileorganizationandintroductionofdbms-210313163900.pdf
fileorganizationandintroductionofdbms-210313163900.pdf
FraolUmeta12 vues
File organization and introduction of DBMS par VrushaliSolanke
File organization and introduction of DBMSFile organization and introduction of DBMS
File organization and introduction of DBMS
VrushaliSolanke424 vues

Plus de Bhavik Vashi

Aws ec2 par
Aws ec2Aws ec2
Aws ec2Bhavik Vashi
524 vues30 diapositives
MACRO PROCESSOR par
MACRO PROCESSORMACRO PROCESSOR
MACRO PROCESSORBhavik Vashi
4.1K vues20 diapositives
Cloud computing par
Cloud computingCloud computing
Cloud computingBhavik Vashi
102 vues23 diapositives
Linear Sorting par
Linear SortingLinear Sorting
Linear SortingBhavik Vashi
79 vues32 diapositives
Colormodels par
ColormodelsColormodels
ColormodelsBhavik Vashi
264 vues24 diapositives
Kruskal Algorithm par
Kruskal AlgorithmKruskal Algorithm
Kruskal AlgorithmBhavik Vashi
1K vues10 diapositives

Plus de Bhavik Vashi(20)

Rate monotonic scheduling- Operating System par Bhavik Vashi
Rate monotonic scheduling- Operating SystemRate monotonic scheduling- Operating System
Rate monotonic scheduling- Operating System
Bhavik Vashi647 vues
Data Structure Radix Sort par Bhavik Vashi
Data Structure Radix SortData Structure Radix Sort
Data Structure Radix Sort
Bhavik Vashi269 vues
Types of Constructor in C++ par Bhavik Vashi
Types of Constructor in C++Types of Constructor in C++
Types of Constructor in C++
Bhavik Vashi1.9K vues
Parallel processing (simd and mimd) par Bhavik Vashi
Parallel processing (simd and mimd)Parallel processing (simd and mimd)
Parallel processing (simd and mimd)
Bhavik Vashi6.6K vues
Fiscal Policy & Monetary Policy par Bhavik Vashi
Fiscal Policy & Monetary PolicyFiscal Policy & Monetary Policy
Fiscal Policy & Monetary Policy
Bhavik Vashi135 vues
Most Successful People & Personality par Bhavik Vashi
Most Successful People & Personality Most Successful People & Personality
Most Successful People & Personality
Bhavik Vashi85 vues
Functions of stdio conio par Bhavik Vashi
Functions of stdio   conio Functions of stdio   conio
Functions of stdio conio
Bhavik Vashi354 vues

Dernier

Multi-objective distributed generation integration in radial distribution sy... par
Multi-objective distributed generation integration in radial  distribution sy...Multi-objective distributed generation integration in radial  distribution sy...
Multi-objective distributed generation integration in radial distribution sy...IJECEIAES
15 vues14 diapositives
DevOps to DevSecOps: Enhancing Software Security Throughout The Development L... par
DevOps to DevSecOps: Enhancing Software Security Throughout The Development L...DevOps to DevSecOps: Enhancing Software Security Throughout The Development L...
DevOps to DevSecOps: Enhancing Software Security Throughout The Development L...Anowar Hossain
10 vues34 diapositives
9_DVD_Dynamic_logic_circuits.pdf par
9_DVD_Dynamic_logic_circuits.pdf9_DVD_Dynamic_logic_circuits.pdf
9_DVD_Dynamic_logic_circuits.pdfUsha Mehta
21 vues32 diapositives
SNMPx par
SNMPxSNMPx
SNMPxAmatullahbutt
12 vues12 diapositives
SEMI CONDUCTORS par
SEMI CONDUCTORSSEMI CONDUCTORS
SEMI CONDUCTORSpavaniaalla2005
19 vues8 diapositives
MSA Website Slideshow (16).pdf par
MSA Website Slideshow (16).pdfMSA Website Slideshow (16).pdf
MSA Website Slideshow (16).pdfmsaucla
39 vues8 diapositives

Dernier(20)

Multi-objective distributed generation integration in radial distribution sy... par IJECEIAES
Multi-objective distributed generation integration in radial  distribution sy...Multi-objective distributed generation integration in radial  distribution sy...
Multi-objective distributed generation integration in radial distribution sy...
IJECEIAES15 vues
DevOps to DevSecOps: Enhancing Software Security Throughout The Development L... par Anowar Hossain
DevOps to DevSecOps: Enhancing Software Security Throughout The Development L...DevOps to DevSecOps: Enhancing Software Security Throughout The Development L...
DevOps to DevSecOps: Enhancing Software Security Throughout The Development L...
Anowar Hossain10 vues
9_DVD_Dynamic_logic_circuits.pdf par Usha Mehta
9_DVD_Dynamic_logic_circuits.pdf9_DVD_Dynamic_logic_circuits.pdf
9_DVD_Dynamic_logic_circuits.pdf
Usha Mehta21 vues
MSA Website Slideshow (16).pdf par msaucla
MSA Website Slideshow (16).pdfMSA Website Slideshow (16).pdf
MSA Website Slideshow (16).pdf
msaucla39 vues
performance uploading.pptx par SanthiS10
performance uploading.pptxperformance uploading.pptx
performance uploading.pptx
SanthiS107 vues
How I learned to stop worrying and love the dark silicon apocalypse.pdf par Tomasz Kowalczewski
How I learned to stop worrying and love the dark silicon apocalypse.pdfHow I learned to stop worrying and love the dark silicon apocalypse.pdf
How I learned to stop worrying and love the dark silicon apocalypse.pdf
Informed search algorithms.pptx par Dr.Shweta
Informed search algorithms.pptxInformed search algorithms.pptx
Informed search algorithms.pptx
Dr.Shweta12 vues
CHI-SQUARE ( χ2) TESTS.pptx par ssusera597c5
CHI-SQUARE ( χ2) TESTS.pptxCHI-SQUARE ( χ2) TESTS.pptx
CHI-SQUARE ( χ2) TESTS.pptx
ssusera597c520 vues
Extensions of Time - Contract Management par brainquisitive
Extensions of Time - Contract ManagementExtensions of Time - Contract Management
Extensions of Time - Contract Management
brainquisitive15 vues
An approach of ontology and knowledge base for railway maintenance par IJECEIAES
An approach of ontology and knowledge base for railway maintenanceAn approach of ontology and knowledge base for railway maintenance
An approach of ontology and knowledge base for railway maintenance
IJECEIAES12 vues

File management in OS

  • 1. Department of Information Technology, G H Patel College of Engineering and Technology, Academic Year – 2017-18 (Even) 2140702 – Operating Systems File concept, Access methods, File types, File operation, Directory structure, File System structure, Allocation methods (contiguous , linked, indexed) Prepared By Tejoy Vachhrajani (160110116057) Khyati Valera (160110116059) Vashi Bhavik (160110116061)
  • 2. Department of Information Technology, G H Patel College of Engineering and Technology 2 File Concept • Files are the building blocks of any operation system. Permanent storage of information & data is a file. • OS is not interested in what information is stored in file . OS maps files with physical devices. • User prepare a program (file ), File represent program and data. The output of program is executable file.
  • 3. Department of Information Technology, G H Patel College of Engineering and Technology 3 Access Methods • File access mechanism refers to the manner in which the records of a file may be accessed. There are several ways to access files • Sequential access • Direct/Random access • Indexed sequential access
  • 4. Department of Information Technology, G H Patel College of Engineering and Technology 4 Access Methods : Sequential access • A sequential access is that in which the records are accessed in some sequence, i.e., the information in the file is processed in order, one record after the other. • This access method is the most primitive one. Example: Compilers usually access files in this fashion.
  • 5. Department of Information Technology, G H Patel College of Engineering and Technology 5 Access Methods : Direct/Random access • Random access file organization provides, accessing the records directly. • Each record has its own address on the file with by the help of which it can be directly accessed for reading or writing. • The records need not be in any sequence within the file and they need not be in adjacent locations on the storage medium.
  • 6. Department of Information Technology, G H Patel College of Engineering and Technology 6 Access Methods: Indexed sequential access • This mechanism is built up on base of sequential access. • An index is created for each file which contains pointers to various blocks. • Index is searched sequentially and its pointer is used to access the file directly.
  • 7. Department of Information Technology, G H Patel College of Engineering and Technology 7 File types • File type refers to the ability of the operating system to distinguish different types of file such as text files source files and binary files etc. Many operating systems support many types of files. Operating system like MS-DOS and UNIX have the following types of files. • Ordinary files • Directory files • Special files
  • 8. Department of Information Technology, G H Patel College of Engineering and Technology 8 File types : Ordinary files • These are the files that contain user information. • These may have text, databases or executable program. • The user can apply various operations on such files like add, modify, delete or even remove the entire file.
  • 9. Department of Information Technology, G H Patel College of Engineering and Technology 9 File types : Directory files • These files contain list of file names and other information related to these files.
  • 10. Department of Information Technology, G H Patel College of Engineering and Technology 10 File types : Special files • These files are also known as device files. • These files represent physical device like disks, terminals, printers, networks, tape drive etc. • 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.
  • 11. Department of Information Technology, G H Patel College of Engineering and Technology 11 File Operations • File Create Operation : The file is created with no data. • File Delete Operation : File must has to be deleted when it is no longer needed just to free up the disk space. • File Open Operation : The process must open the file before using it. • File Close Operation : The file must be closed to free up the internal table space, when all the accesses are finished and the attributes and the disk addresses are no longer needed. • File Read Operation : The file read operation is performed just to read the data that are stored in the required file.
  • 12. Department of Information Technology, G H Patel College of Engineering and Technology 12 File Operations • File Write Operation : The file write operation is used to write the data to the file, again, generally at the current position. • File Append Operation : The file append operation is same as the file write operation except that the file append operation only add the data at the end of the file. • File Seek Operation : For random access files, a method is needed just to specify from where to take the data. Therefore, the file seek operation performs this task. • File Get Attribute Operation : The file get attributes operation are performed by the processes when they need to read the file attributes to do their required work. • File Set Attribute Operation : The file set attribute operation used to set some of the attributes (user settable attributes) after the file has been created. • File Rename Operation : The file rename operation is used to change the name of the existing file.
  • 13. Department of Information Technology, G H Patel College of Engineering and Technology 13 Directory structure • Directory is a symbol table of files that stores all the related information about the file it hold with the contents. Directory is a list of files. Each entry of a directory define a file information like a file name, type, its version number, size ,owner of file, access rights, date of creation and date of last backup. • Types:- • 1. Single level directory • 2. Two level directory • 3. Tree structured directory • 4. Acyclic graph directory • 5. General graph directory
  • 14. Department of Information Technology, G H Patel College of Engineering and Technology 14 Directory structure 1.Single level directory: - • In a single level directory system, all the files are placed in one directory
  • 15. Department of Information Technology, G H Patel College of Engineering and Technology 15 Directory structure 2.Two level directory: - • In the two-level directory system, the system maintains a master block that has one entry for each user.
  • 16. Department of Information Technology, G H Patel College of Engineering and Technology 16 Directory structure 3.Tree structured directory:- • In the tree-structured directory, the directory themselves are files. This leads to the possibility of having sub-directories that can contain files and sub-subdirectories.
  • 17. Department of Information Technology, G H Patel College of Engineering and Technology 17 Directory structure 4. Acyclic graph directory:- • The acyclic directory structure is an extension of the tree- structured directory structure.
  • 18. Department of Information Technology, G H Patel College of Engineering and Technology 18 Directory structure 5. General graph directory: - • The general graph directory is formed by adding links into an existing tree structure. It overcomes the problem of acyclic graph by allows the cycles in a directory.
  • 19. Department of Information Technology, G H Patel College of Engineering and Technology 19 File System Structure • File system is mounted and maintained by the secondary storage which provides by disk. • Characteristics of disk : same place is used for reading , writing , modification , user can access disk directly for any block of information • Concept of file system is used for the efficient and convenient access to the disk. • File system stricter allows to data to store , locate , retrieved data.
  • 20. Department of Information Technology, G H Patel College of Engineering and Technology 20
  • 21. Department of Information Technology, G H Patel College of Engineering and Technology 21 File System Structure IO control interface:- • It consists of device driver & interrupt hander. • Transfer data : main memory to disk system. Basic file system layer:- • Generate command for device driver. • Also manage buffer memory & cache. File Organization Module layer:- • Maintain information about files
  • 22. Department of Information Technology, G H Patel College of Engineering and Technology 22 File System Structure Logical file System Layer :- • Manages the meta data information. Application Program Layer :- • User creates application program. Physical hardware device layer:- • Contain actual hardware device.
  • 23. Department of Information Technology, G H Patel College of Engineering and Technology 23 File System Structure OS File System Format Windows FAT , FAT32 , NTFS UNIX UNIX File System Standard LINUX Extended File System
  • 24. Department of Information Technology, G H Patel College of Engineering and Technology 24
  • 25. Department of Information Technology, G H Patel College of Engineering and Technology 25 Allocation methods • Files are allocated disk spaces by operating system. Operating systems deploy following three main ways to allocate disk space to files. • Contiguous Allocation • Linked Allocation • Indexed Allocation
  • 26. Department of Information Technology, G H Patel College of Engineering and Technology 26 Allocation methods : Contiguous Allocation • Each file occupies a contiguous address space on disk. • Assigned disk address is in linear order. • Easy to implement. • External fragmentation is a major issue with this type of allocation technique.
  • 27. Department of Information Technology, G H Patel College of Engineering and Technology 27 Allocation methods : Linked Allocation • Each file carries a list of links to disk blocks. • Directory contains link / pointer to first block of a file. • No external fragmentation • Effectively used in sequential access file. • Inefficient in case of direct access file.
  • 28. Department of Information Technology, G H Patel College of Engineering and Technology 28 Allocation methods : Indexed Allocation • Provides solutions to problems of contiguous and linked allocation. • A index block is created having all pointers to files. • Each file has its own index block which stores the addresses of disk space occupied by the file. • Directory contains the addresses of index blocks of files.
  • 29. Department of Information Technology, G H Patel College of Engineering and Technology 29