Chapter 2 File Systems
Chapter 2 File Systems
Table of Content:
File structure
A File Structure needs to be predefined format in such a way that
an operating system understands. It has an exclusively defined
structure, which is based on its type.
File Attributes
A file has a name and data. Moreover, it also stores meta information
like file creation date and time, current size, last modified date, etc. All
this information is called the attributes of a file system.
Ordinary files
These types of files stores user information.
It may be text, executable programs, and databases.
It allows the user to perform operations like add, delete, and
modify.
Directory Files
Directory contains files and other related information about those
files. Its basically a folder to hold and organize multiple files.
Special Files
These files are also called device files. It represents physical
devices like printers, disks, networks, flash drive, etc.
Functions of File
Create file, find space on disk, and make an entry in the
directory.
Write to file, requires positioning within the file
Read from file involves positioning within the file
Delete directory entry, regain disk space.
Reposition: move read/write position.
Commonly used terms in File systems
Field
This element stores a single value, which can be static or variable
length.
DATABASE
Collection of related data is called a database. Relationships among
elements of data are explicit.
FILES
Files is the collection of similar record which is treated as a single
entity.
RECORD
A Record type is a complex data type that allows the programmer to
create a new data type with the desired column structure. Its groups
one or more columns to form a new data type. These columns will
have their own names and data type.