6 Flashcards

1
Q

open files

A

open-file table tracks open files
pointer points to last read/write location
file-open count - count of number of times a file is open

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

sequential vs direct

A

sequential
-read next
-write next
-reset
direct
-read n
-write n
- postiion to n

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

acyclic-graph directories

A

have shared subdirectories and files

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Hard link

A

poiint to same inode, if original file deleted the link remains

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

soft link

A

point to file, if original file deleted it cant be accessed

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

types of access

A

read
write
execute
append
delete
list

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

attach a group to a file

A

chgrp g game
e.g. chmod 761 filename

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

disk structure

A

disk subdivided into partitions
disks or partitions can be RAID protected against failure
can be used raw without a file system

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

what is entity containing file system

A

volume, each volume containg a file system also tracks that file systems info in volume table of contents

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

partition

A

can be volume containing a file system (“cooked”) or raw

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

root partition

A

contains os, can hold other partitions

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

general vs proc file system

A

general - Ext4 -> implements
proc- does not store data, contents computed on demand according to user I/O requests

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

journaling

A

file system updates first written to a log file in the form of transactions

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

variety of I/O devices

A

-storage
-transmission
-human-interface

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

port

A

connection point for device

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

bus

A

pci bus common in PCs and servers
expansion bus connects relatively slow devices

17
Q

controller

A

electronics that operate port, bus, device
contains processor, microcode, private memory, bus controller

18
Q

interrupts

A

cpu interrupt request line triggered by I/O device
interrupt handler - hadnles interrupts
interrupt vector - dispatch interrupt

19
Q

direct memory access

A

used to avoid programmed I/O
requires DMA controller
OS writes DMA command block into memory

20
Q

DMA (direct memory access)

A

feature of computer systems that allows certain hardware subsystems to access main system memory independently of CPU
processor uses dma to offload expensive memory operations

21
Q

DMA Transfer 6 step

A

1)device driver told to transfer data
2)dd tells drive controller to transfer “c” bytes to buffer at address “x”
3)drive controller initiates DMA transfer
4)DMA controller transfers bytes to buffer x increasing memory address and decreasing c until c ==0
5)when c =0 dma interruputs cpu to signal transfer complete