Kode MK
: IT-012336
11
Sistem File
Tim Teaching Grant
Mata Kuliah Sistem Operasi
Sistem File
Konsep
File
Metode Akses
Struktur Direktori
Mounting Sistem File
File Sharing
Proteksi
Konsep File
Ruang
Tipe
Data
numeric
character
binary
Program
Untuk
penyimpanan data/informasi:
kenyamanan user
File
Struktur
file
File Structure
Struktur kompleks
Lines
Fixed length
Variable length
Formatted document
Relocatable load file
Sistem operasi
Program
Atribut File
Operasi-operasi File
Enam
Create file
Write file
Read file
Reposition dalam file
Delete file
Truncate file
8
Write
file:
file:
Read file:
Delete file:
Truncate file:
10
Append file
Rename file
Get atribut file
Set atribut file
11
12
Metoda Akses
Sequential Access
Metoda lain
13
Access
read next
write next
reset
no read after last write
(rewrite)
Direct Access
read n
write n
position to n
read next
write next
rewrite n
n = relative block number
14
15
16
Struktur Direktori
17
Files
F1
F2
F3
F4
Fn
18
19
Name
Type
Address
Current length
Maximum length
Date last accessed (for archival)
Date last updated (for dump)
Owner ID (who pays)
Protection information (discuss later)
20
Operasi Direktori
Pencarian
file
Pembuatan file
Penghapusan file
Daftar directory
Penggantian nama file
Lintas sistem file
21
Grouping
Naming problem
Grouping problem
23
Path name
Dapat memiliki nama yang sama untuk user berbeda
Pencarian yang efisien
Tidak perlu dikelompokkan
24
25
cd /spell/mail/prog
type list
26
mail
copy prt exp count
27
Direktori Acyclic-Graph
28
29
30
31
(a) existing
Mount point
32
File Sharing
33
Proteksi
Jenis Akses :
Read
Write
Execute
Append
Delete
List
34
Mekanisme proteksi:
Ide OS:
protection domain:
Proses:
35
Security implementation
Capabilities:
OS (kernel)
user space: disandikan
36
UNIX: proteksi
Mode
b) groups access
c) public access
RWX
111
RWX
110
RWX
001
37
Proteksi (cont.)
group
761
public
game
game
38
39
Karakteristik
access
40
41
43
44
Allocation
Linked Allocation
Indexed Allocation
45
Contiguous Allocation
Setiap
Akses
46
orange 9
lemon 21
0
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
47
Masalah
reliabilitas
48
49
Linked Allocation
Setiap
Sulusi:
Linked Allocation
File index block
orange 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
51
Linked Allocation
Masalah
Masalah
reliabilitas
52
53
Name
test
... 217
618
217
618
Start block
339 EOF
618
339
FAT
55
Indexed Allocation
Setiap file menempati sejumlah block yang
terdaftar di dalam suatu block yang berfungsi
sebagai index block
Pendekatan
Indexed Allocation
File index block
jeep
19
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
19
9
16
1
10
25
-1
-1
-1
57
Contoh ukuran block 4K, pointer 32-bit, maka ada 1024 pointer
dalam index block, maka untuk 2 layer index block dapat
digunakan untuk 104876 block = 400 M
58
59
data
data
data
Direct blocks
data
data
Single indirect
Double indirect
Triple indirect
data
data
data
data
60
Free blocks:
61
Unjuk kerja:
cache:
write-through cache (MS-DOS)
write-back/delay cache (UNIX)
62
Implementasi Direktori
63
Implementasi Direktori
64
Unjuk Kerja
65
Recovery
Sistim
Primary
Partisi 1
Boot Sector
Partisi 2
Partisi 3
Partisi 4
Root Directory
Data ......
Data ......Data ......
67
PC disk layout
Boot
Sector
parameter: jumlah byte per-sector, jumlah sektor per blok,
besarnya root direktori (dibaca pertama kali)
tabel partisi: awal dan akhir suatu partisi,
setiap partisi dapat mempunyai sistim berkas berbeda,
partisi aktif: terdapat kode untuk menjalankan sistim
68
69