SlideShare a Scribd company logo
1 of 22
UNIT – V
FILE MANAGEMENT
PREPARED BY,
V.SANTHI
ASSISTANT PROFESSOR,
DEPARTMENT OF BCA,
BON SECOURS COLLEGE FOR WOMEN,
THANJAVUR.
Introduction
 File Manager’s efficiency directly affected
by:
 How the system’s files are organized
 How files are stored
 How each file’s records are structured
 How user access to all files is protected
2
The File Manager
 File management system
 Software
 File access responsibilities
 Creating, deleting, modifying, controlling
3
Responsibilities of the File
Manager
 Four tasks
1.File storage tracking
2. Policy implementation
 Determine where and how files are stored
 Efficiently use available storage space
 Provide efficient file access
3. File allocation if user access cleared
 Record file use
4. File Deallocation
 Return file to storage
 Communicate file availability
4
Responsibilities of the File
Manager
 Policy determines:
 File storage location
 System and user access
 Uses device-independent commands
 Access to material
 Two factors
 Factor 1: flexibility of access to information
 Share files
 Provide distributed access
 Allow users to browse public directories
5
Responsibilities of the File
Manager
 Factor 2: subsequent protection
 Prevent system malfunctions
 Security checks
 Account numbers and passwords
 File allocation
 Activate secondary storage device, load file into
memory, and update records
 File deallocation
 Update file tables, rewrite file (if revised), and
notify waiting processes of file availability
6
Definitions
 Field
 Group of related bytes
 Identified by user (name, type, size)
 Record
 Group of related fields
 File
 Group of related records
 Information used by specific application
programs
 Report generation
 Flat file
 No connections to other files; no dimensionality
7
Definitions
 Database
 Group of related files
 Interconnected at various levels
 Give users flexibility of access to stored data
 Program files
 Contain instructions
 Data files
 Contain data
 Directories (folders)
 Listings of filenames and their attributes
8
9
Interacting with the File
Manager
 Most common user commands
 OPEN, DELETE, RENAME,
COPY
10
Interacting with the File
Manager
 Device-independent
 Physical location: knowledge not needed
 Cylinder, surface, sector
 Device medium: knowledge not needed
 Tape, magnetic disk, optical disc, flash
storage
 Network knowledge: not needed
11
Interacting with the File
Manager
 Logical commands
 Broken into lower-level signals
 Example: READ
 Move read/write heads to record cylinder
 Wait for rotational delay (sector containing
record passes under read/write head)
 Activate appropriate read/write head and read
record
 Transfer record to main memory
 Send flag indicating free device for another
request
 System monitors for error conditions
12
Typical Volume Configuration
 Volume
 Secondary storage unit (removable,
nonremovable)
 Multi-file volume
 Contains many files
 Multi-volume files
 Extremely large files spread across several
volumes
 Volume name
 File manager manages
 Easily accessible
 Innermost part of CD, beginning of tape, first
sector of outermost track
13
Typical Volume Configuration
14
Typical Volume Configuration
 Master file directory (MFD)
 Stored immediately after volume descriptor
 Lists
 Names and characteristics of every file in
volume
 File names (program files, data files, system
files)
 Subdirectories
 If supported by file manager
 Remainder of volume
 Used for file storage 15
Typical Volume Configuration
 Single directory per volume
 Supported by early operating systems
 Disadvantages
 Long search time for individual file
 Directory space filled before disk storage space
filled
 Users cannot create subdirectories
 Users cannot safeguard their files
 Each program needs unique name
 Even those serving many users
16
Introducing Subdirectories
 File managers
 Create MFD for each volume
 Contains file and subdirectory entries
 Subdirectory
 Created upon account opening
 Treated as file
 Flagged in MFD as subdirectory
 Unique properties
 Improvement over single directory scheme
 Problems remain: unable to logically group files
17
Introducing Subdirectories
 File managers today
 Users create own subdirectories (folders)
 Related files grouped together
 Implemented as upside-down tree
 Efficient system searching of individual
directories
 May require several directories to reach file
18
19
Introducing Subdirectories
 File descriptor
 Filename: each must be unique
 File type: organization and usage
 System dependent
 File size: for convenience
 File location
 Identifies first physical block (or all blocks)
 Date and time of creation
 Owner
 Protection information: access restrictions
 Record size: fixed size, maximum size
20
File-Naming Conventions
 Filename components
 Relative filename and extension
 Complete filename (absolute filename)
 Includes all path information
 Relative filename
 Name without path information
 Appears in directory listings, folders
 Provides filename differentiation within directory
 Varies in length
 One to many characters
 Operating system specific
21
22

More Related Content

Similar to Operating System File Management Unit v.pptx

File Management
File ManagementFile Management
File Management
Najma Alam
 

Similar to Operating System File Management Unit v.pptx (20)

Chapter 12.pptx
Chapter 12.pptxChapter 12.pptx
Chapter 12.pptx
 
Unit 4 File and Data Management
Unit 4 File and Data ManagementUnit 4 File and Data Management
Unit 4 File and Data Management
 
Unit 4 file and data management
Unit 4 file and data managementUnit 4 file and data management
Unit 4 file and data management
 
Unit 4 File and Data Management
Unit 4 File and Data ManagementUnit 4 File and Data Management
Unit 4 File and Data Management
 
File Management in Operating System
File Management in Operating SystemFile Management in Operating System
File Management in Operating System
 
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
 
Chapter12
Chapter12Chapter12
Chapter12
 
File concept and access method
File concept and access methodFile concept and access method
File concept and access method
 
File System operating system operating system
File System  operating system operating systemFile System  operating system operating system
File System operating system operating system
 
File structure
File structureFile structure
File structure
 
File Management
File ManagementFile Management
File Management
 
Ch10
Ch10Ch10
Ch10
 
Files
FilesFiles
Files
 
File system security
File system securityFile system security
File system security
 
OS Unit 4.pptx
OS Unit 4.pptxOS Unit 4.pptx
OS Unit 4.pptx
 
FILE SYSTEMS IN WINDOWS OPERATING SYSTEMS
FILE SYSTEMS IN WINDOWS OPERATING SYSTEMSFILE SYSTEMS IN WINDOWS OPERATING SYSTEMS
FILE SYSTEMS IN WINDOWS OPERATING SYSTEMS
 
File Protection
File ProtectionFile Protection
File Protection
 
File Protection
File ProtectionFile Protection
File Protection
 
Introduction to File System
Introduction to File SystemIntroduction to File System
Introduction to File System
 

More from SanthiNivas

More from SanthiNivas (20)

packages.ppt
packages.pptpackages.ppt
packages.ppt
 
exception-handling-in-java.ppt
exception-handling-in-java.pptexception-handling-in-java.ppt
exception-handling-in-java.ppt
 
Introduction to PHP.ppt
Introduction to PHP.pptIntroduction to PHP.ppt
Introduction to PHP.ppt
 
static methods.pptx
static methods.pptxstatic methods.pptx
static methods.pptx
 
Topologies.ppt
Topologies.pptTopologies.ppt
Topologies.ppt
 
transmission media.ppt
transmission media.ppttransmission media.ppt
transmission media.ppt
 
Internet Basics Presentation.pptx
Internet Basics Presentation.pptxInternet Basics Presentation.pptx
Internet Basics Presentation.pptx
 
Topologies.ppt
Topologies.pptTopologies.ppt
Topologies.ppt
 
Features of Java.pptx
Features of Java.pptxFeatures of Java.pptx
Features of Java.pptx
 
Output Devices.pptx
Output Devices.pptxOutput Devices.pptx
Output Devices.pptx
 
Input Devices.pptx
Input Devices.pptxInput Devices.pptx
Input Devices.pptx
 
Input and Output Devices
Input and Output DevicesInput and Output Devices
Input and Output Devices
 
HTML
HTMLHTML
HTML
 
DDA ALGORITHM.pdf
DDA ALGORITHM.pdfDDA ALGORITHM.pdf
DDA ALGORITHM.pdf
 
Computer Graphics Unit 2
Computer Graphics Unit 2Computer Graphics Unit 2
Computer Graphics Unit 2
 
Computer Graphics
Computer GraphicsComputer Graphics
Computer Graphics
 
Page Layout and Background
Page Layout and BackgroundPage Layout and Background
Page Layout and Background
 
3-D Transformation in Computer Graphics
3-D Transformation in Computer Graphics3-D Transformation in Computer Graphics
3-D Transformation in Computer Graphics
 
4. THREE DIMENSIONAL DISPLAY METHODS
4.	THREE DIMENSIONAL DISPLAY METHODS4.	THREE DIMENSIONAL DISPLAY METHODS
4. THREE DIMENSIONAL DISPLAY METHODS
 
-Working with Text in Corel Draw
-Working with Text in Corel Draw-Working with Text in Corel Draw
-Working with Text in Corel Draw
 

Recently uploaded

會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
中 央社
 
The basics of sentences session 4pptx.pptx
The basics of sentences session 4pptx.pptxThe basics of sentences session 4pptx.pptx
The basics of sentences session 4pptx.pptx
heathfieldcps1
 

Recently uploaded (20)

Exploring Gemini AI and Integration with MuleSoft | MuleSoft Mysore Meetup #45
Exploring Gemini AI and Integration with MuleSoft | MuleSoft Mysore Meetup #45Exploring Gemini AI and Integration with MuleSoft | MuleSoft Mysore Meetup #45
Exploring Gemini AI and Integration with MuleSoft | MuleSoft Mysore Meetup #45
 
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...
 
IPL Online Quiz by Pragya; Question Set.
IPL Online Quiz by Pragya; Question Set.IPL Online Quiz by Pragya; Question Set.
IPL Online Quiz by Pragya; Question Set.
 
Operations Management - Book1.p - Dr. Abdulfatah A. Salem
Operations Management - Book1.p  - Dr. Abdulfatah A. SalemOperations Management - Book1.p  - Dr. Abdulfatah A. Salem
Operations Management - Book1.p - Dr. Abdulfatah A. Salem
 
Software testing for project report .pdf
Software testing for project report .pdfSoftware testing for project report .pdf
Software testing for project report .pdf
 
How to Analyse Profit of a Sales Order in Odoo 17
How to Analyse Profit of a Sales Order in Odoo 17How to Analyse Profit of a Sales Order in Odoo 17
How to Analyse Profit of a Sales Order in Odoo 17
 
Navigating the Misinformation Minefield: The Role of Higher Education in the ...
Navigating the Misinformation Minefield: The Role of Higher Education in the ...Navigating the Misinformation Minefield: The Role of Higher Education in the ...
Navigating the Misinformation Minefield: The Role of Higher Education in the ...
 
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
 
Envelope of Discrepancy in Orthodontics: Enhancing Precision in Treatment
 Envelope of Discrepancy in Orthodontics: Enhancing Precision in Treatment Envelope of Discrepancy in Orthodontics: Enhancing Precision in Treatment
Envelope of Discrepancy in Orthodontics: Enhancing Precision in Treatment
 
MichaelStarkes_UncutGemsProjectSummary.pdf
MichaelStarkes_UncutGemsProjectSummary.pdfMichaelStarkes_UncutGemsProjectSummary.pdf
MichaelStarkes_UncutGemsProjectSummary.pdf
 
The Ball Poem- John Berryman_20240518_001617_0000.pptx
The Ball Poem- John Berryman_20240518_001617_0000.pptxThe Ball Poem- John Berryman_20240518_001617_0000.pptx
The Ball Poem- John Berryman_20240518_001617_0000.pptx
 
Features of Video Calls in the Discuss Module in Odoo 17
Features of Video Calls in the Discuss Module in Odoo 17Features of Video Calls in the Discuss Module in Odoo 17
Features of Video Calls in the Discuss Module in Odoo 17
 
demyelinated disorder: multiple sclerosis.pptx
demyelinated disorder: multiple sclerosis.pptxdemyelinated disorder: multiple sclerosis.pptx
demyelinated disorder: multiple sclerosis.pptx
 
The basics of sentences session 4pptx.pptx
The basics of sentences session 4pptx.pptxThe basics of sentences session 4pptx.pptx
The basics of sentences session 4pptx.pptx
 
ANTI PARKISON DRUGS.pptx
ANTI         PARKISON          DRUGS.pptxANTI         PARKISON          DRUGS.pptx
ANTI PARKISON DRUGS.pptx
 
MOOD STABLIZERS DRUGS.pptx
MOOD     STABLIZERS           DRUGS.pptxMOOD     STABLIZERS           DRUGS.pptx
MOOD STABLIZERS DRUGS.pptx
 
Graduate Outcomes Presentation Slides - English (v3).pptx
Graduate Outcomes Presentation Slides - English (v3).pptxGraduate Outcomes Presentation Slides - English (v3).pptx
Graduate Outcomes Presentation Slides - English (v3).pptx
 
HVAC System | Audit of HVAC System | Audit and regulatory Comploance.pptx
HVAC System | Audit of HVAC System | Audit and regulatory Comploance.pptxHVAC System | Audit of HVAC System | Audit and regulatory Comploance.pptx
HVAC System | Audit of HVAC System | Audit and regulatory Comploance.pptx
 
Mattingly "AI and Prompt Design: LLMs with Text Classification and Open Source"
Mattingly "AI and Prompt Design: LLMs with Text Classification and Open Source"Mattingly "AI and Prompt Design: LLMs with Text Classification and Open Source"
Mattingly "AI and Prompt Design: LLMs with Text Classification and Open Source"
 
An Overview of the Odoo 17 Discuss App.pptx
An Overview of the Odoo 17 Discuss App.pptxAn Overview of the Odoo 17 Discuss App.pptx
An Overview of the Odoo 17 Discuss App.pptx
 

Operating System File Management Unit v.pptx

  • 1. UNIT – V FILE MANAGEMENT PREPARED BY, V.SANTHI ASSISTANT PROFESSOR, DEPARTMENT OF BCA, BON SECOURS COLLEGE FOR WOMEN, THANJAVUR.
  • 2. Introduction  File Manager’s efficiency directly affected by:  How the system’s files are organized  How files are stored  How each file’s records are structured  How user access to all files is protected 2
  • 3. The File Manager  File management system  Software  File access responsibilities  Creating, deleting, modifying, controlling 3
  • 4. Responsibilities of the File Manager  Four tasks 1.File storage tracking 2. Policy implementation  Determine where and how files are stored  Efficiently use available storage space  Provide efficient file access 3. File allocation if user access cleared  Record file use 4. File Deallocation  Return file to storage  Communicate file availability 4
  • 5. Responsibilities of the File Manager  Policy determines:  File storage location  System and user access  Uses device-independent commands  Access to material  Two factors  Factor 1: flexibility of access to information  Share files  Provide distributed access  Allow users to browse public directories 5
  • 6. Responsibilities of the File Manager  Factor 2: subsequent protection  Prevent system malfunctions  Security checks  Account numbers and passwords  File allocation  Activate secondary storage device, load file into memory, and update records  File deallocation  Update file tables, rewrite file (if revised), and notify waiting processes of file availability 6
  • 7. Definitions  Field  Group of related bytes  Identified by user (name, type, size)  Record  Group of related fields  File  Group of related records  Information used by specific application programs  Report generation  Flat file  No connections to other files; no dimensionality 7
  • 8. Definitions  Database  Group of related files  Interconnected at various levels  Give users flexibility of access to stored data  Program files  Contain instructions  Data files  Contain data  Directories (folders)  Listings of filenames and their attributes 8
  • 9. 9
  • 10. Interacting with the File Manager  Most common user commands  OPEN, DELETE, RENAME, COPY 10
  • 11. Interacting with the File Manager  Device-independent  Physical location: knowledge not needed  Cylinder, surface, sector  Device medium: knowledge not needed  Tape, magnetic disk, optical disc, flash storage  Network knowledge: not needed 11
  • 12. Interacting with the File Manager  Logical commands  Broken into lower-level signals  Example: READ  Move read/write heads to record cylinder  Wait for rotational delay (sector containing record passes under read/write head)  Activate appropriate read/write head and read record  Transfer record to main memory  Send flag indicating free device for another request  System monitors for error conditions 12
  • 13. Typical Volume Configuration  Volume  Secondary storage unit (removable, nonremovable)  Multi-file volume  Contains many files  Multi-volume files  Extremely large files spread across several volumes  Volume name  File manager manages  Easily accessible  Innermost part of CD, beginning of tape, first sector of outermost track 13
  • 15. Typical Volume Configuration  Master file directory (MFD)  Stored immediately after volume descriptor  Lists  Names and characteristics of every file in volume  File names (program files, data files, system files)  Subdirectories  If supported by file manager  Remainder of volume  Used for file storage 15
  • 16. Typical Volume Configuration  Single directory per volume  Supported by early operating systems  Disadvantages  Long search time for individual file  Directory space filled before disk storage space filled  Users cannot create subdirectories  Users cannot safeguard their files  Each program needs unique name  Even those serving many users 16
  • 17. Introducing Subdirectories  File managers  Create MFD for each volume  Contains file and subdirectory entries  Subdirectory  Created upon account opening  Treated as file  Flagged in MFD as subdirectory  Unique properties  Improvement over single directory scheme  Problems remain: unable to logically group files 17
  • 18. Introducing Subdirectories  File managers today  Users create own subdirectories (folders)  Related files grouped together  Implemented as upside-down tree  Efficient system searching of individual directories  May require several directories to reach file 18
  • 19. 19
  • 20. Introducing Subdirectories  File descriptor  Filename: each must be unique  File type: organization and usage  System dependent  File size: for convenience  File location  Identifies first physical block (or all blocks)  Date and time of creation  Owner  Protection information: access restrictions  Record size: fixed size, maximum size 20
  • 21. File-Naming Conventions  Filename components  Relative filename and extension  Complete filename (absolute filename)  Includes all path information  Relative filename  Name without path information  Appears in directory listings, folders  Provides filename differentiation within directory  Varies in length  One to many characters  Operating system specific 21
  • 22. 22