Professional Documents
Culture Documents
• Access Methods
• Directory Structure
• File-System Mounting
• File Sharing
• Protection
• Contiguous logical address space
• Types:
• Data
• numeric
• character
• binary
• Program
• None - sequence of words, bytes
• Simple record structure
• Lines
• Fixed length
• Variable length
• Complex Structures
• Formatted document
• Who decides:
• Operating system
• Name – only information kept in human-readable form
• Type – needed for systems that support different types
• Location – pointer to file location on device
• Size – current file size
• Protection – controls who can do reading, writing, executing
• Time, date, and user identification – data for protection,
security, and usage monitoring
• Create
• Write
• Read
• Reposition within file
• Delete
• Truncate
• Sequential Access
read next
write next
reset
no read after last write
(rewrite)
• Direct Access
read n
write n
position to n
read next
write next
rewrite n
n = relative block number
• A collection of nodes containing information about all files
Directory
Files
F1 F2 F3 F4
Fn
Naming problem
Grouping problem
• Separate directory for each user
Path name
Can have the same file name for different user
Efficient searching
No grouping capability
• Efficient searching
• Grouping Capability
Mount point:
point The actual location from which the file system is mounted and
accessed.
• Figure 7-1 illustrates the mounting process. When
a file system is mounted, the name of the device
file for the file system
(/dev/rdsk/dks0d2s7 in Figure 7-1 and the name of
a directory (/proj in Figure 7-1 are given. This
directory, /proj,is called a mount point and forms
the connection between the file system containing
the mount point and the file system to be mounted.
Mounting a file system tells the kernel that the mount point is to be
considered equivalent to the top level directory of the file system
when pathnames are resolved. In Figure 7-1,7-1 the files a, b, and c in
the /dev/rdsk/dks0d2s7 file system become /proj/a, /proj/b,
and/proj/c as shown in the bottom of the figure.
Figure 7-1. Mounting a File System
• File sharing is the public or private sharing of computer data or
space in a network with various levels of access privilege.
• Types of access
• Read
• Write
• Execute
• Append
• Delete
• List
• Mode of access: read, write, execute
• Three classes of users
RWX
a) owner access 7 111
RWX
b) group access 6 110
RWX
c) public access 1 001
• 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.