File Systems and I/O - Module 17

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/38

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

39 Terms

1
New cards

Goals of File System Design

Efficiency, Usability, Reliability

2
New cards

History of File Systems

Basic FS, Performance ( efficiency and locality ), optimize writes, scale and distribution

3
New cards

File

a named collection of related information recorded on secondary storage

4
New cards

data

what a user or application puts in the file

5
New cards

metadata

file attributes added and managed by the OS

6
New cards

directory

a list that provides names for files

7
New cards

hard link

a mapping form each name to a specific underlying file or directory

8
New cards

soft link

a mapping from a file name to another file name

9
New cards

file system metadata examples

file system type, number of blocks in the file system, file system permissions

10
New cards

where is FS metadata stored?

superblock

11
New cards

what two data structures can you use to track free space for data and metadata?

free list, bitmap

12
New cards

file layout goals

fase access rate, efficient access to large files, allow files to grow past their initial size, allow random and sequential access with reasonable efficiency

13
New cards

contiguous allocation

allocation method where the file system allocates a contiguous chunk of free blocks when it creates a file, using a free list, start location, and size

14
New cards

sectors

smallest unit the drive can read or write, usually 512 bytes long

15
New cards

blocks

the smallest unit which the software accesses the disk at, which is an integer number of contiguous sectors

16
New cards

I/o device hardware consists of :

bus, device port, controller, device

17
New cards

linked allocation

allocation method where file is stored as a linked list of blocks, not neccesarily contiguous in memory but connected using pointers. needs the file header and a pointer to each involved block

18
New cards

FAT (File Allocation Table)

a simple table that stores linked list information

19
New cards

FAT Disadvantages

poor random access, limited access control, no support for hard links, volume and file size are limited, no support for transactional updates

20
New cards

direct allocation

allocation method where files are stored in individual blocks, with the location information being stored entirely in the file header

21
New cards

Indexed allocation

allocation method where files are stored in individual blocks, and location information fo rthem is stored in index blocks

22
New cards

why would we want to add index blocks to direct allocation

simpler to grow files

23
New cards

multilevel indexed files

allocation method where files are stored as a fixed, asymmetric tree, with the data blocks as its leaves

24
New cards

Fast File System

A UNIX file system designed to improve performance over older systems by using larger block sizes, cylinder groups for locality, block fragmentation for efficient small file storage, and optimized metadata allocation to reduce disk seeks.

25
New cards

directories are also called…

folders!

26
New cards

directory

a collection of mappings from file name to file number

27
New cards

where can directories be modified

kernel mode only

28
New cards

make-it-work strategy

a directory strategy where one name space is given to the entire disk; if one user uses a name, no one else can

29
New cards

user-based strategy

a directory strategy where each user has a single separate directory; once a user uses a name, that user cannot reuse the name

30
New cards

computer memory hierarchy, fastest to slowest

processor registers, processor cache, random access memory, flash / USB memory, hard drives, tape backup

31
New cards

seek time

time to position head over track/cylinder

32
New cards

maximum

time to go from innermost to outermost track

33
New cards

rotation time

time fo the sector to rotate underneath the head

34
New cards

transfer tim

time to move the bytes from disk to memory

35
New cards

polling

a communication method where the OS keeps checking until the status of the I/O device is idle, then carries out operations

36
New cards

in polling, what happens if the device is busy when the OS has a request

the OS moves to another task, but it keeps the operation on its todo list and tries back

37
New cards

interrupts

a communication method where the device can interrupt the CPU when it completes an I/O operation; then, the OS can determine which device causes the interrupt, if the last command was an input operation, and then start the next operation for that device

38
New cards

DMA controller ( direct memory access )

a communication method where the CPU is interrupted only when the entire transfer of data is complete, instead of when each word is ready

39
New cards

NTFS

A file system used by Windows that supports large files, journaling for reliability, access control via permissions, file compression, encryption, and metadata-rich structures for better performance and security.