file systems Flashcards
(36 cards)
main function of a file system
main permanent data storage
is capacity a problem nowadays?
no, 2TB even for PC
if capacity is not a problem what is
backup becoming a problem
logical view of file systems
tree structure of files
together with read/write operation and creation of directories
physical view of file system
sequence of blocks, which can be read and
written. OS has to map logical view to physical view, must impose tree structure and assign blocks for each file
what are the 2 main possibilities to realise filesystems
linked lists
index allocation
describe linked list in file systems
Each block contains pointer to next
⇒ Problem: random access (seek()) costly: have to go
through whole file until desired position
describe index allocation in file systems
Store pointers in one location: so-called
index block (similar to page table). To cope with vastly
differing file sizes, may introduce indirect index blocks
what are index blocks in unix
inodes
what do is something additional inodes do
they store additional info about the file
eg size,
permissions)
what does FAT stand for
File Allocation Table
describe FAT
F(ile) A(llocation) T(able) – dates back to 70s.
Useful for explaining filesystem concepts, modern filesystems
are more complicated
Variants FAT12. FAT16, FAT32 define number of bits per
FAT entry – we focus on FAT16
Sector = disk unit (e.g. 512 byte), aka block
Cluster = multiple sectors (factor 1, 2, 4, . . . , 128)
(here: assume cluster = 1 sector)
Uses linked list (“cluster chain”) to group clusters
what does sector mean in FAT
Sector = disk unit (e.g. 512 byte), aka block
what does Cluster mean In FAT
Cluster = multiple sectors (factor 1, 2, 4, . . . , 128)
(here: assume cluster = 1 sector)
what is use to grop clusters in FAT
linked lists
what is the max volume size of FAT16
2 GB (216 · 32 kB)
what is the max file size of FAT16
2GB
what is the max number of files of FAT16
65,460 (32kb clusters)
how do new filesystems overcome FAT limits
overcome these limits,
using other data structures (e.g. B-tree for dir structure,
bitmap for allocation)
describe cachine
Disk blocks used for storing directories or recently used files cached in main memory
Blocks periodically written to disk
⇒ Big effiency gain
Inconsistency arises when system crashes
Reason why computers must be shutdown properly
describe journaling file systems
Define Transaction points: Points where cache is written to disk
⇒ Have consistent state
Keep log-file for each write-operation
Log enough information to unravel any changes done after latest transaction point
disk access contains 3 parts
what are they?
Seek
latency
transfer
what is seek in data access
head moves to appropriate track
what is latency in disk access
correct block is underhead