SlideShare a Scribd company logo
Chapter-10
File-System Interface
10.4 File-System Mounting
• File must be opened before it is used, similarly a file system must be mounted
before it can be available to processes on the system.
• The directory structure can be built out of multiple volumes, which must be
mounted to make them available within the file-system name space.
• The mount procedure is straightforward.
• The operating system is given the name of the device and the mount point—
the location within the file structure where the file system is to be attached.
• A mount point is an empty directory.
• For instance, on a UNIX system, a file system containing a user's home directories
might be mounted as /home; then, to access the directory structure within that
file system, we could precede the directory names with ftiome, as in /homc/jane.
• Mounting that file system under /users would result in the path name /users/jane,
which we could use to reach the same directory.
• Next, the operating system verifies that the device contains a valid file system.
• It does so by asking the device driver to read the device directory and verifying that
the directory has the expected format.
• Finally, the operating system notes in its directory structure that a file system is
mounted at the specified mount point.
• This scheme enables the operating system to traverse its directory structure,
switching among file systems as appropriate.
Chapter-10-OS.pptx-Operating System Course for MSc Computer Science Programme
10.5 File Sharing
• The motivation for file sharing and some of the difficulties involved in allowing users to share files.
• Such file sharing is very desirable for users who want to collaborate and to reduce the effort
required to achieve a computing goal
• User-oriented operating systems must accommodate the need to share files in spite of the inherent
difficulties.
• We begin by discussing general issues that arise when multiple users share files.
• Once multiple users are allowed to share files, the challenge is to extend sharing to multiple file
systems, including remote file systems; and we discuss that challenge as well.
• Finally, we consider what to do about conflicting actions occurring on shared files.
• For instance, if multiple users are writing to a file, should all the writes be allowed to occur, or
should the operating system protect the user actions from one another?
15.1: Multiple Users
• Access Control and Protection:
• Operating systems with multiple users must handle file sharing, naming, and protection.
• Users can access each other’s files by default or require explicit access grants.
• Concepts like file owner and group play a crucial role.
• Owner and Group Concepts:
• The file owner has the most control over the file and can modify attributes.
• Group members share access to the file.
• Permissions are defined by the file’s owner.
• Permission Attributes:
• Owner and group IDs are stored with file attributes.
• When a user requests an operation, the system compares IDs to determine applicable permissions.
• These concepts ensure consistent access control while balancing security and usability in multi-user
environments
• Certainly! Let’s delve into the world of remote file sharing and explore different methods used for accessing files across networks.
• Manual File Transfer (FTP):
• The earliest method involved manually transferring files between machines using File Transfer Protocol (FTP).
• Users would initiate FTP sessions to transfer files from one machine to another.
• FTP supports both anonymous access (where users can transfer files without an account) and authenticated access.
• The World Wide Web also relies on FTP for anonymous file exchange.
• Distributed File Systems (DFS):
• DFS provides a more structured approach to remote file sharing.
• In DFS, remote directories are visible from a local machine.
• It allows seamless integration between the local and remote file systems.
• However, managing DFS can be complex due to tight integration.
• The World Wide Web (WWW):
• The WWW, in some ways, reverts to manual file transfer.
• Users access remote files through browsers, which act as wrappers for FTP.
• While browsing, separate operations (essentially FTP requests) are used to transfer files.
• Client-Server Model:
• In remote file systems, a computer can mount file systems from remote machines.
• The machine containing the files acts as the server, and the requesting machine is the client.
• The server declares available resources (files) and specifies which clients can access them.
• Client identification can be challenging, but the client-server relationship is common in networked environments.
• Remember that these methods facilitate efficient file sharing across networks, each with its own advantages and complexities12
. Whether it’s manual FTP, structured DFS, or the simplicity of the WWW, remote file access plays a
crucial role in today’s interconnected world.
15.3: Consistency semantics
• It play a crucial role in evaluating file systems that support file sharing.
• These semantics define how multiple users can access a shared file
simultaneously and specify when modifications made by one user become
visible to others
• UNIX Semantics:
• Immediate visibility of modifications to all users.
• Shared files have a single physical image, leading to delays.
• Session Semantics (Andrew file system):
• Changes made by one user are not immediately visible to others.
• Only visible to sessions starting later.
• Efficient concurrent access without delays.
• Immutable-Shared-Files Semantics:
• Users cannot modify files declared as shared.
• Immutable files have fixed names and content.
• These semantics ensure consistent file access across users while balancing
functionality and performance .

More Related Content

Similar to Chapter-10-OS.pptx-Operating System Course for MSc Computer Science Programme (20)

PPTX
File Sharing-R.D.Sivakumar
Sivakumar R D .
 
PPT
Os10
issbp
 
PDF
CH11.pdf
ImranKhan880955
 
PPTX
a distributed implementation of the classical time-sharing model of a file sy...
Manonmani40
 
PDF
ITFT_File system interface in Operating System
Sneh Prabha
 
PPT
Chapter 8 distributed file systems
AbDul ThaYyal
 
PPT
Distributed file system
Naza hamed Jan
 
PPTX
Distributed file systems chapter 9
Alagappa Government Arts College, Karaikudi
 
PPT
Unit 3 chapter 1-file management
Kalai Selvi
 
PDF
Introduction to distributed file systems
Viet-Trung TRAN
 
PPT
Dfs (Distributed computing)
Sri Prasanna
 
ODP
Distributed File System
Ntu
 
PPT
3. distributed file system requirements
AbDul ThaYyal
 
PDF
distributes systemss and its power point
AbdulmejidTsegaye
 
PPTX
Dos unit 4
JebasheelaSJ
 
PPT
Ch16 OS
C.U
 
PPT
OSCh16
Joe Christensen
 
PPT
Unit 3 file management
Kalai Selvi
 
File Sharing-R.D.Sivakumar
Sivakumar R D .
 
Os10
issbp
 
CH11.pdf
ImranKhan880955
 
a distributed implementation of the classical time-sharing model of a file sy...
Manonmani40
 
ITFT_File system interface in Operating System
Sneh Prabha
 
Chapter 8 distributed file systems
AbDul ThaYyal
 
Distributed file system
Naza hamed Jan
 
Distributed file systems chapter 9
Alagappa Government Arts College, Karaikudi
 
Unit 3 chapter 1-file management
Kalai Selvi
 
Introduction to distributed file systems
Viet-Trung TRAN
 
Dfs (Distributed computing)
Sri Prasanna
 
Distributed File System
Ntu
 
3. distributed file system requirements
AbDul ThaYyal
 
distributes systemss and its power point
AbdulmejidTsegaye
 
Dos unit 4
JebasheelaSJ
 
Ch16 OS
C.U
 
Unit 3 file management
Kalai Selvi
 

Recently uploaded (20)

PPTX
How to Handle Salesperson Commision in Odoo 18 Sales
Celine George
 
PPTX
How to Convert an Opportunity into a Quotation in Odoo 18 CRM
Celine George
 
PPTX
2025 Winter SWAYAM NPTEL & A Student.pptx
Utsav Yagnik
 
PPTX
How to Set Up Tags in Odoo 18 - Odoo Slides
Celine George
 
PPTX
I AM MALALA The Girl Who Stood Up for Education and was Shot by the Taliban...
Beena E S
 
PPTX
Stereochemistry-Optical Isomerism in organic compoundsptx
Tarannum Nadaf-Mansuri
 
PPTX
How to Create a PDF Report in Odoo 18 - Odoo Slides
Celine George
 
PDF
CONCURSO DE POESIA “POETUFAS – PASSOS SUAVES PELO VERSO.pdf
Colégio Santa Teresinha
 
PDF
DIGESTION OF CARBOHYDRATES,PROTEINS,LIPIDS
raviralanaresh2
 
PDF
Women's Health: Essential Tips for Every Stage.pdf
Iftikhar Ahmed
 
PPTX
SPINA BIFIDA: NURSING MANAGEMENT .pptx
PRADEEP ABOTHU
 
PDF
Biological Bilingual Glossary Hindi and English Medium
World of Wisdom
 
PPTX
Neurodivergent Friendly Schools - Slides from training session
Pooky Knightsmith
 
PPTX
Unit 2 COMMERCIAL BANKING, Corporate banking.pptx
AnubalaSuresh1
 
PPTX
Universal immunization Programme (UIP).pptx
Vishal Chanalia
 
PDF
Lesson 2 - WATER,pH, BUFFERS, AND ACID-BASE.pdf
marvinnbustamante1
 
PDF
0725.WHITEPAPER-UNIQUEWAYSOFPROTOTYPINGANDUXNOW.pdf
Thomas GIRARD, MA, CDP
 
PPTX
ASRB NET 2023 PREVIOUS YEAR QUESTION PAPER GENETICS AND PLANT BREEDING BY SAT...
Krashi Coaching
 
PDF
Stokey: A Jewish Village by Rachel Kolsky
History of Stoke Newington
 
PPTX
MENINGITIS: NURSING MANAGEMENT, BACTERIAL MENINGITIS, VIRAL MENINGITIS.pptx
PRADEEP ABOTHU
 
How to Handle Salesperson Commision in Odoo 18 Sales
Celine George
 
How to Convert an Opportunity into a Quotation in Odoo 18 CRM
Celine George
 
2025 Winter SWAYAM NPTEL & A Student.pptx
Utsav Yagnik
 
How to Set Up Tags in Odoo 18 - Odoo Slides
Celine George
 
I AM MALALA The Girl Who Stood Up for Education and was Shot by the Taliban...
Beena E S
 
Stereochemistry-Optical Isomerism in organic compoundsptx
Tarannum Nadaf-Mansuri
 
How to Create a PDF Report in Odoo 18 - Odoo Slides
Celine George
 
CONCURSO DE POESIA “POETUFAS – PASSOS SUAVES PELO VERSO.pdf
Colégio Santa Teresinha
 
DIGESTION OF CARBOHYDRATES,PROTEINS,LIPIDS
raviralanaresh2
 
Women's Health: Essential Tips for Every Stage.pdf
Iftikhar Ahmed
 
SPINA BIFIDA: NURSING MANAGEMENT .pptx
PRADEEP ABOTHU
 
Biological Bilingual Glossary Hindi and English Medium
World of Wisdom
 
Neurodivergent Friendly Schools - Slides from training session
Pooky Knightsmith
 
Unit 2 COMMERCIAL BANKING, Corporate banking.pptx
AnubalaSuresh1
 
Universal immunization Programme (UIP).pptx
Vishal Chanalia
 
Lesson 2 - WATER,pH, BUFFERS, AND ACID-BASE.pdf
marvinnbustamante1
 
0725.WHITEPAPER-UNIQUEWAYSOFPROTOTYPINGANDUXNOW.pdf
Thomas GIRARD, MA, CDP
 
ASRB NET 2023 PREVIOUS YEAR QUESTION PAPER GENETICS AND PLANT BREEDING BY SAT...
Krashi Coaching
 
Stokey: A Jewish Village by Rachel Kolsky
History of Stoke Newington
 
MENINGITIS: NURSING MANAGEMENT, BACTERIAL MENINGITIS, VIRAL MENINGITIS.pptx
PRADEEP ABOTHU
 
Ad

Chapter-10-OS.pptx-Operating System Course for MSc Computer Science Programme

  • 2. 10.4 File-System Mounting • File must be opened before it is used, similarly a file system must be mounted before it can be available to processes on the system. • The directory structure can be built out of multiple volumes, which must be mounted to make them available within the file-system name space. • The mount procedure is straightforward. • The operating system is given the name of the device and the mount point— the location within the file structure where the file system is to be attached.
  • 3. • A mount point is an empty directory. • For instance, on a UNIX system, a file system containing a user's home directories might be mounted as /home; then, to access the directory structure within that file system, we could precede the directory names with ftiome, as in /homc/jane. • Mounting that file system under /users would result in the path name /users/jane, which we could use to reach the same directory. • Next, the operating system verifies that the device contains a valid file system. • It does so by asking the device driver to read the device directory and verifying that the directory has the expected format. • Finally, the operating system notes in its directory structure that a file system is mounted at the specified mount point. • This scheme enables the operating system to traverse its directory structure, switching among file systems as appropriate.
  • 5. 10.5 File Sharing • The motivation for file sharing and some of the difficulties involved in allowing users to share files. • Such file sharing is very desirable for users who want to collaborate and to reduce the effort required to achieve a computing goal • User-oriented operating systems must accommodate the need to share files in spite of the inherent difficulties. • We begin by discussing general issues that arise when multiple users share files. • Once multiple users are allowed to share files, the challenge is to extend sharing to multiple file systems, including remote file systems; and we discuss that challenge as well. • Finally, we consider what to do about conflicting actions occurring on shared files. • For instance, if multiple users are writing to a file, should all the writes be allowed to occur, or should the operating system protect the user actions from one another?
  • 6. 15.1: Multiple Users • Access Control and Protection: • Operating systems with multiple users must handle file sharing, naming, and protection. • Users can access each other’s files by default or require explicit access grants. • Concepts like file owner and group play a crucial role. • Owner and Group Concepts: • The file owner has the most control over the file and can modify attributes. • Group members share access to the file. • Permissions are defined by the file’s owner. • Permission Attributes: • Owner and group IDs are stored with file attributes. • When a user requests an operation, the system compares IDs to determine applicable permissions. • These concepts ensure consistent access control while balancing security and usability in multi-user environments
  • 7. • Certainly! Let’s delve into the world of remote file sharing and explore different methods used for accessing files across networks. • Manual File Transfer (FTP): • The earliest method involved manually transferring files between machines using File Transfer Protocol (FTP). • Users would initiate FTP sessions to transfer files from one machine to another. • FTP supports both anonymous access (where users can transfer files without an account) and authenticated access. • The World Wide Web also relies on FTP for anonymous file exchange. • Distributed File Systems (DFS): • DFS provides a more structured approach to remote file sharing. • In DFS, remote directories are visible from a local machine. • It allows seamless integration between the local and remote file systems. • However, managing DFS can be complex due to tight integration. • The World Wide Web (WWW): • The WWW, in some ways, reverts to manual file transfer. • Users access remote files through browsers, which act as wrappers for FTP. • While browsing, separate operations (essentially FTP requests) are used to transfer files. • Client-Server Model: • In remote file systems, a computer can mount file systems from remote machines. • The machine containing the files acts as the server, and the requesting machine is the client. • The server declares available resources (files) and specifies which clients can access them. • Client identification can be challenging, but the client-server relationship is common in networked environments. • Remember that these methods facilitate efficient file sharing across networks, each with its own advantages and complexities12 . Whether it’s manual FTP, structured DFS, or the simplicity of the WWW, remote file access plays a crucial role in today’s interconnected world.
  • 8. 15.3: Consistency semantics • It play a crucial role in evaluating file systems that support file sharing. • These semantics define how multiple users can access a shared file simultaneously and specify when modifications made by one user become visible to others
  • 9. • UNIX Semantics: • Immediate visibility of modifications to all users. • Shared files have a single physical image, leading to delays. • Session Semantics (Andrew file system): • Changes made by one user are not immediately visible to others. • Only visible to sessions starting later. • Efficient concurrent access without delays. • Immutable-Shared-Files Semantics: • Users cannot modify files declared as shared. • Immutable files have fixed names and content. • These semantics ensure consistent file access across users while balancing functionality and performance .