Issues Handled By File System
We’ve seen a variety of data structures where the file could be kept. The file system’s job is to keep the files organized in the best way possible.
A free space is created on the hard drive whenever a file is deleted from it. To reallocate them to other files, many of these spaces may need to be recovered. Choosing where to store the files on the hard disc is the main issue with files one block may or may not be used to store a file. It may be kept in the disk’s non-contiguous blocks. We must keep track of all the blocks where the files are partially located.
Files Attributes And Their Operations
Attributes |
Types |
Operations |
---|---|---|
Name |
Doc |
Create |
Type |
Exe |
Open |
Size |
Jpg |
Read |
Creation Data |
Xis |
Write |
Author |
C |
Append |
Last Modified |
Java |
Truncate |
protection |
class |
Delete |
|
|
Close |
File type |
Usual extension |
Function |
---|---|---|
Executable |
exe, com, bin |
Read to run machine language program |
Object |
obj, o |
Compiled, machine language not linked |
Source Code |
C, java, pas, asm, a |
Source code in various languages |
Batch |
bat, sh |
Commands to the command interpreter |
Text |
txt, doc |
Textual data, documents |
Word Processor |
wp, tex, rrf, doc |
Various word processor formats |
Archive |
arc, zip, tar |
Related files grouped into one compressed file |
Multimedia |
mpeg, mov, rm |
For containing audio/video information |
Markup |
xml, html, tex |
It is the textual data and documents |
Library |
lib, a ,so, dll |
It contains libraries of routines for programmers |
Print or View |
gif, pdf, jpg |
It is a format for printing or viewing an ASCII or binary file. |
File Systems in Operating System
A computer file is defined as a medium used for saving and managing data in the computer system. The data stored in the computer system is completely in digital format, although there can be various types of files that help us to store the data.