ITEC 502 컴퓨터 시스템 및 실습 Chapter 10-2: File Systems Mi-Jung Choi DPNM Lab. Dept. of CSE, POSTECH.

Slides:



Advertisements
Similar presentations
File-System Interface
Advertisements

File-System Interface
1 Chapter 11: File-System Interface  File Concept  Access Methods  Directory Structure  File System Mounting  File Sharing  Protection  Chapter.
Chapter 10: File-System Interface
Lecture 12: File Management Silberschatz, Galvin and Gagne ©2005 Operating System Concepts – 7 th Edition, Jan 1, 2005 File Management provides.
Chapter 10: File-System Interface Silberschatz, Galvin and Gagne ©2005 Operating System Concepts Chapter 10: File-System Interface File Concept.
11.1 Silberschatz, Galvin and Gagne ©2003 Operating System Concepts with Java Chapter 11: File-System Interface File Concept Access Methods Directory Structure.
Chapter 10: File System.
File-System Interface CS 3100 File-System Interface1.
Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition, Chapter 10: File-System Interface.
Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition, Chapter 10: File-System Interface.
Chapter 10: File-System Interface. File Concept Access Methods Directory Structure File-System Mounting File Sharing Protection.
Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition File-System Interface.
Chapter 10 File Systems: Interface
Chapter 10: File-System Interface
1 Chapter 10: File- System Interface. 2 File Concept Access Methods Directory Structure File-System Mounting File Sharing Protection.
Chapter 10: File-System Interface
Chapter 10: File-System Interface Silberschatz, Galvin and Gagne ©2005 Operating System Concepts Chapter 10: File-System Interface File Concept.
Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition, Chapter 10: File-System.
Silberschatz, Galvin and Gagne  Operating System Concepts Chapter 11: File-System Interface File Concept Access Methods Directory Structure.
A. Frank - P. Weisberg Operating Systems File-System Interface.
Operating System Concepts with Java – 7 th Edition, Nov 15, 2006 Silberschatz, Galvin and Gagne ©2007 Chapter 10: File-System Interface.
1 A Typical File-system Organization. 2 Directories Record information about groups of files Management of files Single-Level directory: most simple;
Copyright © 2006 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill Technology Education Lecture 10 Operating Systems.
Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition, Chapter 10: File-System Interface.
Chap 10 File-System Interface. Objectives To explain the function of file systems To describe the interfaces to file systems To discuss file-system design.
Chapter 10: File-System Interface Silberschatz, Galvin and Gagne ©2005 AE4B33OSS Chapter 10: File-System Interface File Concept Access Methods Directory.
11.1 Silberschatz, Galvin and Gagne ©2003 Operating System Concepts with Java Chapter 11: File-System Interface File Concept Access Methods Directory Structure.
Page 110/17/2015 CSE 30341: Operating Systems Principles Acyclic-Graph Directories  Have shared subdirectories and files.
10.1 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts Chapter 11: File-System Interface File Concept Access Methods Directory Structure File-System.
Chapter 10: File-System Interface Silberschatz, Galvin and Gagne ©2005 Operating System Concepts – 7 th Edition, Jan 1, 2005 Chapter 10: File-System.
Page 110/19/2015 CSE 30341: Operating Systems Principles Chapter 10: File-System Interface  Objectives:  To explain the function of file systems  To.
10.1 Silberschatz, Galvin and Gagne ©2005 Operating System Principles 10.4 File System Mounting A file system must be mounted before it can be accessed.
Silberschatz, Galvin and Gagne ©2013 Operating System Concepts – 9 th Edition Chapter 11: File-System Interface Modified.
10.1 Silberschatz, Galvin and Gagne ©2009 Operating System Concepts with Java – 8 th Edition Chapter 10: File-System Interface.
Silberschatz, Galvin and Gagne ©2013 Operating System Concepts – 9 th Edition Chapter 11: File-System Interface.
XE33OSA Chapter 10: File-System Interface. 10.2XE33OSA Silberschatz, Galvin and Gagne ©2005 Chapter 10: File-System Interface File Concept Access Methods.
Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition Chapter 10: File-System Interface.
Chapter 10: File-System Interface Silberschatz, Galvin and Gagne ©2005 Operating System Concepts Chapter 10: File-System Interface File Concept.
Silberschatz, Galvin and Gagne ©2013 Operating System Concepts – 9 th Edition Chapter 11: File-System Interface.
Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition Lecture 18: File-System Interface (Ch 10)
Silberschatz, Galvin and Gagne ©2013 Operating System Concepts Essentials – 2 nd Edition Chapter 10: File-System Interface.
Operating System Concepts with Java – 7 th Edition, Nov 15, 2006 Silberschatz, Galvin and Gagne ©2007 Chapter 10: File-System Interface.
Chapter 10: File-System Interface Silberschatz, Galvin and Gagne ©2005 Operating System Concepts Chapter 10: File-System Interface File Concept.
CENG334 Introduction to Operating Systems Erol Sahin Dept of Computer Eng. Middle East Technical University Ankara, TURKEY URL:
Chapter 10: File-System Interface Hung Q. Ngo KyungHee University Spring 2009
Chapter 10: File-System Interface. 10.2CSCI Operating Systems Chapter 10: File-System Interface File Concept Access Methods Directory Structure.
Chapter 10: File-System Interface File Concept Contiguous logical address space Types: Data  numeric  character  binary Program.
Chapter 10: File-System Interface Silberschatz, Galvin and Gagne ©2005 Operating System Concepts Chapter 10: File-System Interface File Concept.
Chapter 10: File-System Interface Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition Chapter 10: File-System Interface.
14.1 Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition Chapter 10 & 11: File-System Interface and Implementation.
Chapter 10: File-System Interface Silberschatz, Galvin and Gagne ©2005 Operating System Concepts – 7 th Edition, Jan 1, 2005 Chapter 10: File-System.
Chapter 10: File-System Interface Adapted to COP4610 by Robert van Engelen.
Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition, Chapter 10: File System.
10.1 Silberschatz, Galvin and Gagne ©2009 Operating System Concepts with Java – 8 th Edition Chapter 10: File-System Interface.
Chapter 10: File-System Interface Silberschatz, Galvin and Gagne ©2005 Operating System Concepts – 7 th Edition, Jan 1, 2005 Chapter 10: File-System.
Silberschatz, Galvin and Gagne ©2013 Operating System Concepts – 9 th Edition Chapter 11: File-System Interface.
Silberschatz, Galvin and Gagne ©2013 Operating System Concepts – 9 th Edition Chapter 11: File-System Interface.
Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition Chapter 10: File-System Interface.
1 Chapter 10 File Systems: Interface Dr. İbrahim Körpeoğlu Last Update: Nov 15, 2011 Bilkent University Department.
Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition Chapter 10: File-System Interface.
Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition Chapter 10: File-System Interface.
Chapter 10: File System.
File Sharing Sharing of files on multi-user systems is desirable
Chapter 11: File-System Interface
Chapter 10: File-System Interface
Directory Structure A collection of nodes containing information about all files Directory Files F 1 F 2 F 3 F 4 F n Both the directory structure and the.
Chapter 10: File-System Interface Silberschatz, Galvin and Gagne ©2005 Operating System Concepts – 7 th Edition, Jan 1, 2005 Chapter 10: File-System.
Lecture 4: File-System Interface
Presentation transcript:

ITEC 502 컴퓨터 시스템 및 실습 Chapter 10-2: File Systems Mi-Jung Choi DPNM Lab. Dept. of CSE, POSTECH

Contents  File-System Mounting  File Sharing  Protection ITEC502 컴퓨터 시스템 및 실습 2

Objectives  To discuss file-system design tradeoffs, including access methods, file sharing, file locking, and directory structures  To explore file-system protection ITEC502 컴퓨터 시스템 및 실습 3

File System Mounting  A file system must be mounted before it can be accessed  A unmounted file system is mounted at a mount point (a) Existing (b) Unmounted Partition ITEC502 컴퓨터 시스템 및 실습 4

Mount Point ITEC502 컴퓨터 시스템 및 실습 5

File Sharing  Sharing of files on multi-user systems is desirable  Sharing may be done through a protection scheme  On distributed systems, files may be shared across a network  Network File System (NFS) is a common distributed file-sharing method ITEC502 컴퓨터 시스템 및 실습 6

File Sharing – Multiple Users  User IDs identify users, allowing permissions and protections to be per-user  Group IDs allow users to be in groups, permitting group access rights ITEC502 컴퓨터 시스템 및 실습 7

File Sharing – Remote File Systems  Uses networking to allow file system access between systems –Manually via programs like FTP –Automatically, seamlessly using distributed file systems –Semi automatically via the world wide web  Client-server model allows clients to mount remote file systems from servers –Server can serve multiple clients –Client and user-on-client identification is insecure or complicated –NFS is standard UNIX client-server file sharing protocol –CIFS (Common Internet File System) is standard Windows protocol –Standard operating system file calls are translated into remote calls  Distributed Information Systems (distributed naming services) such as LDAP, DNS, NIS, Active Directory implement unified access to information needed for remote computing ITEC502 컴퓨터 시스템 및 실습 8

File Sharing – Failure Modes  Remote file systems add new failure modes, due to network failure, server failure  Recovery from failure can involve state information about status of each remote request  Stateless protocols such as NFS include all information in each request, allowing easy recovery but less security ITEC502 컴퓨터 시스템 및 실습 9

File Sharing – Consistency Semantics  Consistency semantics specify how multiple users are to access a shared file simultaneously –Similar process synchronization algorithms Tend to be less complex due to disk I/O and network latency (for remote file systems) –Andrew File System (AFS) implemented complex remote file sharing semantics –Unix file system (UFS) implements: Writes to an open file visible immediately to other users of the same open file Sharing file pointer to allow multiple users to read and write concurrently –AFS has session semantics Writes only visible to sessions starting after the file is closed ITEC502 컴퓨터 시스템 및 실습 10

Protection  File owner/creator should be able to control: –what can be done –by whom  Types of access –Read –Write –Execute –Append –Delete –List ITEC502 컴퓨터 시스템 및 실습 11

Access Lists and Groups  Mode of access: read, write, execute  Three classes of users RWX a) owner access 7  RWX b) group access 6  RWX c) public access1   Ask manager to create a group (unique name), say G, and add some users to the group  For a particular file (say game) or subdirectory, define an appropriate access ownergrouppublic chmod 761game Attach a group to a file (change file group ownership): chgrp G game ITEC502 컴퓨터 시스템 및 실습 12

A Sample UNIX Directory Listing ITEC502 컴퓨터 시스템 및 실습 13 User, group, and others have permissions to read, write, and execute the file or directory Indicates the number of links to the file or directory The owner of the file, or the user The file contains 10,876 characters, or bytes File or directory name

ITEC502 컴퓨터 시스템 및 실습 14 Summary  File –Main information-storage mechanism in most computer systems  File systems may be mounted into the system’s naming structures to make them available  File sharing –Distributed file systems allow client hosts to mount volumes or directories from servers, as long as they can access across a network –Remote file systems present challenges in reliability, performance, and security  Protection –Access to files can be controlled separately for each type of access –Protection can be provided by passwords, by access lists, or by other techniques