0% found this document useful (0 votes)
36 views4 pages

File Systems: Structure, Types & Attributes

A file system provides structure and organization for files stored on a computer system. It defines files and their attributes like name, size, and location. There are three main types of file structures - text files consisting of characters organized into lines, object files as series of bytes organized into blocks, and source files as series of functions and processes. A file system manages files and their attributes to provide input/output support across different storage devices and users while preventing data loss and supporting file sharing and security.

Uploaded by

Updala Iprohim
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
36 views4 pages

File Systems: Structure, Types & Attributes

A file system provides structure and organization for files stored on a computer system. It defines files and their attributes like name, size, and location. There are three main types of file structures - text files consisting of characters organized into lines, object files as series of bytes organized into blocks, and source files as series of functions and processes. A file system manages files and their attributes to provide input/output support across different storage devices and users while preventing data loss and supporting file sharing and security.

Uploaded by

Updala Iprohim
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

File Systems in Operating System:

Structure, Attributes, Types

What is File System?


A file is a collection of correlated information which is recorded on
secondary or non-volatile storage like magnetic disks, optical disks,
and tapes. It is a method of data collection that is used as a medium
for giving input and receiving output from that program.

In general, a file is a sequence of bits, bytes, or records whose


meaning is defined by the file creator and user. Every File has a
logical location where they are located for storage and retrieval.

Table of Content:

Objective of File management System


Here are the main objectives of the file management system:

 It provides I/O support for a variety of storage device types.


 Minimizes the chances of lost or destroyed data
 Helps OS to standardized I/O interface routines for user
processes.
 It provides I/O support for multiple users in a multiuser systems
environment.

Properties of a File System


Here, are important properties of a file system:

 Files are stored on disk or other storage and do not disappear


when a user logs off.
 Files have names and are associated with access permission
that permits controlled sharing.
 Files could be arranged or more complex structures to reflect the
relationship between them.

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.

Three types of files structure in OS:

 A text file: It is a series of characters that is organized in lines.


 An object file: It is a series of bytes that is organized into blocks.
 A source file: It is a series of functions and processes.

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.

Here, are some important File attributes used in OS:

 Name: It is the only information stored in a human-readable


form.
 Identifier: Every file is identified by a unique tag number within a
file system known as an identifier.
 Location: Points to file location on device.
 Type: This attribute is required for systems that support various
types of files.
 Size. Attribute used to display the current file size.
 Protection. This attribute assigns and controls the access rights
of reading, writing, and executing the file.
 Time, date and security: It is used for protection, security, and
also used for monitoring
File Type
It refers to the ability of the operating system to differentiate various
types of files like text files, binary, and source files. However,
Operating systems like MS_DOS and UNIX has the following type of
files:

Character Special File


It is a hardware file that reads or writes data character by character,
like mouse, printer, and more.

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.

Common questions

Powered by AI

Operating systems like UNIX differentiate file types by categorizing them into Character Special Files, Ordinary Files, and Directory Files. This differentiation is important because it allows the system to apply specific handling methods and manage operations appropriately for different file types. Character Special Files represent device files for hardware interfacing, Ordinary Files store user data, and Directory Files help organize and manage file groups, ensuring efficient data retrieval and storage .

The 'Protection' attribute is significant as it controls access rights for reading, writing, and executing files, which is fundamental for maintaining security within a system. By setting appropriate permissions, this attribute prevents unauthorized access and modifications, thereby preserving data integrity and protecting sensitive information from breaches .

File attributes are crucial for efficient file management because they include key metadata such as the file name, identifier, location, type, size, and protection. These attributes help in organizing, accessing, and controlling files efficiently. For instance, the 'Protection' attribute assigns access rights, which is essential for security and controlled file sharing. Attributes like 'Time, date, and security' are used for monitoring and maintaining data integrity .

The file management system contributes to minimizing the risk of data loss by providing I/O support for a variety of storage device types, which ensures that data is consistently accessed and stored correctly across different media. It also helps manage the standardization of I/O interface routines, facilitating more reliable user process operations .

File structure plays a significant role in the operation of file systems as it defines the format understood by the operating system, influencing how data is stored and retrieved. It impacts file organization by defining types such as text files, object files, and source files, which govern how the data within files is arranged—from sequential lines in text files to blocks of bytes in object files. This predefined organization allows for standardized access methods and enhances the OS's ability to manage data effectively .

Device files are considered 'special' because they represent physical devices such as printers and disks, which require specific methods of data handling. They facilitate communication between software and hardware components, acting as interfaces that manage data flow to and from physical devices while ensuring efficient and correct hardware operation .

Directory files function mainly to organize and contain other files, acting as a hierarchical system to efficiently manage resources within the operating system. In contrast, ordinary files store user information and executable programs, allowing operations like adding, deleting, and modifying data. While directory files help in structuring and navigating file systems, ordinary files focus on data manipulation and user interaction with stored content .

A database differs from a typical file in that it is a structured collection of related data with explicit relationships among its data elements, allowing for complex queries and data manipulation. In contrast, a file is generally a linear collection of similar records without inherent relational context, making it less versatile for operations beyond basic storage and retrieval .

File repositioning in read/write operations involves adjusting the current read/write position within a file to access or modify different parts of the data. This process is important as it enables targeted updates and efficient data retrieval without needing to rewrite the entire file, thus optimizing performance and resource utilization within the operating system .

File system properties ensure data persistence by storing files on non-volatile storage, such as disks, which retain data even when power is off. This is complemented by maintaining file attributes and organizing them using directories, ensuring that data can be retrieved in future sessions regardless of user log-off .

You might also like