3 - Filing Systems Flashcards

1
Q

Three Filing System types

A

Single-Level: all files in one
Two Level: Each user has directory
Multi : any node may be file or directory

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

Define a hard disk block

A

A sector traditionally capable of 25616-bit words or 5128-bit bytes (22^9 bytes)

Modern disks allow up to 4KiB but these are in 512 byter blocks (this course)

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

Boot Block

A

Contains the bootstrap program

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

Super Block

A

Contains data defining the file system

  • Num of inode blocks
  • size
  • free block details
  • free inode details
  • last sync date
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Inode

A

Contains information about nodes where a node is a file or directory etc

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

What is the structure of an inode?

A
Flags (2 bytes)
Link Count (1)
Owner ID (1)
Group ID (1)
File Size (3 bytes)
Access dates/times (8 bytes)
8 address words (16bytes)

adds to 32 bytes

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

If each inode is 32 bytes and each block is 512 bytes in size then each block can store…

A

512/32 = 2&9/2^5 = 2^4 = 16 inodes

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

What is the size of huge file limited to?

A

2^24 bytes as there are only 24bits set aside in the inode for file size in Unix ver 6

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

Directory Entry

A

Made up of 16 bytes (2 for inode num and 14 for file name) and stored with 31 other directory entries in a single disk block

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

Are filenames stored in inode?

A

No, they are stored in a block on the hard disk with the corresponding inode that defines that directory

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

What are the three permissions?

A

r -read
w - write
x - execute

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

What is the permission order (in terms of the 3 segments of rwx)?

A

owner-group-all

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