FILE SYSTEMS

example to show effect on read-write time of how a file is stored on a disk

IO software layers

system calls: open, close, read, write, change attributes such as permissions, create, delete

logical block size (how many consecutive sectors are grouped into a logical block) has similar tradeoffs as page size tradeoffs

user view of file systems (features)

system view of file system (implementation)

contiguous allocation

Example

linked list

MS-DOS FAT 16 and FAT 32

Example

UNIX, Linux i-nodes

Example

free list

directories

buffer cache: recently used disk blocks, least recently used algorithm

hard and soft links

disk partitions

partition containing a DOS file system

partition containing a UNIX, Linux file system

``defragment'' really means ``descatter'' or store files in contiguous logical blocks with all free blocks at disk end, there is no external fragmentation, only way to decrease internal fragmentation is to reduce logical block size

low-level format, high-level format, DOS format command, UNIX mkfs command, make empty file system


home page: http://elvis.rowan.edu/~hartley/index.html
e-mail: hartley@elvis.rowan.edu