File System Flashcards

1
Q

Types of Data?

A

Numeric
Character
Binary

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

File Attributes?

A
Name
Identifier
Type
Location
Size
Protection
Time, date
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

File Operations?

A
Create
Write
Read
Reposition - Seek
Delete
Truncate
Open
Close
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Open Files?

A

Open-file table: tracks open files.
File Pointer: Pointer to last read/write location, per process that has the file open.
File-open count: counter of number of times a file is open, to allow removal of data from open-file table.

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

Open File Locking?

A

Similar to reader-writer locks
Shared lock similar to reader lock - several processes can acquire concurrently.
Exclusive lock similar to writer lock

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

Mandatory?

A

Access is denied depending on locks held and requested

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

Advisory?

A

Processes can find status of locks and decide what to do

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

File Structure?

A

None
Simple Record Structure
Compex Structures

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

Access Methods?

A

Sequential Access

Direct Access

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

Sequential Access

A

Read next
Write next
reset

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

Direct Access?

A
File is fixed length logical records.
Read n
write n
position to n
--read next
--write next
rewrite n
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Disk structure?

A

Disk can be subdivided into partitions

Disk can be RAID protected against failure

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

Operations Performed on Directory?

A
Search for a file
Create a file
Delete a file
List a directory
Rename a file
Traverse a file system
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

The directory is organized logically to obtain?

A

Efficiency
Naming
Grouping

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

Acyclic-Graph Directories

A

Two different names

If dict deletes list -> dangling pointer.

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

Solution to dangling pointer?

A

Backpointers, so we can delete all pointers variable size records a problem.
Backpointers using a daisy chain organization
Entry-hold-count solution

17
Q

New directory entry types?

A

Link - another name

Resolve the link - follow pointer to locate the file

18
Q

File Sharing?

A

Sharing of files on multi-user systems is desirable

Sharing may be done through a protection scheme

19
Q

If multi-user system?

A

User IDs identify users, allowing permissions and protections to be per-user.

Group IDs allow users to be in groups, permitting group acscess rights

20
Q

Types of File Sharing?

A

Manually via FTP
Automatically via DFS
Semi-Automatically via WWW

21
Q

Client-Server?

A

Model allows clients to mount remote file systems from servers.

Server can serve multiple clients
Client and user-on-client identification is insecure or complicated.

22
Q

Client-Server types?

A

NFS

CIFS

23
Q

NFS?

A

Is standard UNIX client-server file sharing protocol

24
Q

CIFS?

A

is standard windows protocol

25
Q

Failure Modes?

A

All file systems have failure modes

Non user data is called metadata

26
Q

Consistency Semantics?

A

how multiple users are to access a shared file

Similar to process synchronization algorithms

27
Q

Types of Semantics?

A

AFS

UFS

28
Q

AFS?

A

Andrew File System implemented complex remote file sharing semantics

29
Q

UFS?

A

Unix File System implements
Writes to an open file visible immediately to other users of the same open file

Sharing File pointer to allow multiple users to read and write concurrently.

30
Q

Protection?

A

The owner manages:
Actions
Permissions

31
Q

Types of access?

A
Read
Write
Execute
Append
Delete
List
32
Q

Modes of Access?

A

Read
Write
Execute