SlideShare uma empresa Scribd logo
1 de 22
MODEL OF
FILE SYSTEM
FILES
File system is the one of the most important
parts of the OS to a user.

File is the collection of data created by user.
properties of files:-
 Long-term existence::
      Files or stored on disk or other storage and do not
disappear when a user logs off.

 Sharable between processes::
     Files have names and can have associated acccess
permission that permit controlled sharing
 Structure::
       Files can be organized into hierarchical or more
complex structure to refelect the relationships among
files.
FILE SYSTEMS:-
 It provide a means to store data organized as
    file as well as a collection of function that
      can be performed on file.Maintain a set of
attributes associated with the file.
               Operation include:-
        1)create 2)delete 3)open
         4)close 5)read 6)write
FILE STRUCTURE:-
      Files can be structured as a collection of
records or as a sequence of
bytes.Unix,Linux, WindowsMac OS's consider
file as a sequence of bytes.
Four terms are commonly used when
            discussing Files:


Field    Record    File      Database
 Field::
   It is a basic element of data .it contains a single value.it
fixed or variable length.
 data base::
 Collection of related data is called database.relationships
among elements of data are explicit.
 Files::
    Files is the collection of similar records.it treated as a
single entity.may be refferenced by name.
 Record::
  Record is a collection of related fields that can be treated
as a unit by some application programme.The one field is
the key -a unique identifier.
File system software
architecture:
FILE    SEQUENTIAL      INDEXED    INDEXED HASHED
                        SEQUENTIAL

                     LOGICAI I/O

              BASIC I/O SUPERVISIOR

                 BASIC FILE SYSTEM

DISK DEVICE DRIVER           TAPE DEVICE DRIVER
 BASIC FILE SYSTEM:-
  It also referred to as the physical I/O level.It deals with
blocks of data that are exchanged with disk or other mass
storage device. placement of blocks on the secondary
storage device.buffering blocks in main memory.It
considered the part of the operating system.
 BASIC I/O SUPERVISOR::
 It responsible for all file I/O initiation and termination.It
control structures that deals with device I/O,scheduling,and
file status are maintained.It select the device on which I/O to
be performed.It concerned with scheduling disk and tape
accessess to optimize performance.I/O buffers are
assigned and secondary mamory is allocated at this level.
 ACCESS CONTROL MODULE:
    Different access methods reflect different file
structures and different ways of accessing and
 processing the data.
 ACCESS CONTROL::
 In a system with multiple user, its important to
protect one user's object (file.directories) from other
users.
Tw o l e v e l s o f p r o t e c t i o n : :
Logon verification:
access determination:
USER ACCESS RIGHTS
  OWNER                      USER        ALL
  Usually      SPECIFI
                             GROU
 the initial     C
                               PS       All user
 creater of     USER
                            A set of   who have
   the file
                                       access to
               individual     user
                                          this
  Has full       Users      who are     system
   rights       who are       not
                designat
                            individu     These
 May grant       es by
                              ally     are public
  rights to       user
                            defined       files
  another
LOGICAL FILE SYSTEM::
 Logical I/O
      This level is the inter face between
the logical commands issued by a
programme and the
physical detail required by the disk.
PHYSICAL FILE SYSTEM::
 The physical organization of a file has to
  do with the way records are arranged
  and the characteristics of the medium
  used to store it.On magnetic disk,files
  can be organised in one of three ways::
SEQUENTIAL,DIRECT,INDEXED
SEQUENTIAL.
THE PILE


                           THE
THE DIRECT              SEQUENTIA
OR HASHED                 L FILE
   FILE
              FIVE OF
                THE
             COMMON
                FILE
                             THE
             ORGANIZA
   THE                     INDEXED
             TION ARE
 INDEXED                  SEQUENTIA
   FILE                       L
                             FILE
THE PILE::
 Least complicated form of file
  organization.
 Data are collected in the order they
  arrive.
 Each record consist of one burst of data.
 Purpose is simply to accumalate the
  mass of data and save it.
 Record access is by exhaustive search.
THE SEQUENTIAL FILE::
 Most common form of file structure.
 A fixed format is used for records.
 Key field uniquely identifies the
  record and determines storage order
 Typically used in batch application
 Only organization that is easily
  stored on taps as well as disk.
INDEXED SEQUENTIAL
FILE::
 Adds an index to the file to support
  random access.
 Adds an overflow file.
 Greatly reduces the time required to
  access a single record.
 Multiple levels of indexing can be used to
  provide greater efficiency in access.
INDEXED FILE::
Records are accessed only through their indexes.
 Variable length record can be employed.
 Exhaustive index contain one entry for every
  record in the main file
 Partial index contain entries to record where the
  field of interest exists.
 Used mostly in application where timelines of
  information is critical.
 Example would be airline reservation system and
  inventory control systems.
DIRECT OR HASHED FILE::
 Access directly any block of a known
  address.
 Makes uses of hashing on the key
  value.
 Often used where::
 very rapid access is required.
 fixed length records are used.
 records are always accessed one at a
FILE DIRECTORY::
 While writing fixed length record in keep track of the
  number of records and /or the number of bytes written in
  that file size is normally kept in the DIRECTORY where
  there is one entry for each file for file size.
 The MASTER FILE DIRECTORY (MFD) is stored
  immediately after the volume descriptor and lists the
  names and characteristics of every file name in the MFD
  can refer to program files.Early operating system
  supported only a single directory per volume.This
  directory was created by the file manager and contained
  the names of files.Usually organized in
  alphabetical.Spatical or chronological order.
OPERATIONS PERFORMAD ON A DIRECTORY::


           CREATE   DELETE      LIST
 SEARCH
            FILE     FILES   DIRECTORY




                                UPDATE
                              DIRECTORY
file system in operating system

Mais conteúdo relacionado

Mais procurados

Mais procurados (20)

Memory management
Memory managementMemory management
Memory management
 
File system
File systemFile system
File system
 
Introduction to Shell script
Introduction to Shell scriptIntroduction to Shell script
Introduction to Shell script
 
I/O Management
I/O ManagementI/O Management
I/O Management
 
Paging and segmentation
Paging and segmentationPaging and segmentation
Paging and segmentation
 
System calls
System callsSystem calls
System calls
 
Distributed file system
Distributed file systemDistributed file system
Distributed file system
 
File Management in Operating System
File Management in Operating SystemFile Management in Operating System
File Management in Operating System
 
Operating systems system structures
Operating systems   system structuresOperating systems   system structures
Operating systems system structures
 
Operating system memory management
Operating system memory managementOperating system memory management
Operating system memory management
 
File Management in Operating Systems
File Management in Operating SystemsFile Management in Operating Systems
File Management in Operating Systems
 
File management
File managementFile management
File management
 
Chapter 14 - Protection
Chapter 14 - ProtectionChapter 14 - Protection
Chapter 14 - Protection
 
Chapter 10 - File System Interface
Chapter 10 - File System InterfaceChapter 10 - File System Interface
Chapter 10 - File System Interface
 
CS9222 Advanced Operating System
CS9222 Advanced Operating SystemCS9222 Advanced Operating System
CS9222 Advanced Operating System
 
Course 102: Lecture 26: FileSystems in Linux (Part 1)
Course 102: Lecture 26: FileSystems in Linux (Part 1) Course 102: Lecture 26: FileSystems in Linux (Part 1)
Course 102: Lecture 26: FileSystems in Linux (Part 1)
 
8 memory management strategies
8 memory management strategies8 memory management strategies
8 memory management strategies
 
File organisation
File organisationFile organisation
File organisation
 
Loaders
LoadersLoaders
Loaders
 
directory structure and file system mounting
directory structure and file system mountingdirectory structure and file system mounting
directory structure and file system mounting
 

Semelhante a file system in operating system

Semelhante a file system in operating system (20)

Model of file system
Model of file systemModel of file system
Model of file system
 
Chapter 12.pptx
Chapter 12.pptxChapter 12.pptx
Chapter 12.pptx
 
Unit 3 chapter 1-file management
Unit 3 chapter 1-file managementUnit 3 chapter 1-file management
Unit 3 chapter 1-file management
 
OS file systems
OS file systemsOS file systems
OS file systems
 
file management
 file management file management
file management
 
Learn about the File Concept in operating systems ppt
Learn about the File Concept in operating systems pptLearn about the File Concept in operating systems ppt
Learn about the File Concept in operating systems ppt
 
File Systems
File SystemsFile Systems
File Systems
 
CH11.pdf
CH11.pdfCH11.pdf
CH11.pdf
 
File structure
File structureFile structure
File structure
 
OPERATING SYSTEM
OPERATING SYSTEMOPERATING SYSTEM
OPERATING SYSTEM
 
File management
File managementFile management
File management
 
OS Unit 4.pptx
OS Unit 4.pptxOS Unit 4.pptx
OS Unit 4.pptx
 
Operating Systems - Implementing File Systems
Operating Systems - Implementing File SystemsOperating Systems - Implementing File Systems
Operating Systems - Implementing File Systems
 
Unit 3 file management
Unit 3 file managementUnit 3 file management
Unit 3 file management
 
Unit ivos - file systems
Unit ivos - file systemsUnit ivos - file systems
Unit ivos - file systems
 
File System operating system operating system
File System  operating system operating systemFile System  operating system operating system
File System operating system operating system
 
Files
FilesFiles
Files
 
Introduction to File System
Introduction to File SystemIntroduction to File System
Introduction to File System
 
File system security
File system securityFile system security
File system security
 
OS Unit IV.ppt
OS Unit IV.pptOS Unit IV.ppt
OS Unit IV.ppt
 

Último

Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
AnaAcapella
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
ZurliaSoop
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
negromaestrong
 

Último (20)

Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
Spatium Project Simulation student brief
Spatium Project Simulation student briefSpatium Project Simulation student brief
Spatium Project Simulation student brief
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
Third Battle of Panipat detailed notes.pptx
Third Battle of Panipat detailed notes.pptxThird Battle of Panipat detailed notes.pptx
Third Battle of Panipat detailed notes.pptx
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docx
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
Dyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxDyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptx
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
 
Magic bus Group work1and 2 (Team 3).pptx
Magic bus Group work1and 2 (Team 3).pptxMagic bus Group work1and 2 (Team 3).pptx
Magic bus Group work1and 2 (Team 3).pptx
 

file system in operating system

  • 2. FILES File system is the one of the most important parts of the OS to a user. File is the collection of data created by user.
  • 3. properties of files:-  Long-term existence:: Files or stored on disk or other storage and do not disappear when a user logs off.  Sharable between processes:: Files have names and can have associated acccess permission that permit controlled sharing  Structure:: Files can be organized into hierarchical or more complex structure to refelect the relationships among files.
  • 4. FILE SYSTEMS:-  It provide a means to store data organized as file as well as a collection of function that can be performed on file.Maintain a set of attributes associated with the file.  Operation include:- 1)create 2)delete 3)open 4)close 5)read 6)write
  • 5. FILE STRUCTURE:- Files can be structured as a collection of records or as a sequence of bytes.Unix,Linux, WindowsMac OS's consider file as a sequence of bytes.
  • 6. Four terms are commonly used when discussing Files: Field Record File Database
  • 7.  Field:: It is a basic element of data .it contains a single value.it fixed or variable length.  data base:: Collection of related data is called database.relationships among elements of data are explicit.  Files:: Files is the collection of similar records.it treated as a single entity.may be refferenced by name.  Record:: Record is a collection of related fields that can be treated as a unit by some application programme.The one field is the key -a unique identifier.
  • 8. File system software architecture: FILE SEQUENTIAL INDEXED INDEXED HASHED SEQUENTIAL LOGICAI I/O BASIC I/O SUPERVISIOR BASIC FILE SYSTEM DISK DEVICE DRIVER TAPE DEVICE DRIVER
  • 9.  BASIC FILE SYSTEM:- It also referred to as the physical I/O level.It deals with blocks of data that are exchanged with disk or other mass storage device. placement of blocks on the secondary storage device.buffering blocks in main memory.It considered the part of the operating system.  BASIC I/O SUPERVISOR:: It responsible for all file I/O initiation and termination.It control structures that deals with device I/O,scheduling,and file status are maintained.It select the device on which I/O to be performed.It concerned with scheduling disk and tape accessess to optimize performance.I/O buffers are assigned and secondary mamory is allocated at this level.
  • 10.  ACCESS CONTROL MODULE: Different access methods reflect different file structures and different ways of accessing and processing the data.  ACCESS CONTROL:: In a system with multiple user, its important to protect one user's object (file.directories) from other users. Tw o l e v e l s o f p r o t e c t i o n : : Logon verification: access determination:
  • 11. USER ACCESS RIGHTS OWNER USER ALL Usually SPECIFI GROU the initial C PS All user creater of USER A set of who have the file access to individual user this Has full Users who are system rights who are not designat individu These May grant es by ally are public rights to user defined files another
  • 12. LOGICAL FILE SYSTEM:: Logical I/O This level is the inter face between the logical commands issued by a programme and the physical detail required by the disk.
  • 13. PHYSICAL FILE SYSTEM::  The physical organization of a file has to do with the way records are arranged and the characteristics of the medium used to store it.On magnetic disk,files can be organised in one of three ways:: SEQUENTIAL,DIRECT,INDEXED SEQUENTIAL.
  • 14. THE PILE THE THE DIRECT SEQUENTIA OR HASHED L FILE FILE FIVE OF THE COMMON FILE THE ORGANIZA THE INDEXED TION ARE INDEXED SEQUENTIA FILE L FILE
  • 15. THE PILE::  Least complicated form of file organization.  Data are collected in the order they arrive.  Each record consist of one burst of data.  Purpose is simply to accumalate the mass of data and save it.  Record access is by exhaustive search.
  • 16. THE SEQUENTIAL FILE::  Most common form of file structure.  A fixed format is used for records.  Key field uniquely identifies the record and determines storage order  Typically used in batch application  Only organization that is easily stored on taps as well as disk.
  • 17. INDEXED SEQUENTIAL FILE::  Adds an index to the file to support random access.  Adds an overflow file.  Greatly reduces the time required to access a single record.  Multiple levels of indexing can be used to provide greater efficiency in access.
  • 18. INDEXED FILE:: Records are accessed only through their indexes.  Variable length record can be employed.  Exhaustive index contain one entry for every record in the main file  Partial index contain entries to record where the field of interest exists.  Used mostly in application where timelines of information is critical.  Example would be airline reservation system and inventory control systems.
  • 19. DIRECT OR HASHED FILE::  Access directly any block of a known address.  Makes uses of hashing on the key value.  Often used where::  very rapid access is required.  fixed length records are used.  records are always accessed one at a
  • 20. FILE DIRECTORY::  While writing fixed length record in keep track of the number of records and /or the number of bytes written in that file size is normally kept in the DIRECTORY where there is one entry for each file for file size.  The MASTER FILE DIRECTORY (MFD) is stored immediately after the volume descriptor and lists the names and characteristics of every file name in the MFD can refer to program files.Early operating system supported only a single directory per volume.This directory was created by the file manager and contained the names of files.Usually organized in alphabetical.Spatical or chronological order.
  • 21. OPERATIONS PERFORMAD ON A DIRECTORY:: CREATE DELETE LIST SEARCH FILE FILES DIRECTORY UPDATE DIRECTORY