Loading [MathJax]/jax/output/HTML-CSS/fonts/TeX/fontdata.js

File System Interface

Beschreibung

Superior Operating Systems Mindmap am File System Interface, erstellt von Artur Assis am 18/06/2022.
Artur Assis
Mindmap von Artur Assis, aktualisiert more than 1 year ago
Artur Assis
Erstellt von Artur Assis vor fast 3 Jahre
4
0
1 2 3 4 5 (0)

Zusammenfassung der Ressource

File System Interface
  1. File Concept
    1. Contiguous logical address space
      1. Types
        1. Data
          1. Numeric
            1. Character
              1. Binary
              2. Program
              3. Content defined by file's creator
                1. File is an abstract data type
                2. File Attributes
                  1. Name
                    1. Human readable string, the name of the file.
                    2. Identifier
                      1. Unique tag (number) that identifies the file within the file system.
                      2. Type
                        1. Type of the file. Necessary in systems that support different types of file.
                          1. Location
                            1. Pointer to the file location on the device.
                            2. Size
                              1. Protection
                                1. Control who is allowed to write, read, or execute the file.
                                2. Time, date, and user identification
                                  1. Data for protection, security, and usage monitoring.
                                  2. Information about files (metadata) is kept in the directory structure
                                  3. File Operations
                                    1. Create
                                      1. Write
                                        1. Read
                                          1. Seek
                                            1. Reposition read/write file offset
                                            2. Delete
                                              1. Truncate
                                                1. Open(Fi)
                                                  1. Search the directory structure on disk for entry Fi , and move the content of entry to memory
                                                  2. Close(Fi)
                                                    1. Move the content of entry Fi in memory to directory structure on disk
                                                  3. Pieces of Data needed to manage opened files
                                                    1. Open-file Table
                                                      1. It is a table to track open files.
                                                      2. File Pointer
                                                        1. Pointer to last read/write location. Each for process that has the file opened.
                                                        2. File-open count
                                                          1. Counts the number of times a file was opened.
                                                          2. Disk location of the file
                                                            1. Cache of data access information
                                                            2. Access rights
                                                              1. per-process access mode information.
                                                            3. Open File Locking
                                                                1. Mandatory
                                                                  1. Access is denied depending on locks held and requested
                                                                  2. Advisory
                                                                    1. Processes can find status of locks and decide what to do
                                                                    1. Shared Lock
                                                                      1. Exclusive lock
                                                                    2. Possible file structures
                                                                      1. The OS or the program will decide what is the structure of a given program.
                                                                        1. None
                                                                          1. Sequence of words or bytes.
                                                                          2. Simple record structure
                                                                            1. May have lines with fixed/variable length.
                                                                            2. Complex Structures
                                                                              1. Formatted document, or relocatable load file.
                                                                            3. Access Methods
                                                                              1. Sequential Access
                                                                                1. Direct Access
                                                                                2. Index File
                                                                                  1. Makes easier to search for a file based on an index value.. Each index table stores the index value and the ID of the file.
                                                                                  2. Directory
                                                                                    1. A directory is a collection of nodes that has information about files. It is stored in disk.
                                                                                        1. Operations
                                                                                          1. Search for file
                                                                                            1. Create file
                                                                                              1. Delete File
                                                                                                1. List a Directory
                                                                                                  1. Rename file
                                                                                                    1. Traverse the file system
                                                                                                    2. Organization
                                                                                                      1. For efficiency
                                                                                                        1. Allows locating a file quickly
                                                                                                        2. For naming
                                                                                                          1. Convenient for users
                                                                                                          2. For grouping
                                                                                                            1. Logical grouping of files, based on their properties.
                                                                                                          3. Levels
                                                                                                            1. Single-level
                                                                                                              1. A single directory for all users. It has naming and grouping problem.
                                                                                                                1. Two-level directory
                                                                                                                  1. Each user has his own directory. Efficient search and can have the same file name for different users. No grouping capability.
                                                                                                                    1. Tree-structured directories
                                                                                                                        1. Efficient searching and grouping capability. It allows relative and absolute path name.
                                                                                                                        2. Acyclic-graph directories
                                                                                                                            1. Allows shared subdirectories and files with different names (aliasing).
                                                                                                                              1. Link
                                                                                                                                1. Another name (pointer) to an existing file. Resolving the link mean following pointer to locate the file.
                                                                                                                          1. Disk Structure
                                                                                                                            1. May be divided into partitions (minidisks, slices)
                                                                                                                              1. Partition or disk may be
                                                                                                                                1. RAID protected against failure or not
                                                                                                                                  1. Raw of formatted with a file system
                                                                                                                                  2. Volume
                                                                                                                                    1. A volume is an entity that contains the file system
                                                                                                                                      1. Tracks the info of the file system
                                                                                                                                      2. File System
                                                                                                                                        1. General purpose
                                                                                                                                          1. Special purpose
                                                                                                                                            1. Ex. for Solaris
                                                                                                                                              1. ufs, zfs – general purpose file systems
                                                                                                                                                1. tmpfs – memory-based volatile FS for fast, temporary I/O
                                                                                                                                                  1. objfs – interface into kernel memory to get kernel symbols for debugging
                                                                                                                                                    1. ctfs – contract file system for managing daemons
                                                                                                                                                      1. lofs – loopback file system allows one FS to be accessed in place of another
                                                                                                                                                        1. procfs – kernel interface to process structures
                                                                                                                                                    2. File System Mounting
                                                                                                                                                      1. A file system must be mounted before it can be used. It will be mounted at a mount point. The previous content of the mount point, if any, IS NOT subscribed by the new content. Only the reference is changed.
                                                                                                                                                      2. Protection
                                                                                                                                                        1. It is possible to control the types of access each file/directory can have and by whom.
                                                                                                                                                          1. Types of access
                                                                                                                                                            1. Read
                                                                                                                                                              1. Write
                                                                                                                                                                1. Execute
                                                                                                                                                                  1. Append
                                                                                                                                                                    1. List
                                                                                                                                                                      1. Delete
                                                                                                                                                                      2. Ex. Unix/Linux protection for files/directories
                                                                                                                                                                        Zusammenfassung anzeigen Zusammenfassung ausblenden

                                                                                                                                                                        0 Kommentare

                                                                                                                                                                        There are no comments, be the first and leave one below:

                                                                                                                                                                        ähnlicher Inhalt

                                                                                                                                                                        Europäische Städte
                                                                                                                                                                        JohannesK
                                                                                                                                                                        Deutsch Einstufungstest Niveau A2.2
                                                                                                                                                                        SprachschuleAktiv
                                                                                                                                                                        LEK 1
                                                                                                                                                                        Max Muster
                                                                                                                                                                        Globalization – global challenges
                                                                                                                                                                        ExamTime Bewerter
                                                                                                                                                                        Ziele der Erziehung
                                                                                                                                                                        Mari Nokori
                                                                                                                                                                        U1 Buchproduktion
                                                                                                                                                                        Lena A.
                                                                                                                                                                        Veti Pharma 2013
                                                                                                                                                                        Anna Leps
                                                                                                                                                                        Innere Schwein Vetie
                                                                                                                                                                        Anne Käfer
                                                                                                                                                                        Vetie Fleisch 2019/2020 (Matrikel 14)
                                                                                                                                                                        Maite J