Chapter 8 file management


Published on

Published in: Technology
  • Be the first to comment

No Downloads
Total views
On SlideShare
From Embeds
Number of Embeds
Embeds 0
No embeds

No notes for slide

Chapter 8 file management

  1. 1. Chapter Eight : File Management <ul><li>The File Manager </li></ul><ul><li>Interacting With File Manager </li></ul><ul><li>File Organization </li></ul><ul><li>Physical Storage Allocation </li></ul><ul><li>Data Compression </li></ul><ul><li>Access Methods </li></ul><ul><li>Levels in File Management System </li></ul><ul><li>Access Control Verification Module </li></ul><ul><li>Fixed Length Contiguous </li></ul><ul><li>Records Storage </li></ul><ul><li> Non-contiguous </li></ul><ul><li> Storage </li></ul><ul><li>Variable Length </li></ul><ul><li>Records </li></ul><ul><li>Indexed </li></ul><ul><li>Storage </li></ul><ul><li> </li></ul><ul><li> Sequential or Direct File Access </li></ul>
  2. 2. The File Manager <ul><li>File Manager controls every file in system which is a complex job. </li></ul><ul><li>Efficiency depends on: </li></ul><ul><ul><li>how system’s files are organized (sequential, direct, or indexed sequential). </li></ul></ul><ul><ul><li>how they’re stored (contiguously, noncontiguously, or indexed). </li></ul></ul><ul><ul><li>how each file’s records are structured (fixed-length or variable-length). </li></ul></ul><ul><ul><li>how access to these files is controlled . </li></ul></ul>
  3. 3. Responsibilities of File Manager <ul><li>Track where each file is stored . </li></ul><ul><li>Determine where and how files will be stored. </li></ul><ul><ul><li>Efficiently use available storage space. </li></ul></ul><ul><ul><li>Provide efficient access to files . </li></ul></ul><ul><li>Allocate each file when a user has been cleared for access to it, then record its use . </li></ul><ul><li>Deallocate file when it is returned to storage. </li></ul><ul><ul><li>Communicate its availability to others waiting for it. </li></ul></ul>
  4. 4. Important Definitions <ul><li>Field -- group of related bytes that can be identified by user with name, type, and size. </li></ul><ul><li>Record -- group of related fields. </li></ul><ul><li>File (flat file) -- group of related records that contains info used by specific application programs to generate reports. </li></ul><ul><li>Database -- groups of related files that are interconnected at various levels to give flexible access to users . </li></ul><ul><ul><li>Appears to File Manager to be a type of file. </li></ul></ul>
  5. 5. Definitions - 2 <ul><li>Program files contain instructions. </li></ul><ul><li>Data files contain data. </li></ul><ul><li>Directories -- listings of file names and their attributes. </li></ul><ul><li>Every program and data file accessed by computer system, and every piece of computer software, is treated as a file. </li></ul><ul><li>File Manager treats all files exactly same way as far as storage is concerned. </li></ul>
  6. 6. Interacting With File Manager <ul><li>Users communicates with File Manager via specific commands that may be either embedded in user’s program or submitted interactively by user. </li></ul><ul><li>Embedded commands: </li></ul><ul><ul><li>OPEN & CLOSE pertain to availability of file for program invoking it. </li></ul></ul><ul><ul><li>READ & WRITE are I/O commands. </li></ul></ul><ul><ul><li>MODIFY – specialized WRITE command for existing data files that allows for appending/rewriting records. </li></ul></ul>
  7. 7. Interactive Commands <ul><li>CREATE & DELETE -- deal with system’s knowledge of file. </li></ul><ul><li>SAVE -- first time used, a file is actually created. </li></ul><ul><li>OPEN NEW -- within a program indicates file must be created. </li></ul><ul><li>OPEN…FOR OUTPUT -- creates file by making entry for it in directory & finding space for it in secondary storage. </li></ul><ul><li>RENAME -- allows users to change name of existing file. </li></ul><ul><li>COPY – allows user to make duplicate copies of existing files. </li></ul>
  8. 8. Commands Are Device-Independent <ul><li>Interface commands designed to be as simple as possible to use. </li></ul><ul><ul><li>Lack detailed instructions to run device where file is stored. </li></ul></ul><ul><ul><li>Device independent . </li></ul></ul><ul><li>To access a file, user doesn’t need to know its exact physical location on disk pack or storage medium. </li></ul><ul><li>Each logical command broken down into sequence of low-level signals that </li></ul><ul><ul><li>Trigger step-by-step actions performed by device. </li></ul></ul><ul><ul><li>Supervise progress of operation by testing device’s status. </li></ul></ul>
  9. 9. Typical Volume Configuration <ul><li>Each secondary storage unit (removable or non-removable) is considered a volume. </li></ul><ul><ul><li>Each volume can contain several files called multifile volumes . </li></ul></ul><ul><ul><li>Some files are extremely large and are contained in several volumes called multivolume files . </li></ul></ul><ul><li>Generally, each volume in system is given name. </li></ul><ul><ul><li>File Manager writes name & other descriptive info on easy-to-access place on each unit . </li></ul></ul>
  10. 10. Master File Directory (MFD) <ul><li>MFD stored immediately after volume descriptor </li></ul><ul><ul><li>Lists names & characteristics of every file contained in volume. </li></ul></ul><ul><ul><li>File names refer to program files, data files, and/or system files. </li></ul></ul><ul><ul><li>Subdirectories, if supported. </li></ul></ul><ul><ul><li>Remainder of volume is used for file storage. </li></ul></ul><ul><li>Early OS supported only a single directory per volume. </li></ul><ul><ul><li>Created by File Manager. </li></ul></ul><ul><ul><li>Contains names of files, usually organized in alphabetical, spatial, or chronological order. </li></ul></ul><ul><ul><li>Simple to implement and maintain. </li></ul></ul><ul><ul><li>Some major disadvantages </li></ul></ul>
  11. 11. Volume Descriptor Creation Date   Date when volume was created Pointer to Directory Area   Indicates first sector where directory is stored Pointer to File Area   Indicates first sector where file is stored File System Code   Used to detect volumes with incorrect formats Volume News   User-allocated name
  12. 12. Some Major Disadvantages of Single Directory Per Volume <ul><li>Takes long time to search for an individual file, especially if MFD was organized in an arbitrary order. </li></ul><ul><li>If user has many small files stored in volume, directory space fills before disk storage space fills. User told “disk full” when only directory full. </li></ul><ul><li>Users can’t create subdirectories to group related files. </li></ul><ul><li>Multiple users can’t safeguard files from other users browsing file lists ‘cause entire directory listed on request. </li></ul><ul><li>Each program in entire directory needs unique name. </li></ul><ul><ul><li>E.g., Only 1 person using directory can name program PROG1. </li></ul></ul>
  13. 13. About Subdirectories <ul><li>Semi-sophisticated File Managers create MFD for each volume with entries for files & subdirectories. </li></ul><ul><li>Subdirectory created when user opens account to access computer. </li></ul><ul><ul><li>MFD entry flagged to indicate subdirectory with unique properties. </li></ul></ul><ul><li>Improvement from single directory scheme. </li></ul><ul><li>Still can’t group files in a logical order to improve accessibility & efficiency of system. </li></ul>
  14. 14. Subdirectories Can Be Implemented As an Upside-down Tree <ul><li>Today’s File Managers allow users to create subdirectories so related files are grouped together. </li></ul><ul><ul><li>Extension of previous two-level directory structure. </li></ul></ul><ul><li>Tree structures allow system to efficiently search individual directories due to fewer entries in each. </li></ul><ul><li>Path to requested file may lead through several directories. </li></ul><ul><li>When user wants to access specific file, file name is sent to File Manager. File Manager searches MFD for user's directory. Then searches user's directory & any subdirectories for requested file & location. </li></ul>
  15. 15. File Descriptor <ul><li>Each file entry in every directory contains info describing file: </li></ul><ul><li>File name—usually represented in ASCII code. </li></ul><ul><li>File type—organization and usage that are dependent on system (e.g., Files and directories). </li></ul><ul><li>File size—size is kept here for convenience. </li></ul><ul><li>File location—identification of first physical block (or all blocks) where file is stored. </li></ul><ul><li>Date and time of creation. </li></ul><ul><li>Owner. </li></ul><ul><li>Protection information—access restrictions based on who is allowed to access file and what type of access is allowed. </li></ul><ul><li>Record size —its fixed size or its maximum size, depending on type of record </li></ul>
  16. 16. File Names <ul><li>Absolute file name (complete file name) – long name that includes all path info. </li></ul><ul><li>Relative file name – short name seen in directory listings. </li></ul><ul><ul><li>Selected by user when file is created. </li></ul></ul><ul><ul><li>E.g., ACCOUNT ADDRESSES, TAXES 2001, or AUTOEXEC. </li></ul></ul><ul><li>Extension – 2-3 character name used to identify type of file or its contents. </li></ul><ul><ul><li>Separated from relative name by a period. </li></ul></ul><ul><ul><li>E.g., CPP, BAS, BAT, COB, & EXE signal to system to use specific compiler or program to run these files. </li></ul></ul><ul><ul><li>E.g., TXT, DOC, OUT, MIC, & KEY created by applications or by users for own identification. </li></ul></ul>
  17. 17. File Naming Conventions <ul><li>Can vary in length from 1 or more characters. </li></ul><ul><li>Can include letters of alphabet & digits. </li></ul><ul><li>Every OS has specific rules that affect length of relative name & types of characters allowed. </li></ul><ul><ul><li>E.g., MS-DOS allows 1-8 alphanumeric character names without spaces. </li></ul></ul><ul><ul><li>More modern OS allow names with dozens of characters including spaces. </li></ul></ul><ul><li>Try to select descriptive relative names that readily identify file contents/purpose of file. </li></ul>
  18. 18. Base and Current Directories Used by File Manager to Locate Files <ul><li>File Manager selects base directory for user when interactive session begins. </li></ul><ul><ul><li>All file operations requested by that user start here. </li></ul></ul><ul><li>Then, user selects subdirectory ( current directory or working directory) . </li></ul><ul><ul><li>Thereafter, files presumed to be located in current directory. </li></ul></ul><ul><li>Whenever file accessed, user types in relative name & File Manager adds proper prefix. </li></ul><ul><li>As long as users refer to files in working directory, can access them without entering complete name. </li></ul>
  19. 19. File Organization : Record Format <ul><li>Fixed-length records – easiest to access directly. </li></ul><ul><ul><li>Most common type & ideal for data files. </li></ul></ul><ul><ul><li>Record size critical (too small – truncation; too large – wastes space). </li></ul></ul><ul><li>Variable-length records -- difficult to access directly because hard to calculate exactly where record is located. </li></ul><ul><ul><li>Don’t leave empty storage space & don’t truncate any characters. </li></ul></ul><ul><ul><li>Frequently used in files accessed sequentially (e.g,. text files, program files) or files using index to access records. </li></ul></ul><ul><ul><li>File descriptor stores record format, how it’s blocked, & other related info. </li></ul></ul>
  20. 20. Physical File Organization <ul><li>Concerned with how records are arranged & characteristics of medium used to store it. </li></ul><ul><li>On magnetic disks, files can be organized as: </li></ul><ul><ul><li>Sequential </li></ul></ul><ul><ul><li>Direct </li></ul></ul><ul><ul><li>Indexed sequential. </li></ul></ul>
  21. 21. Characteristics Considered When Selecting File Organization <ul><li>Volatility of data—frequency with which additions & deletions made. </li></ul><ul><li>Activity of file—% records processed during a given run. </li></ul><ul><li>Size of file. </li></ul><ul><li>Response time—amount of time user is willing to wait before requested operation is completed. </li></ul>
  22. 22. Sequential Record Organization <ul><li>Easiest to implement because records are stored & retrieved serially, one after other. </li></ul><ul><li>To speed process some optimization features may be built into system. </li></ul><ul><ul><li>E.g., select a key field from record & then sort records by that field before storing them. </li></ul></ul><ul><ul><li>Aids search process. </li></ul></ul><ul><ul><li>Complicates maintenance algorithms because original order must be preserved every time records added or deleted. </li></ul></ul>
  23. 23. Direct Record Organization (Random Organization) <ul><li>Uses direct access files which can be implemented only on direct access storage devices. </li></ul><ul><li>Give users flexibility of accessing any record in any order without having to begin search from beginning of file. </li></ul><ul><li>Records are identified by their relative addresses (their addresses relative to beginning of file). </li></ul><ul><ul><li>Logical addresses computed when records are stored & again when records are retrieved. </li></ul></ul><ul><ul><li>Use hashing algorithms . </li></ul></ul>
  24. 24. Advantages of Direct Access Organization <ul><li>Fast access to records. </li></ul><ul><li>Can be accessed sequentially by starting at first relative address & incrementing it by one to get to next record. </li></ul><ul><li>Can be updated more quickly than sequential files because records quickly rewritten to original addresses after modifications. </li></ul><ul><li>No need to preserve order of the records, so adding or deleting them takes very little time. </li></ul>
  25. 25. Collisions Are a Problem With Direct Access Organization <ul><li>Several records with unique keys may generate same logical address ( collision ). </li></ul><ul><li>Program generates another logical address before presenting it to File Manager for storage. </li></ul><ul><li>Colliding records stored in overflow area via links. </li></ul><ul><li>File Manager handles physical allocation of space. </li></ul><ul><li>Maximum file size established when created & eventually file is full or too many records are stored in overflow area. </li></ul><ul><li>Programmer must reorganize & rewrite file. </li></ul>
  26. 26. Indexed Sequential Record Organization <ul><li>Combines best of sequential & direct access. </li></ul><ul><li>Created & maintained through Indexed Sequential Access Method (ISAM) software package. </li></ul><ul><li>Doesn’t create collisions because it doesn’t use result of hashing algorithm to generate a record’s address. </li></ul><ul><ul><li>Uses info to generate index file through which records retrieved. </li></ul></ul><ul><li>Divides ordered sequential file into blocks of equal size. </li></ul><ul><ul><li>Size determined by File Manager to take advantage of physical storage devices & to optimize retrieval strategies. </li></ul></ul><ul><li>Each entry in index file contains highest record key & physical location of data block where this record, & records with smaller keys, are stored. </li></ul>
  27. 27. Indexed Sequential - 2 <ul><li>To access any record in file, system begins by searching index file & then goes to physical location indicated at that entry. </li></ul><ul><li>Overflow areas are spread throughout file </li></ul><ul><ul><li>Existing records can expand & new records are in close physical & logical sequence. </li></ul></ul><ul><ul><li>Last-resort overflow area is located apart from main data area but is used only when the other overflow areas are completely filled. </li></ul></ul><ul><li>When retrieval time becomes too slow, file has to be reorganized.. </li></ul><ul><li>Allows both direct access to a few requested records & sequential access to many records for most dynamic files. </li></ul><ul><li>A variation of indexed sequential files is B-tree . </li></ul>
  28. 28. Physical Storage Allocation <ul><li>File Manager must work with files not just as whole units but also as logical units or records. </li></ul><ul><li>Records within file must have same format but can vary in length . </li></ul><ul><li>Records are subdivided into fields. </li></ul><ul><ul><li>Structure usually managed by application programs, not OS. </li></ul></ul><ul><li>When we talk about file storage, we’re actually referring to record storage . </li></ul>
  29. 29. <ul><li>Unblocked, fixed-length records </li></ul><ul><li>Blocked, fixed length records </li></ul><ul><li>Unblocked, variable-length records </li></ul><ul><li>Unblocked, variable-length records </li></ul><ul><li>Blocked, variable-length records </li></ul>R1 R2 R3 R4 R5 R6 Block # R1 R2 R3 Block 1 Recs 2 R1 R1 R2 R2 Length Length Block Block # R1 R1 R2 R2 1 Size Recs. Len. Len. R1 # R2 # R3
  30. 30. Contiguous Storage <ul><li>Records stored one after other. </li></ul><ul><li>Any record can be found & read once starting address & size are known, so directory is very streamlined. </li></ul><ul><li>Direct access easy – every part of file is stored in same compact area. </li></ul><ul><li>Files can’t be expanded unless there’s empty space available immediately following it. </li></ul><ul><ul><li>Room for expansion must be provided when file is created. </li></ul></ul><ul><li>Fragmentation occurs (slivers of unused storage space). </li></ul><ul><ul><li>Can compact & rearrange files. </li></ul></ul><ul><ul><li>Files can’t be accessed while compaction is taking place. </li></ul></ul>
  31. 31. Noncontiguous Storage <ul><li>Allows files to use any storage space available on disk. </li></ul><ul><li>File’s records are stored in a contiguous manner if enough empty space. </li></ul><ul><li>Any remaining records, & all other additions to file, are stored in other sections of disk ( extents ). </li></ul><ul><ul><li>Linked together with pointers. </li></ul></ul><ul><ul><li>Physical size of each extent is determined by OS (e.g., 256 bytes). </li></ul></ul>
  32. 32. Linking File Extents <ul><li>Linking at storage level – each extent points to next one in sequence. </li></ul><ul><ul><li>Directory entry consists of file name, storage location of first extent, location of last extent, & total number of extents, not counting first. </li></ul></ul><ul><li>Linking at directory level – each extent listed with its physical address, size, & pointer to next extent. </li></ul><ul><ul><li>A null pointer indicates that it's last one. </li></ul></ul><ul><li>Eliminate external storage fragmentation & need for compaction. </li></ul><ul><li>Don’t support direct access because no easy way to determine exact location of specific record. </li></ul>
  33. 33. Indexed Storage <ul><li>Allows direct record access by bringing pointers linking every extent of that file into index block. </li></ul><ul><li>Every file has its own index block (addresses of each disk sector that make up the file) </li></ul><ul><ul><li>Lists each entry in same order in which sectors linked . </li></ul></ul><ul><li>When a file is created, pointers in index block set to null. </li></ul><ul><li>As each sector is filled, pointer set to appropriate sector address. </li></ul><ul><ul><li>Address is removed from empty space list & copied into its position in index block. </li></ul></ul>
  34. 34. Indexed Storage - 2 <ul><li>Supports both sequential & direct access. </li></ul><ul><li>Doesn’t necessarily improve use of storage space because each file must have index block. </li></ul><ul><li>For larger files with more entries, several levels of indexes can be generated. </li></ul><ul><ul><li>To find a desired record, File Manager accesses first index (highest level), which points to a second index (lower level), which points to an even lower level index & eventually to data record. </li></ul></ul>
  35. 35. Data Compression <ul><li>Several techniques (3) used to save space in files. </li></ul><ul><li>System must be able to distinguish between compressed & uncompressed data . </li></ul><ul><li>Trade-off: storage space gained, but processing time lost . </li></ul><ul><li>Records with repeated characters can be abbreviated. </li></ul><ul><ul><li>E.g., fixed-length field with short name & many blank characters; replaced with variable-length field & special code to indicate # blanks truncated. </li></ul></ul><ul><li>ADAMSbbbbbbbbbb  ADAMSb 10 </li></ul><ul><li>  300000000  3#8 </li></ul>
  36. 36. Data Compression: Repeated Terms <ul><li>Repeated terms compressed by using symbols to represent each of most commonly used words in the database. </li></ul><ul><ul><li>E.g., in a university’s student database common words like student, course, teacher, classroom, grade, & department could each be represented with single character. </li></ul></ul>
  37. 37. Data Compression : Front-end Compression <ul><li>3. Front-end compression used for index compression. </li></ul><ul><ul><li>For example, student database where the students’ names are kept in alphabetical order could be compressed </li></ul></ul>
  38. 38. Access Methods <ul><li>Access methods dictated by a file’s organization </li></ul><ul><li>Most flexibility is allowed with indexed sequential files and least with sequential. </li></ul><ul><ul><li>File organized in sequential fashion can support only sequential access to its records, & these records can be of fixed or variable length. </li></ul></ul><ul><ul><li>File Manager uses the address of last byte read to access the next sequential record. </li></ul></ul><ul><ul><li>Current byte address (CBA) must be updated every time a record is accessed. </li></ul></ul>
  39. 39. Sequential Access <ul><li>For sequential access of fixed-length records , CBA updated by incrementing it by record length (RL), which is constant: </li></ul><ul><li>CBA = CBA + RL </li></ul><ul><li>For sequential access of variable-length records , File Manager adds length of record (RL k ) plus number of bytes used to hold record length (N) to CBA. </li></ul><ul><li>CBA = CBA + N + RL k </li></ul>
  40. 40. Direct Access & Fixed-Length Records <ul><li>If file is organized in direct fashion, accessed easily in direct or sequential order if have fixed-length records. </li></ul><ul><li>For direct access with fixed length records , CBA computed directly from record length & desired record number RN (info provided through READ command) minus one: </li></ul><ul><li>CBA=(RN–1) * RL </li></ul>
  41. 41. Direct Access & Variable-Length Records <ul><li>Virtually impossible to access a record directly because address of desired record can’t be easily computed. </li></ul><ul><li>To access a record, File Manager must do sequential search through records. </li></ul><ul><ul><li>If File Manager saves address of last record accessed, can do half-sequential read through file. When next request arrives it could search forward from CBA. </li></ul></ul><ul><ul><li>Or File Manager can keep table of record numbers & their CBAs. Search table for exact storage location of desired record. </li></ul></ul><ul><li>To avoid this problem, many systems force users to have files organized for fixed-length records if want direct access to records. </li></ul>
  42. 42. Access of Records in Indexed Sequential File <ul><li>Accessed either sequentially or directly, </li></ul><ul><li>Either CBA computations apply but with one extra step. </li></ul><ul><ul><li>Index file must be searched for pointer to block where data stored. </li></ul></ul><ul><ul><li>Because index file is smaller, kept in main memory & quick search to locate block where desired record is located. </li></ul></ul><ul><ul><li>Block retrieved from secondary storage & beginning byte address of record calculated. </li></ul></ul><ul><li>In systems with several levels of indexing, index at each level must be searched before computing CBA. </li></ul><ul><ul><li>Entry point to this type of data file is usually through index file. </li></ul></ul>
  43. 43. Levels in a File Management System <ul><li>Efficient management of files can’t be separated from efficient management of devices that house them. </li></ul><ul><li>A wide range of functions must be organized for I/O system to perform efficiently. </li></ul><ul><li>Each level implemented by using structured & modular programming techniques, which also set up a hierarchy. </li></ul><ul><li>Basic File System </li></ul><ul><li>Access Control Module </li></ul><ul><li>Logical File System </li></ul><ul><li>Physical File System </li></ul><ul><li>Device Interface Module </li></ul><ul><li>Device </li></ul>
  44. 44. Basic File System <ul><li>Highest level module that passes info to logical file system, which notifies physical file system, which works with Device Manager. </li></ul><ul><li>Activates access control verification module to verify that this user is permitted to perform this operation with this file. </li></ul>
  45. 45. Access Control Verification Module <ul><li>Any file can be shared. </li></ul><ul><li>Saves space & allows for synchronization of data updates. </li></ul><ul><li>Improves efficiency of system's resources, because if files are shared in main memory, I/O operations reduced. </li></ul><ul><li>However, integrity of each file must be safeguarded </li></ul><ul><ul><li>Control over who is allowed to access file and what type of access is permitted. </li></ul></ul><ul><ul><li>READ only, WRITE only, EXECUTE only, DELETE only, or some combination. </li></ul></ul>
  46. 46. File Access Control Methods <ul><li>Each file management system has own file access control method. </li></ul><ul><li>Access control matrix </li></ul><ul><li>Access control lists Most </li></ul><ul><li>Capability lists Common Methods </li></ul><ul><li>Lockword control. </li></ul>
  47. 47. Access Control Matrix <ul><li>Intuitively appealing & easy to implement. </li></ul><ul><li>Works well only for systems with few files & few users. </li></ul><ul><li>In matrix each column identifies a user & each row identifies a file. </li></ul><ul><li>Intersection of row & column has access rights for that user to that file . </li></ul>
  48. 48. Access Control Lists <ul><li>Modification of access control matrix technique. </li></ul><ul><li>Each file is entered in list & contains names of users allowed to access it & type of access permitted. </li></ul><ul><li>To shorten list, only those who may use file are named; those denied any access are grouped under global heading such as WORLD . </li></ul><ul><li>Or shorten by putting every user into a category: </li></ul><ul><ul><li>SYSTEM – system personnel with unlimited access to all files. </li></ul></ul><ul><ul><li>OWNER – absolute control over all files created in own account. </li></ul></ul><ul><ul><li>GROUP – all users belonging to appropriate group have access. </li></ul></ul><ul><ul><li>WORLD – all other users in system; default access types given by File Manager. </li></ul></ul>
  49. 49. Access Control List Example
  50. 50. Capability Lists <ul><li>Lists every user and files to which each has access . </li></ul><ul><li>Requires less storage space than an access control matrix. </li></ul><ul><li>Easier to maintain than an access control list when users are added or deleted from system. </li></ul>
  51. 51. Lockword Control <ul><li>Lockword is similar to a password but protects a single file. </li></ul><ul><ul><li>When file created, owner protects it via lockword </li></ul></ul><ul><ul><li>Stored in directory but isn’t revealed with directory listing. </li></ul></ul><ul><ul><li>User must provide correct lockword to access protected file. </li></ul></ul><ul><li>Require smallest amount of storage for file protection. </li></ul><ul><li>Can be guessed by hackers or passed on to unauthorized users. </li></ul><ul><li>Generally doesn’t control type of access to file. </li></ul><ul><ul><li>Anyone who knows lockword can read, write, execute, or delete file. </li></ul></ul>
  52. 52. Terminology <ul><li>access control list </li></ul><ul><li>access control matrix </li></ul><ul><li>capability list </li></ul><ul><li>complete file name </li></ul><ul><li>current byte address (CBA) </li></ul><ul><li>current directory </li></ul><ul><li>data compression </li></ul><ul><li>data file </li></ul><ul><li>database </li></ul><ul><li>device independent </li></ul><ul><li>direct access files </li></ul><ul><li>direct record organization </li></ul><ul><li>directory </li></ul><ul><li>extension </li></ul><ul><li>extents </li></ul><ul><li>file </li></ul><ul><li>file descriptor </li></ul><ul><li>fixed-length record </li></ul><ul><li>hashing algorithm </li></ul><ul><li>indexed sequential record organization </li></ul><ul><li>key field </li></ul><ul><li>lockword </li></ul><ul><li>logical address </li></ul>
  53. 53. Terminology - 2 <ul><li>logical address </li></ul><ul><li>master file directory (MFD) </li></ul><ul><li>relative address </li></ul><ul><li>relative file name </li></ul><ul><li>sequential record organization </li></ul><ul><li>subdirectory </li></ul><ul><li>variable-length record </li></ul><ul><li>volume </li></ul><ul><li>working directory </li></ul>