Page 61 - DCAP602_NETWORK_OPERATING_SYSTEMS_I
P. 61

Unit 3: File System Hierarchy




                                                                                                notes

          Did u know?  What is database file system?

          3.1.2 file systems and operating systems

          Most operating systems provide a file system, as a file system is an integral part of any modern
          operating system. Early microcomputer operating systems’ only real task was file management
          - a fact reflected in their names. Some early operating systems had a separate component for
          handling file systems which was called a disk operating system. On some microcomputers, the
          disk operating system was loaded separately from the rest of the operating system. On early
          operating systems, there was usually support for only one, native, unnamed file system.


                 Example: CP/M supports only its own file system, which might be called “CP/M file
          system” if needed, but which didn’t bear any official name at all.
          ecause of this, there needs to be an interface provided by the operating system software between
          the  user  and  the  file  system.  This  interface  can  be  textual  (such  as  provided  by  a  command
          line interface, such as the Unix shell, or OpenVMS DCL) or graphical (such as provided by a
          graphical user interface, such as file browsers). If graphical, the metaphor of the folder, containing
          documents, other files, and nested folders is often used.
          Flat file systems: In a flat file system, there are no subdirectories-everything is stored at the same
          (root) level on the media, be it a hard disk, floppy disk, etc. While simple, this system rapidly
          becomes inefficient as the number of files grows, and makes it difficult for users to organise data
          into related groups.
          Like many small systems before it, the original Apple Macintosh featured a flat file system, called
          Macintosh File System. Its version of Mac OS was unusual in that the file management software
          (Macintosh Finder) created the illusion of a partially hierarchical filing system on top of MFS.
          This structure meant that every file on a disk had to have a unique name, even if it appeared to be
          in a separate folder. MFS was quickly replaced with Hierarchical File System, which supported
          real directories.

          3.2 file concept

          A file is a collection of letters, numbers and special characters: it may be a program, a database, a
          dissertation, a reading list, a simple letter etc.  Sometimes you may import a file from elsewhere,
          for example from another computer. If you want to enter your own text or data, you will start by
          creating a file. Whether you copied a file from elsewhere or created your own, you will need to
          return to it later in order to edit its contents.
          The most familiar file systems make use of an underlying data storage device that offers access
          to an array of fixed-size blocks, sometimes called sector, generally 512 bytes each. The file system
          software is responsible for organizing these sectors into files and directories, and keeping track
          of which sectors belong to which file and which are not being used. Most file systems address
          data in fixed-sized units called “clusters” or “blocks” which contain a certain number of disk
          sectors (usually 1-64). This is the smallest logical amount of disk space that can be allocated to
          hold a file.

          However, file systems need not make use of a storage device at all. A file system can be used to
          organize and represent access to any data, whether it be stored or dynamically generated (e.g,
          from a network connection).








                                           LoveLy professionaL university                                    55
   56   57   58   59   60   61   62   63   64   65   66