Beruflich Dokumente
Kultur Dokumente
CS 2254-OPERATING SYSTEMS
UNIT IV
TWO MARKS
1. What is a file?
A file has certain other attributes, which vary from one operating system to
another, but typically consist of these: Name, identifier, type, location, size, protection,
time, date and user identification.
Several pieces of information are associated with an open file which may be:
• File pointer
• File open count
• Disk location of the file
• Access rights
6. What is Directory?
The directory records information-such as name, location, size, and type for all
files on that particular partition. The directory can be viewed as a symbol table that
translates file names into their directory entries.
8. What are the most common schemes for defining the logical structure of a
directory?
• Single-Level Directory
• Two-level Directory
• Tree-Structured Directories
• Acyclic-Graph Directories
• General Graph Directory
In the two-level directory structure, each user has own user file directory (UFD).
Each UFD has a similar structure, but lists only the files of a single user.
When a job starts the system's master file directory (MFD) is searched. The MFD
is indexed by the user name or account number, and each entry points to the UFD for
that user.
A pathname is the path from the root through all subdirectories to a specified file.
In a two-level directory structure a user name and a file name define a path name.
CS 2254-OPERATING SYSTEMS-UNIT IV-2 MARKS
• Absolute path name: Begins at the root and follows a path down to the
specified file, giving the directory names on the path.
• Relative path name: Defines a path from the current directory.
15. What are the reasons for the failure of remote file systems?
17. What are the consistency semantics used by UNIX file system?
• 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.
20. What are the different types of access rights given to a file?
• Read
• Write
• Execute
• Append
• Delete
• List
a) owner access
b) group access
c) public access
The file system is composed of many different levels. Each level in the design
uses the feature of the lower levels to create new features for use by higher levels.
• Application programs
• Logical file system
• File-organization module
• Basic file system
• I/O control
• Devices
Several on-disk and in-memory structures are used to implement a file system
a. On-disk structure include
· Boot control block
· Partition block
CS 2254-OPERATING SYSTEMS-UNIT IV-2 MARKS
31. How can the index blocks be implemented in the indexed allocation scheme?
The free-space list is implemented as a bit map or bit vector. Each block is
represented by 1 bit. If the block is free, the bit is 1; if the block is allocated, the bit is 0.
The page cache uses virtual-memory techniques to cache file data as pages
rather than as file system- oriented blocks.
Disk cache is the concept of maintaining a separate section of main memory for
a disk cache, where blocks are kept under the assumption that they will be used again
shortly.
Some memory mapping requires two caches, page cache and buffer cache. A
memory mapping proceeds by reading in disk blocks from the file system and storing
them in the buffer cache. Then the contents of the buffer cache copied into page cache.
• Consistency checking
• Backup and restore
CS 2254-OPERATING SYSTEMS-UNIT IV-2 MARKS
Full backup: Copy to a backup medium all files from the disk.
Incremental backup: Copy to another medium all files changes since day 1.
This is to be continued for N days.