Topic 5
Topic 5
FILE MANAGEMENT
LEARNING OUTCOME
At the end of this chapter, students will be able to:
Identify the basic function of file system
Describe file organization technique
Describe types of file structure
Identify the methods of file allocation
INTRODUCTION
Type -
for systems that support multiple types
Location -
pointer to a device and to file location on device
Size -
current file size, maximal possible size
Protection -
controls who can read, write, execute
✓ FAT
✓ FAT32
✓ NTFS
FILE ORGANIZATION
The Pile
Data are collected in the order they arrive
Purpose is to accumulate a mass of data and save it
Records may have different fields
No structure
Record access is by exhaustive search
FILE ORGANIZATION
The Sequential File
Fixed format used for records
Records are the same length
All fields the same (order and length)
Field names and lengths are attributes
of the file
One field is the key filed
Uniquely identifies the record
Records are stored in key sequence
New records are placed in a log file or transaction
file
Batch update is performed to merge the log file with
the master file
FILE ORGANIZATION
Partition
Disk can be subdivided into partitions
Disk or partition can be used raw – without a file system, or
formatted with a file system
Partitions also known as minidisks, slices
Entity containing file system known as a volume
Each volume containing file system also tracks that file
system’s info in device directory or volume table of contents
FILE ORGANIZATION
Partition
FILE STRUCTURE