Copyright (C) Cd Chen - http://www.cdchen.idv.tw/
淺談檔案系統
陳永昇 (Cd Chen)
http://www.cdchen.idv.tw/
本⽂文件⾮非公開授權,⾮非經同意,禁⽌止轉載Version: 20080420-RHEL5.1
1
Copyright (C) Cd Chen - http://www.cdchen.idv.tw/
2
Copyright (C) Cd Chen - http://www.cdchen.idv.tw/
磁碟設備
檔案系統
使⽤用者空間
磁區、磁柱、磁軌
inode、block
檔案、⺫⽬目錄、...
2
Copyright (C) Cd Chen - http://www.cdchen.idv.tw/
檔案系統 inode、block
2
Copyright (C) Cd Chen - http://www.cdchen.idv.tw/
檔案系統 inode、block
2
Copyright (C) Cd Chen - http://www.cdchen.idv.tw/
blockinode
檔案系統 inode、block
2
Copyright (C) Cd Chen - http://www.cdchen.idv.tw/
blockinode
檔案系統 inode、block
2
Copyright (C) Cd Chen - http://www.cdchen.idv.tw/
blockinode
... 211 212 213 214103102101...
檔案系統 inode、block
2
Copyright (C) Cd Chen - http://www.cdchen.idv.tw/
blockinode
... 211 212 213 214103102101...
3
Copyright (C) Cd Chen - http://www.cdchen.idv.tw/
I would like
to the theme
but the font
is not...
file1
blockinode
... 211 212 213 214103102101...
3
Copyright (C) Cd Chen - http://www.cdchen.idv.tw/
I would like
to the theme
but the font
is not...
file1
blockinode
... 211 212 213 214103102101... 212 213
I would
like to
the theme
but the
font is
not...
Content
3
Copyright (C) Cd Chen - http://www.cdchen.idv.tw/
I would like
to the theme
but the font
is not...
file1
blockinode
... 211 212 213 214103102101...
Type Regular
Mode rw-rw-r--
Link Count 1
User student
Group student
Size 128
Timestamp 2008/04/01
Blocks 212, 213
102 212 213
I would
like to
the theme
but the
font is
not...
ContentMetadata
3
Copyright (C) Cd Chen - http://www.cdchen.idv.tw/
blockinode
... 211 212 213 214103102101...
4
Copyright (C) Cd Chen - http://www.cdchen.idv.tw/
blockinode
... 211 212 213 214103102101...
Type Directory
Mode rwxrwxr-x
Link Count 2
User student
Group student
Size 1024
Timestamp 2008/04/01
Blocks 211
101 211
ContentMetadata
Name inode
. 101
.. 1045
file1 102
file1
4
Copyright (C) Cd Chen - http://www.cdchen.idv.tw/
blockinode
... 211 212 213 214103102101...
[student@linux ~]$
5
Copyright (C) Cd Chen - http://www.cdchen.idv.tw/
blockinode
... 211 212 213 214103102101...
[student@linux ~]$ ls dir/
5
Copyright (C) Cd Chen - http://www.cdchen.idv.tw/
blockinode
... 211 212 213 214103102101...
[student@linux ~]$ ls dir/
S
5
Copyright (C) Cd Chen - http://www.cdchen.idv.tw/
blockinode
... 211 212 213 214103102101...
Type Directory
Mode rwxrwxr-x
Link Count 2
User student
Group student
Size 1024
Timestamp 2008/04/01
Blocks 211
101
[student@linux ~]$ ls dir/
S
5
Copyright (C) Cd Chen - http://www.cdchen.idv.tw/
blockinode
... 211 212 213 214103102101...
Type Directory
Mode rwxrwxr-x
Link Count 2
User student
Group student
Size 1024
Timestamp 2008/04/01
Blocks 211
101
[student@linux ~]$ ls dir/
211
S
5
Copyright (C) Cd Chen - http://www.cdchen.idv.tw/
blockinode
... 211 212 213 214103102101...
Type Directory
Mode rwxrwxr-x
Link Count 2
User student
Group student
Size 1024
Timestamp 2008/04/01
Blocks 211
101 211
Name inode
. 101
.. 1045
file1 102
[student@linux ~]$ ls dir/
211
S
5
Copyright (C) Cd Chen - http://www.cdchen.idv.tw/
blockinode
... 211 212 213 214103102101...
Type Directory
Mode rwxrwxr-x
Link Count 2
User student
Group student
Size 1024
Timestamp 2008/04/01
Blocks 211
101 211
Name inode
. 101
.. 1045
file1 102
[student@linux ~]$ ls dir/
211
file1
S
5
Copyright (C) Cd Chen - http://www.cdchen.idv.tw/
blockinode
... 211 212 213 214103102101...
Type Directory
Mode rwxrwxr-x
Link Count 2
User student
Group student
Size 1024
Timestamp 2008/04/01
Blocks 211
101 211
Name inode
. 101
.. 1045
file1 102
[student@linux ~]$ ls dir/
211
file1
file1
[student@linux ~]$
S
5
Copyright (C) Cd Chen - http://www.cdchen.idv.tw/
blockinode
... 211 212 213 214103102101...
[student@linux ~]$
6
Copyright (C) Cd Chen - http://www.cdchen.idv.tw/
blockinode
... 211 212 213 214103102101...
[student@linux ~]$ ls -l dir/file1
6
Copyright (C) Cd Chen - http://www.cdchen.idv.tw/
blockinode
... 211 212 213 214103102101...
[student@linux ~]$ ls -l dir/file1
S
6
Copyright (C) Cd Chen - http://www.cdchen.idv.tw/
blockinode
... 211 212 213 214103102101...
Type Directory
Mode rwxrwxr-x
Link Count 2
User student
Group student
Size 1024
Timestamp 2008/04/01
Blocks 211
101
[student@linux ~]$ ls -l dir/file1
S
6
Copyright (C) Cd Chen - http://www.cdchen.idv.tw/
blockinode
... 211 212 213 214103102101...
Type Directory
Mode rwxrwxr-x
Link Count 2
User student
Group student
Size 1024
Timestamp 2008/04/01
Blocks 211
101
[student@linux ~]$ ls -l dir/file1
211
S
6
Copyright (C) Cd Chen - http://www.cdchen.idv.tw/
blockinode
... 211 212 213 214103102101...
Type Directory
Mode rwxrwxr-x
Link Count 2
User student
Group student
Size 1024
Timestamp 2008/04/01
Blocks 211
101 211
Name inode
. 101
.. 1045
file1 102
[student@linux ~]$ ls -l dir/file1
211
S
6
Copyright (C) Cd Chen - http://www.cdchen.idv.tw/
blockinode
... 211 212 213 214103102101...
Type Directory
Mode rwxrwxr-x
Link Count 2
User student
Group student
Size 1024
Timestamp 2008/04/01
Blocks 211
101 211
Name inode
. 101
.. 1045
file1 102
[student@linux ~]$ ls -l dir/file1
211
S
102
6
Copyright (C) Cd Chen - http://www.cdchen.idv.tw/
blockinode
... 211 212 213 214103102101...
Type Directory
Mode rwxrwxr-x
Link Count 2
User student
Group student
Size 1024
Timestamp 2008/04/01
Blocks 211
101 211
Name inode
. 101
.. 1045
file1 102
[student@linux ~]$ ls -l dir/file1
211
S
102
Type Regular
Mode rw-rw-r--
Link Count 1
User student
Group student
Size 128
Timestamp 2008/04/01
Blocks 212, 213
102
6
Copyright (C) Cd Chen - http://www.cdchen.idv.tw/
blockinode
... 211 212 213 214103102101...
Type Directory
Mode rwxrwxr-x
Link Count 2
User student
Group student
Size 1024
Timestamp 2008/04/01
Blocks 211
101 211
Name inode
. 101
.. 1045
file1 102
[student@linux ~]$ ls -l dir/file1
211
S
102
Type Regular
Mode rw-rw-r--
Link Count 1
User student
Group student
Size 128
Timestamp 2008/04/01
Blocks 212, 213
102
Regular
rw-rw-r--
1
student
student
128
2008/04/01
6
Copyright (C) Cd Chen - http://www.cdchen.idv.tw/
blockinode
... 211 212 213 214103102101...
Type Directory
Mode rwxrwxr-x
Link Count 2
User student
Group student
Size 1024
Timestamp 2008/04/01
Blocks 211
101 211
Name inode
. 101
.. 1045
file1 102
[student@linux ~]$ ls -l dir/file1
211
-rw-rw-r-- 1 student student 128 04/01 file1
[student@linux ~]$
S
102
Type Regular
Mode rw-rw-r--
Link Count 1
User student
Group student
Size 128
Timestamp 2008/04/01
Blocks 212, 213
102
Regular
rw-rw-r--
1
student
student
128
2008/04/01
6
Copyright (C) Cd Chen - http://www.cdchen.idv.tw/
blockinode
... 211 212 213 214103102101...
[student@linux ~]$
7
Copyright (C) Cd Chen - http://www.cdchen.idv.tw/
blockinode
... 211 212 213 214103102101...
[student@linux ~]$ cat dir/file1
7
Copyright (C) Cd Chen - http://www.cdchen.idv.tw/
blockinode
... 211 212 213 214103102101...
[student@linux ~]$ cat dir/file1
S
7
Copyright (C) Cd Chen - http://www.cdchen.idv.tw/
blockinode
... 211 212 213 214103102101...
Type Directory
Mode rwxrwxr-x
Link Count 2
User student
Group student
Size 1024
Timestamp 2008/04/01
Blocks 211
101
[student@linux ~]$ cat dir/file1
S
7
Copyright (C) Cd Chen - http://www.cdchen.idv.tw/
blockinode
... 211 212 213 214103102101...
Type Directory
Mode rwxrwxr-x
Link Count 2
User student
Group student
Size 1024
Timestamp 2008/04/01
Blocks 211
101
[student@linux ~]$ cat dir/file1
211
S
7
Copyright (C) Cd Chen - http://www.cdchen.idv.tw/
blockinode
... 211 212 213 214103102101...
Type Directory
Mode rwxrwxr-x
Link Count 2
User student
Group student
Size 1024
Timestamp 2008/04/01
Blocks 211
101 211
Name inode
. 101
.. 1045
file1 102
[student@linux ~]$ cat dir/file1
211
S
7
Copyright (C) Cd Chen - http://www.cdchen.idv.tw/
blockinode
... 211 212 213 214103102101...
Type Directory
Mode rwxrwxr-x
Link Count 2
User student
Group student
Size 1024
Timestamp 2008/04/01
Blocks 211
101 211
Name inode
. 101
.. 1045
file1 102
[student@linux ~]$ cat dir/file1
211
S
102
7
Copyright (C) Cd Chen - http://www.cdchen.idv.tw/
blockinode
... 211 212 213 214103102101...
Type Directory
Mode rwxrwxr-x
Link Count 2
User student
Group student
Size 1024
Timestamp 2008/04/01
Blocks 211
101 211
Name inode
. 101
.. 1045
file1 102
[student@linux ~]$ cat dir/file1
211
S
102
Type Regular
Mode rw-rw-r--
Link Count 1
User student
Group student
Size 128
Timestamp 2008/04/01
Blocks 212, 213
102
7
Copyright (C) Cd Chen - http://www.cdchen.idv.tw/
blockinode
... 211 212 213 214103102101...
Type Directory
Mode rwxrwxr-x
Link Count 2
User student
Group student
Size 1024
Timestamp 2008/04/01
Blocks 211
101 211
Name inode
. 101
.. 1045
file1 102
[student@linux ~]$ cat dir/file1
211
S
102
Type Regular
Mode rw-rw-r--
Link Count 1
User student
Group student
Size 128
Timestamp 2008/04/01
Blocks 212, 213
102
212
7
Copyright (C) Cd Chen - http://www.cdchen.idv.tw/
blockinode
... 211 212 213 214103102101...
Type Directory
Mode rwxrwxr-x
Link Count 2
User student
Group student
Size 1024
Timestamp 2008/04/01
Blocks 211
101 211
Name inode
. 101
.. 1045
file1 102
[student@linux ~]$ cat dir/file1
211
S
102
Type Regular
Mode rw-rw-r--
Link Count 1
User student
Group student
Size 128
Timestamp 2008/04/01
Blocks 212, 213
102
212
212 213
I would
like to
the theme
but the
font is
not...
7
Copyright (C) Cd Chen - http://www.cdchen.idv.tw/
blockinode
... 211 212 213 214103102101...
Type Directory
Mode rwxrwxr-x
Link Count 2
User student
Group student
Size 1024
Timestamp 2008/04/01
Blocks 211
101 211
Name inode
. 101
.. 1045
file1 102
[student@linux ~]$ cat dir/file1
211
S
102
Type Regular
Mode rw-rw-r--
Link Count 1
User student
Group student
Size 128
Timestamp 2008/04/01
Blocks 212, 213
102
212
212 213
I would
like to
the theme
but the
font is
not...
7
Copyright (C) Cd Chen - http://www.cdchen.idv.tw/
blockinode
... 211 212 213 214103102101...
Type Directory
Mode rwxrwxr-x
Link Count 2
User student
Group student
Size 1024
Timestamp 2008/04/01
Blocks 211
101 211
Name inode
. 101
.. 1045
file1 102
[student@linux ~]$ cat dir/file1
211
I would like to the theme but the font is not..
[student@linux ~]$
S
102
Type Regular
Mode rw-rw-r--
Link Count 1
User student
Group student
Size 128
Timestamp 2008/04/01
Blocks 212, 213
102
212
212 213
I would
like to
the theme
but the
font is
not...
7
Copyright (C) Cd Chen - http://www.cdchen.idv.tw/
File Operations
8
Copyright (C) Cd Chen - http://www.cdchen.idv.tw/
建⽴立與複製檔案
1. 檢查是否有可⽤用的 inode 與⾜足夠的 block
2. 將資料寫⼊入 block
3. 產⽣生 Metadata
4. 將 Metadata 存⼊入 inode
‣ 設定 ctime、mtime、atime
9
Copyright (C) Cd Chen - http://www.cdchen.idv.tw/
搬移檔案
‣ 不同檔案系統
1. 先複製檔案
2. 刪除原始檔案
‣ 相同檔案系統
1. 在⺫⽬目的⺫⽬目錄的 inode Table 新增紀錄
2. 移除原始⺫⽬目錄 inode Table 相關紀錄
3. 修改⺫⽬目的與原始⺫⽬目錄的 ctime
10
Copyright (C) Cd Chen - http://www.cdchen.idv.tw/
更改檔案名稱
1. 找出儲存檔案的⺫⽬目錄之內容
2. 變更 inode Table 的名稱
3. 變更⺫⽬目錄的 ctime
11
Copyright (C) Cd Chen - http://www.cdchen.idv.tw/
刪除檔案
1. 遞減 Link Count
‣ 遞減後為 0 時:
‣ 將 block 與 inode 放⼊入可⽤用清單中
2. 移除⺫⽬目錄 inode Table 的紀錄
3. 更新⺫⽬目錄的 ctime
12
Copyright (C) Cd Chen - http://www.cdchen.idv.tw/
Link Files
13
Copyright (C) Cd Chen - http://www.cdchen.idv.tw/
[student@linux ~]$ ls -il dir/
102 -rw-rw-r-- 2 student student 128 04/01 file1
102 -rw-rw-r-- 2 student student 128 04/01 hard
103 lrwxrwxrwx 1 student student 5 04/01 soft
[student@linux ~]$
Hard Link Soft Link
原理 共⽤用 inode,遞增 Link Count 儲存原始檔案的路徑名稱
Metadata 與原始檔案相同
•Type: l (Link)
•Perm: 777
•Link Count: 獨⽴立
•Ownership: 建⽴立者
•Size: 原始檔案的路徑名稱⻑⾧長度
•Timestamp:獨⽴立
刪除原始檔 可⽤用 失效
建⽴立同名原始檔 不同 相同
限制
•原始檔案不能為⺫⽬目錄
•必須與原始檔在相同檔案系統
無
14
Copyright (C) Cd Chen - http://www.cdchen.idv.tw/
blockinode
... 211 212 213 214103102101...
[student@linux ~]$
15
Copyright (C) Cd Chen - http://www.cdchen.idv.tw/
blockinode
... 211 212 213 214103102101...
[student@linux ~]$ cat dir/hard
15
Copyright (C) Cd Chen - http://www.cdchen.idv.tw/
blockinode
... 211 212 213 214103102101...
[student@linux ~]$ cat dir/hard
S
15
Copyright (C) Cd Chen - http://www.cdchen.idv.tw/
blockinode
... 211 212 213 214103102101...
Type Directory
Mode rwxrwxr-x
Link Count 2
User student
Group student
Size 1024
Timestamp 2008/04/01
Blocks 211
101
[student@linux ~]$ cat dir/hard
S
15
Copyright (C) Cd Chen - http://www.cdchen.idv.tw/
blockinode
... 211 212 213 214103102101...
Type Directory
Mode rwxrwxr-x
Link Count 2
User student
Group student
Size 1024
Timestamp 2008/04/01
Blocks 211
101
[student@linux ~]$ cat dir/hard
211
S
15
Copyright (C) Cd Chen - http://www.cdchen.idv.tw/
blockinode
... 211 212 213 214103102101...
Type Directory
Mode rwxrwxr-x
Link Count 2
User student
Group student
Size 1024
Timestamp 2008/04/01
Blocks 211
101 211
Name inode
. 101
.. 1045
file1 102
hard 102
[student@linux ~]$ cat dir/hard
211
S
15
Copyright (C) Cd Chen - http://www.cdchen.idv.tw/
blockinode
... 211 212 213 214103102101...
Type Directory
Mode rwxrwxr-x
Link Count 2
User student
Group student
Size 1024
Timestamp 2008/04/01
Blocks 211
101 211
Name inode
. 101
.. 1045
file1 102
hard 102
[student@linux ~]$ cat dir/hard
211
S
102
15
Copyright (C) Cd Chen - http://www.cdchen.idv.tw/
blockinode
... 211 212 213 214103102101...
Type Directory
Mode rwxrwxr-x
Link Count 2
User student
Group student
Size 1024
Timestamp 2008/04/01
Blocks 211
101 211
Name inode
. 101
.. 1045
file1 102
hard 102
[student@linux ~]$ cat dir/hard
211
S
102
Type Regular
Mode rw-rw-r--
Link Count 2
User student
Group student
Size 128
Timestamp 2008/04/01
Blocks 212, 213
102
15
Copyright (C) Cd Chen - http://www.cdchen.idv.tw/
blockinode
... 211 212 213 214103102101...
Type Directory
Mode rwxrwxr-x
Link Count 2
User student
Group student
Size 1024
Timestamp 2008/04/01
Blocks 211
101 211
Name inode
. 101
.. 1045
file1 102
hard 102
[student@linux ~]$ cat dir/hard
211
S
102
Type Regular
Mode rw-rw-r--
Link Count 2
User student
Group student
Size 128
Timestamp 2008/04/01
Blocks 212, 213
102
212
15
Copyright (C) Cd Chen - http://www.cdchen.idv.tw/
blockinode
... 211 212 213 214103102101...
Type Directory
Mode rwxrwxr-x
Link Count 2
User student
Group student
Size 1024
Timestamp 2008/04/01
Blocks 211
101 211
Name inode
. 101
.. 1045
file1 102
hard 102
[student@linux ~]$ cat dir/hard
211
S
102
Type Regular
Mode rw-rw-r--
Link Count 2
User student
Group student
Size 128
Timestamp 2008/04/01
Blocks 212, 213
102
212
212 213
I would
like to
the theme
but the
font is
not...
15
Copyright (C) Cd Chen - http://www.cdchen.idv.tw/
blockinode
... 211 212 213 214103102101...
Type Directory
Mode rwxrwxr-x
Link Count 2
User student
Group student
Size 1024
Timestamp 2008/04/01
Blocks 211
101 211
Name inode
. 101
.. 1045
file1 102
hard 102
[student@linux ~]$ cat dir/hard
211
S
102
Type Regular
Mode rw-rw-r--
Link Count 2
User student
Group student
Size 128
Timestamp 2008/04/01
Blocks 212, 213
102
212
212 213
I would
like to
the theme
but the
font is
not...
15
Copyright (C) Cd Chen - http://www.cdchen.idv.tw/
blockinode
... 211 212 213 214103102101...
Type Directory
Mode rwxrwxr-x
Link Count 2
User student
Group student
Size 1024
Timestamp 2008/04/01
Blocks 211
101 211
Name inode
. 101
.. 1045
file1 102
hard 102
[student@linux ~]$ cat dir/hard
211
I would like to the theme but the font is not..
[student@linux ~]$
S
102
Type Regular
Mode rw-rw-r--
Link Count 2
User student
Group student
Size 128
Timestamp 2008/04/01
Blocks 212, 213
102
212
212 213
I would
like to
the theme
but the
font is
not...
15
Copyright (C) Cd Chen - http://www.cdchen.idv.tw/
blockinode
... 211 212 213 214103102101...
[student@linux ~]$
16
Copyright (C) Cd Chen - http://www.cdchen.idv.tw/
blockinode
... 211 212 213 214103102101...
[student@linux ~]$ cat dir/soft
16
Copyright (C) Cd Chen - http://www.cdchen.idv.tw/
blockinode
... 211 212 213 214103102101...
[student@linux ~]$ cat dir/soft
S
16
Copyright (C) Cd Chen - http://www.cdchen.idv.tw/
blockinode
... 211 212 213 214103102101...
Type Directory
Mode rwxrwxr-x
Link Count 2
User student
Group student
Size 1024
Timestamp 2008/04/01
Blocks 211
101
[student@linux ~]$ cat dir/soft
S
16
Copyright (C) Cd Chen - http://www.cdchen.idv.tw/
blockinode
... 211 212 213 214103102101...
Type Directory
Mode rwxrwxr-x
Link Count 2
User student
Group student
Size 1024
Timestamp 2008/04/01
Blocks 211
101
[student@linux ~]$ cat dir/soft
211
S
16
Copyright (C) Cd Chen - http://www.cdchen.idv.tw/
blockinode
... 211 212 213 214103102101...
Type Directory
Mode rwxrwxr-x
Link Count 2
User student
Group student
Size 1024
Timestamp 2008/04/01
Blocks 211
101 211
Name inode
. 101
.. 1045
file1 102
soft 103
[student@linux ~]$ cat dir/soft
211
S
16
Copyright (C) Cd Chen - http://www.cdchen.idv.tw/
blockinode
... 211 212 213 214103102101...
Type Directory
Mode rwxrwxr-x
Link Count 2
User student
Group student
Size 1024
Timestamp 2008/04/01
Blocks 211
101 211
Name inode
. 101
.. 1045
file1 102
soft 103
[student@linux ~]$ cat dir/soft
211
S
103
16
Copyright (C) Cd Chen - http://www.cdchen.idv.tw/
blockinode
... 211 212 213 214103102101... 211
Name inode
. 101
.. 1045
file1 102
soft 103
[student@linux ~]$ cat dir/soft
103
Type Link
Mode rwxrwxrwx
Link Count 1
User student
Group student
Size 5
Timestamp 2008/04/01
Blocks 214
103
16
Copyright (C) Cd Chen - http://www.cdchen.idv.tw/
blockinode
... 211 212 213 214103102101... 211
Name inode
. 101
.. 1045
file1 102
soft 103
[student@linux ~]$ cat dir/soft
103
Type Link
Mode rwxrwxrwx
Link Count 1
User student
Group student
Size 5
Timestamp 2008/04/01
Blocks 214214
103
16
Copyright (C) Cd Chen - http://www.cdchen.idv.tw/
blockinode
... 211 212 213 214103102101... 211
Name inode
. 101
.. 1045
file1 102
soft 103
[student@linux ~]$ cat dir/soft
103
Type Link
Mode rwxrwxrwx
Link Count 1
User student
Group student
Size 5
Timestamp 2008/04/01
Blocks 214214
103 214
file1
16
Copyright (C) Cd Chen - http://www.cdchen.idv.tw/
blockinode
... 211 212 213 214103102101... 211
Name inode
. 101
.. 1045
file1 102
soft 103
[student@linux ~]$ cat dir/soft
Type Link
Mode rwxrwxrwx
Link Count 1
User student
Group student
Size 5
Timestamp 2008/04/01
Blocks 214214
103 214
file1
102
16
Copyright (C) Cd Chen - http://www.cdchen.idv.tw/
blockinode
... 211 212 213 214103102101... 211
Name inode
. 101
.. 1045
file1 102
soft 103
[student@linux ~]$ cat dir/soft
Type Regular
Mode rw-rw-r--
Link Count 1
User student
Group student
Size 128
Timestamp 2008/04/01
Blocks 212, 213
102
Type Link
Mode rwxrwxrwx
Link Count 1
User student
Group student
Size 5
Timestamp 2008/04/01
Blocks 214214
103 214
file1
102
16
Copyright (C) Cd Chen - http://www.cdchen.idv.tw/
blockinode
... 211 212 213 214103102101... 211
Name inode
. 101
.. 1045
file1 102
soft 103
[student@linux ~]$ cat dir/soft
Type Regular
Mode rw-rw-r--
Link Count 1
User student
Group student
Size 128
Timestamp 2008/04/01
Blocks 212, 213
102
212
Type Link
Mode rwxrwxrwx
Link Count 1
User student
Group student
Size 5
Timestamp 2008/04/01
Blocks 214214
103 214
file1
102
16
Copyright (C) Cd Chen - http://www.cdchen.idv.tw/
blockinode
... 211 212 213 214103102101... 211
Name inode
. 101
.. 1045
file1 102
soft 103
[student@linux ~]$ cat dir/soft
Type Regular
Mode rw-rw-r--
Link Count 1
User student
Group student
Size 128
Timestamp 2008/04/01
Blocks 212, 213
102
212
212 213
I would
like to
the theme
but the
font is
not...
Type Link
Mode rwxrwxrwx
Link Count 1
User student
Group student
Size 5
Timestamp 2008/04/01
Blocks 214214
103 214
file1
102
16
Copyright (C) Cd Chen - http://www.cdchen.idv.tw/
blockinode
... 211 212 213 214103102101... 211
Name inode
. 101
.. 1045
file1 102
soft 103
[student@linux ~]$ cat dir/soft
Type Regular
Mode rw-rw-r--
Link Count 1
User student
Group student
Size 128
Timestamp 2008/04/01
Blocks 212, 213
102
212
212 213
I would
like to
the theme
but the
font is
not...
Type Link
Mode rwxrwxrwx
Link Count 1
User student
Group student
Size 5
Timestamp 2008/04/01
Blocks 214214
103 214
file1
102
16
Copyright (C) Cd Chen - http://www.cdchen.idv.tw/
blockinode
... 211 212 213 214103102101... 211
Name inode
. 101
.. 1045
file1 102
soft 103
[student@linux ~]$ cat dir/soft
I would like to the theme but the font is not..
[student@linux ~]$
Type Regular
Mode rw-rw-r--
Link Count 1
User student
Group student
Size 128
Timestamp 2008/04/01
Blocks 212, 213
102
212
212 213
I would
like to
the theme
but the
font is
not...
Type Link
Mode rwxrwxrwx
Link Count 1
User student
Group student
Size 5
Timestamp 2008/04/01
Blocks 214214
103 214
file1
102
16

Inode block

  • 1.
    Copyright (C) CdChen - http://www.cdchen.idv.tw/ 淺談檔案系統 陳永昇 (Cd Chen) http://www.cdchen.idv.tw/ 本⽂文件⾮非公開授權,⾮非經同意,禁⽌止轉載Version: 20080420-RHEL5.1 1
  • 2.
    Copyright (C) CdChen - http://www.cdchen.idv.tw/ 2
  • 3.
    Copyright (C) CdChen - http://www.cdchen.idv.tw/ 磁碟設備 檔案系統 使⽤用者空間 磁區、磁柱、磁軌 inode、block 檔案、⺫⽬目錄、... 2
  • 4.
    Copyright (C) CdChen - http://www.cdchen.idv.tw/ 檔案系統 inode、block 2
  • 5.
    Copyright (C) CdChen - http://www.cdchen.idv.tw/ 檔案系統 inode、block 2
  • 6.
    Copyright (C) CdChen - http://www.cdchen.idv.tw/ blockinode 檔案系統 inode、block 2
  • 7.
    Copyright (C) CdChen - http://www.cdchen.idv.tw/ blockinode 檔案系統 inode、block 2
  • 8.
    Copyright (C) CdChen - http://www.cdchen.idv.tw/ blockinode ... 211 212 213 214103102101... 檔案系統 inode、block 2
  • 9.
    Copyright (C) CdChen - http://www.cdchen.idv.tw/ blockinode ... 211 212 213 214103102101... 3
  • 10.
    Copyright (C) CdChen - http://www.cdchen.idv.tw/ I would like to the theme but the font is not... file1 blockinode ... 211 212 213 214103102101... 3
  • 11.
    Copyright (C) CdChen - http://www.cdchen.idv.tw/ I would like to the theme but the font is not... file1 blockinode ... 211 212 213 214103102101... 212 213 I would like to the theme but the font is not... Content 3
  • 12.
    Copyright (C) CdChen - http://www.cdchen.idv.tw/ I would like to the theme but the font is not... file1 blockinode ... 211 212 213 214103102101... Type Regular Mode rw-rw-r-- Link Count 1 User student Group student Size 128 Timestamp 2008/04/01 Blocks 212, 213 102 212 213 I would like to the theme but the font is not... ContentMetadata 3
  • 13.
    Copyright (C) CdChen - http://www.cdchen.idv.tw/ blockinode ... 211 212 213 214103102101... 4
  • 14.
    Copyright (C) CdChen - http://www.cdchen.idv.tw/ blockinode ... 211 212 213 214103102101... Type Directory Mode rwxrwxr-x Link Count 2 User student Group student Size 1024 Timestamp 2008/04/01 Blocks 211 101 211 ContentMetadata Name inode . 101 .. 1045 file1 102 file1 4
  • 15.
    Copyright (C) CdChen - http://www.cdchen.idv.tw/ blockinode ... 211 212 213 214103102101... [student@linux ~]$ 5
  • 16.
    Copyright (C) CdChen - http://www.cdchen.idv.tw/ blockinode ... 211 212 213 214103102101... [student@linux ~]$ ls dir/ 5
  • 17.
    Copyright (C) CdChen - http://www.cdchen.idv.tw/ blockinode ... 211 212 213 214103102101... [student@linux ~]$ ls dir/ S 5
  • 18.
    Copyright (C) CdChen - http://www.cdchen.idv.tw/ blockinode ... 211 212 213 214103102101... Type Directory Mode rwxrwxr-x Link Count 2 User student Group student Size 1024 Timestamp 2008/04/01 Blocks 211 101 [student@linux ~]$ ls dir/ S 5
  • 19.
    Copyright (C) CdChen - http://www.cdchen.idv.tw/ blockinode ... 211 212 213 214103102101... Type Directory Mode rwxrwxr-x Link Count 2 User student Group student Size 1024 Timestamp 2008/04/01 Blocks 211 101 [student@linux ~]$ ls dir/ 211 S 5
  • 20.
    Copyright (C) CdChen - http://www.cdchen.idv.tw/ blockinode ... 211 212 213 214103102101... Type Directory Mode rwxrwxr-x Link Count 2 User student Group student Size 1024 Timestamp 2008/04/01 Blocks 211 101 211 Name inode . 101 .. 1045 file1 102 [student@linux ~]$ ls dir/ 211 S 5
  • 21.
    Copyright (C) CdChen - http://www.cdchen.idv.tw/ blockinode ... 211 212 213 214103102101... Type Directory Mode rwxrwxr-x Link Count 2 User student Group student Size 1024 Timestamp 2008/04/01 Blocks 211 101 211 Name inode . 101 .. 1045 file1 102 [student@linux ~]$ ls dir/ 211 file1 S 5
  • 22.
    Copyright (C) CdChen - http://www.cdchen.idv.tw/ blockinode ... 211 212 213 214103102101... Type Directory Mode rwxrwxr-x Link Count 2 User student Group student Size 1024 Timestamp 2008/04/01 Blocks 211 101 211 Name inode . 101 .. 1045 file1 102 [student@linux ~]$ ls dir/ 211 file1 file1 [student@linux ~]$ S 5
  • 23.
    Copyright (C) CdChen - http://www.cdchen.idv.tw/ blockinode ... 211 212 213 214103102101... [student@linux ~]$ 6
  • 24.
    Copyright (C) CdChen - http://www.cdchen.idv.tw/ blockinode ... 211 212 213 214103102101... [student@linux ~]$ ls -l dir/file1 6
  • 25.
    Copyright (C) CdChen - http://www.cdchen.idv.tw/ blockinode ... 211 212 213 214103102101... [student@linux ~]$ ls -l dir/file1 S 6
  • 26.
    Copyright (C) CdChen - http://www.cdchen.idv.tw/ blockinode ... 211 212 213 214103102101... Type Directory Mode rwxrwxr-x Link Count 2 User student Group student Size 1024 Timestamp 2008/04/01 Blocks 211 101 [student@linux ~]$ ls -l dir/file1 S 6
  • 27.
    Copyright (C) CdChen - http://www.cdchen.idv.tw/ blockinode ... 211 212 213 214103102101... Type Directory Mode rwxrwxr-x Link Count 2 User student Group student Size 1024 Timestamp 2008/04/01 Blocks 211 101 [student@linux ~]$ ls -l dir/file1 211 S 6
  • 28.
    Copyright (C) CdChen - http://www.cdchen.idv.tw/ blockinode ... 211 212 213 214103102101... Type Directory Mode rwxrwxr-x Link Count 2 User student Group student Size 1024 Timestamp 2008/04/01 Blocks 211 101 211 Name inode . 101 .. 1045 file1 102 [student@linux ~]$ ls -l dir/file1 211 S 6
  • 29.
    Copyright (C) CdChen - http://www.cdchen.idv.tw/ blockinode ... 211 212 213 214103102101... Type Directory Mode rwxrwxr-x Link Count 2 User student Group student Size 1024 Timestamp 2008/04/01 Blocks 211 101 211 Name inode . 101 .. 1045 file1 102 [student@linux ~]$ ls -l dir/file1 211 S 102 6
  • 30.
    Copyright (C) CdChen - http://www.cdchen.idv.tw/ blockinode ... 211 212 213 214103102101... Type Directory Mode rwxrwxr-x Link Count 2 User student Group student Size 1024 Timestamp 2008/04/01 Blocks 211 101 211 Name inode . 101 .. 1045 file1 102 [student@linux ~]$ ls -l dir/file1 211 S 102 Type Regular Mode rw-rw-r-- Link Count 1 User student Group student Size 128 Timestamp 2008/04/01 Blocks 212, 213 102 6
  • 31.
    Copyright (C) CdChen - http://www.cdchen.idv.tw/ blockinode ... 211 212 213 214103102101... Type Directory Mode rwxrwxr-x Link Count 2 User student Group student Size 1024 Timestamp 2008/04/01 Blocks 211 101 211 Name inode . 101 .. 1045 file1 102 [student@linux ~]$ ls -l dir/file1 211 S 102 Type Regular Mode rw-rw-r-- Link Count 1 User student Group student Size 128 Timestamp 2008/04/01 Blocks 212, 213 102 Regular rw-rw-r-- 1 student student 128 2008/04/01 6
  • 32.
    Copyright (C) CdChen - http://www.cdchen.idv.tw/ blockinode ... 211 212 213 214103102101... Type Directory Mode rwxrwxr-x Link Count 2 User student Group student Size 1024 Timestamp 2008/04/01 Blocks 211 101 211 Name inode . 101 .. 1045 file1 102 [student@linux ~]$ ls -l dir/file1 211 -rw-rw-r-- 1 student student 128 04/01 file1 [student@linux ~]$ S 102 Type Regular Mode rw-rw-r-- Link Count 1 User student Group student Size 128 Timestamp 2008/04/01 Blocks 212, 213 102 Regular rw-rw-r-- 1 student student 128 2008/04/01 6
  • 33.
    Copyright (C) CdChen - http://www.cdchen.idv.tw/ blockinode ... 211 212 213 214103102101... [student@linux ~]$ 7
  • 34.
    Copyright (C) CdChen - http://www.cdchen.idv.tw/ blockinode ... 211 212 213 214103102101... [student@linux ~]$ cat dir/file1 7
  • 35.
    Copyright (C) CdChen - http://www.cdchen.idv.tw/ blockinode ... 211 212 213 214103102101... [student@linux ~]$ cat dir/file1 S 7
  • 36.
    Copyright (C) CdChen - http://www.cdchen.idv.tw/ blockinode ... 211 212 213 214103102101... Type Directory Mode rwxrwxr-x Link Count 2 User student Group student Size 1024 Timestamp 2008/04/01 Blocks 211 101 [student@linux ~]$ cat dir/file1 S 7
  • 37.
    Copyright (C) CdChen - http://www.cdchen.idv.tw/ blockinode ... 211 212 213 214103102101... Type Directory Mode rwxrwxr-x Link Count 2 User student Group student Size 1024 Timestamp 2008/04/01 Blocks 211 101 [student@linux ~]$ cat dir/file1 211 S 7
  • 38.
    Copyright (C) CdChen - http://www.cdchen.idv.tw/ blockinode ... 211 212 213 214103102101... Type Directory Mode rwxrwxr-x Link Count 2 User student Group student Size 1024 Timestamp 2008/04/01 Blocks 211 101 211 Name inode . 101 .. 1045 file1 102 [student@linux ~]$ cat dir/file1 211 S 7
  • 39.
    Copyright (C) CdChen - http://www.cdchen.idv.tw/ blockinode ... 211 212 213 214103102101... Type Directory Mode rwxrwxr-x Link Count 2 User student Group student Size 1024 Timestamp 2008/04/01 Blocks 211 101 211 Name inode . 101 .. 1045 file1 102 [student@linux ~]$ cat dir/file1 211 S 102 7
  • 40.
    Copyright (C) CdChen - http://www.cdchen.idv.tw/ blockinode ... 211 212 213 214103102101... Type Directory Mode rwxrwxr-x Link Count 2 User student Group student Size 1024 Timestamp 2008/04/01 Blocks 211 101 211 Name inode . 101 .. 1045 file1 102 [student@linux ~]$ cat dir/file1 211 S 102 Type Regular Mode rw-rw-r-- Link Count 1 User student Group student Size 128 Timestamp 2008/04/01 Blocks 212, 213 102 7
  • 41.
    Copyright (C) CdChen - http://www.cdchen.idv.tw/ blockinode ... 211 212 213 214103102101... Type Directory Mode rwxrwxr-x Link Count 2 User student Group student Size 1024 Timestamp 2008/04/01 Blocks 211 101 211 Name inode . 101 .. 1045 file1 102 [student@linux ~]$ cat dir/file1 211 S 102 Type Regular Mode rw-rw-r-- Link Count 1 User student Group student Size 128 Timestamp 2008/04/01 Blocks 212, 213 102 212 7
  • 42.
    Copyright (C) CdChen - http://www.cdchen.idv.tw/ blockinode ... 211 212 213 214103102101... Type Directory Mode rwxrwxr-x Link Count 2 User student Group student Size 1024 Timestamp 2008/04/01 Blocks 211 101 211 Name inode . 101 .. 1045 file1 102 [student@linux ~]$ cat dir/file1 211 S 102 Type Regular Mode rw-rw-r-- Link Count 1 User student Group student Size 128 Timestamp 2008/04/01 Blocks 212, 213 102 212 212 213 I would like to the theme but the font is not... 7
  • 43.
    Copyright (C) CdChen - http://www.cdchen.idv.tw/ blockinode ... 211 212 213 214103102101... Type Directory Mode rwxrwxr-x Link Count 2 User student Group student Size 1024 Timestamp 2008/04/01 Blocks 211 101 211 Name inode . 101 .. 1045 file1 102 [student@linux ~]$ cat dir/file1 211 S 102 Type Regular Mode rw-rw-r-- Link Count 1 User student Group student Size 128 Timestamp 2008/04/01 Blocks 212, 213 102 212 212 213 I would like to the theme but the font is not... 7
  • 44.
    Copyright (C) CdChen - http://www.cdchen.idv.tw/ blockinode ... 211 212 213 214103102101... Type Directory Mode rwxrwxr-x Link Count 2 User student Group student Size 1024 Timestamp 2008/04/01 Blocks 211 101 211 Name inode . 101 .. 1045 file1 102 [student@linux ~]$ cat dir/file1 211 I would like to the theme but the font is not.. [student@linux ~]$ S 102 Type Regular Mode rw-rw-r-- Link Count 1 User student Group student Size 128 Timestamp 2008/04/01 Blocks 212, 213 102 212 212 213 I would like to the theme but the font is not... 7
  • 45.
    Copyright (C) CdChen - http://www.cdchen.idv.tw/ File Operations 8
  • 46.
    Copyright (C) CdChen - http://www.cdchen.idv.tw/ 建⽴立與複製檔案 1. 檢查是否有可⽤用的 inode 與⾜足夠的 block 2. 將資料寫⼊入 block 3. 產⽣生 Metadata 4. 將 Metadata 存⼊入 inode ‣ 設定 ctime、mtime、atime 9
  • 47.
    Copyright (C) CdChen - http://www.cdchen.idv.tw/ 搬移檔案 ‣ 不同檔案系統 1. 先複製檔案 2. 刪除原始檔案 ‣ 相同檔案系統 1. 在⺫⽬目的⺫⽬目錄的 inode Table 新增紀錄 2. 移除原始⺫⽬目錄 inode Table 相關紀錄 3. 修改⺫⽬目的與原始⺫⽬目錄的 ctime 10
  • 48.
    Copyright (C) CdChen - http://www.cdchen.idv.tw/ 更改檔案名稱 1. 找出儲存檔案的⺫⽬目錄之內容 2. 變更 inode Table 的名稱 3. 變更⺫⽬目錄的 ctime 11
  • 49.
    Copyright (C) CdChen - http://www.cdchen.idv.tw/ 刪除檔案 1. 遞減 Link Count ‣ 遞減後為 0 時: ‣ 將 block 與 inode 放⼊入可⽤用清單中 2. 移除⺫⽬目錄 inode Table 的紀錄 3. 更新⺫⽬目錄的 ctime 12
  • 50.
    Copyright (C) CdChen - http://www.cdchen.idv.tw/ Link Files 13
  • 51.
    Copyright (C) CdChen - http://www.cdchen.idv.tw/ [student@linux ~]$ ls -il dir/ 102 -rw-rw-r-- 2 student student 128 04/01 file1 102 -rw-rw-r-- 2 student student 128 04/01 hard 103 lrwxrwxrwx 1 student student 5 04/01 soft [student@linux ~]$ Hard Link Soft Link 原理 共⽤用 inode,遞增 Link Count 儲存原始檔案的路徑名稱 Metadata 與原始檔案相同 •Type: l (Link) •Perm: 777 •Link Count: 獨⽴立 •Ownership: 建⽴立者 •Size: 原始檔案的路徑名稱⻑⾧長度 •Timestamp:獨⽴立 刪除原始檔 可⽤用 失效 建⽴立同名原始檔 不同 相同 限制 •原始檔案不能為⺫⽬目錄 •必須與原始檔在相同檔案系統 無 14
  • 52.
    Copyright (C) CdChen - http://www.cdchen.idv.tw/ blockinode ... 211 212 213 214103102101... [student@linux ~]$ 15
  • 53.
    Copyright (C) CdChen - http://www.cdchen.idv.tw/ blockinode ... 211 212 213 214103102101... [student@linux ~]$ cat dir/hard 15
  • 54.
    Copyright (C) CdChen - http://www.cdchen.idv.tw/ blockinode ... 211 212 213 214103102101... [student@linux ~]$ cat dir/hard S 15
  • 55.
    Copyright (C) CdChen - http://www.cdchen.idv.tw/ blockinode ... 211 212 213 214103102101... Type Directory Mode rwxrwxr-x Link Count 2 User student Group student Size 1024 Timestamp 2008/04/01 Blocks 211 101 [student@linux ~]$ cat dir/hard S 15
  • 56.
    Copyright (C) CdChen - http://www.cdchen.idv.tw/ blockinode ... 211 212 213 214103102101... Type Directory Mode rwxrwxr-x Link Count 2 User student Group student Size 1024 Timestamp 2008/04/01 Blocks 211 101 [student@linux ~]$ cat dir/hard 211 S 15
  • 57.
    Copyright (C) CdChen - http://www.cdchen.idv.tw/ blockinode ... 211 212 213 214103102101... Type Directory Mode rwxrwxr-x Link Count 2 User student Group student Size 1024 Timestamp 2008/04/01 Blocks 211 101 211 Name inode . 101 .. 1045 file1 102 hard 102 [student@linux ~]$ cat dir/hard 211 S 15
  • 58.
    Copyright (C) CdChen - http://www.cdchen.idv.tw/ blockinode ... 211 212 213 214103102101... Type Directory Mode rwxrwxr-x Link Count 2 User student Group student Size 1024 Timestamp 2008/04/01 Blocks 211 101 211 Name inode . 101 .. 1045 file1 102 hard 102 [student@linux ~]$ cat dir/hard 211 S 102 15
  • 59.
    Copyright (C) CdChen - http://www.cdchen.idv.tw/ blockinode ... 211 212 213 214103102101... Type Directory Mode rwxrwxr-x Link Count 2 User student Group student Size 1024 Timestamp 2008/04/01 Blocks 211 101 211 Name inode . 101 .. 1045 file1 102 hard 102 [student@linux ~]$ cat dir/hard 211 S 102 Type Regular Mode rw-rw-r-- Link Count 2 User student Group student Size 128 Timestamp 2008/04/01 Blocks 212, 213 102 15
  • 60.
    Copyright (C) CdChen - http://www.cdchen.idv.tw/ blockinode ... 211 212 213 214103102101... Type Directory Mode rwxrwxr-x Link Count 2 User student Group student Size 1024 Timestamp 2008/04/01 Blocks 211 101 211 Name inode . 101 .. 1045 file1 102 hard 102 [student@linux ~]$ cat dir/hard 211 S 102 Type Regular Mode rw-rw-r-- Link Count 2 User student Group student Size 128 Timestamp 2008/04/01 Blocks 212, 213 102 212 15
  • 61.
    Copyright (C) CdChen - http://www.cdchen.idv.tw/ blockinode ... 211 212 213 214103102101... Type Directory Mode rwxrwxr-x Link Count 2 User student Group student Size 1024 Timestamp 2008/04/01 Blocks 211 101 211 Name inode . 101 .. 1045 file1 102 hard 102 [student@linux ~]$ cat dir/hard 211 S 102 Type Regular Mode rw-rw-r-- Link Count 2 User student Group student Size 128 Timestamp 2008/04/01 Blocks 212, 213 102 212 212 213 I would like to the theme but the font is not... 15
  • 62.
    Copyright (C) CdChen - http://www.cdchen.idv.tw/ blockinode ... 211 212 213 214103102101... Type Directory Mode rwxrwxr-x Link Count 2 User student Group student Size 1024 Timestamp 2008/04/01 Blocks 211 101 211 Name inode . 101 .. 1045 file1 102 hard 102 [student@linux ~]$ cat dir/hard 211 S 102 Type Regular Mode rw-rw-r-- Link Count 2 User student Group student Size 128 Timestamp 2008/04/01 Blocks 212, 213 102 212 212 213 I would like to the theme but the font is not... 15
  • 63.
    Copyright (C) CdChen - http://www.cdchen.idv.tw/ blockinode ... 211 212 213 214103102101... Type Directory Mode rwxrwxr-x Link Count 2 User student Group student Size 1024 Timestamp 2008/04/01 Blocks 211 101 211 Name inode . 101 .. 1045 file1 102 hard 102 [student@linux ~]$ cat dir/hard 211 I would like to the theme but the font is not.. [student@linux ~]$ S 102 Type Regular Mode rw-rw-r-- Link Count 2 User student Group student Size 128 Timestamp 2008/04/01 Blocks 212, 213 102 212 212 213 I would like to the theme but the font is not... 15
  • 64.
    Copyright (C) CdChen - http://www.cdchen.idv.tw/ blockinode ... 211 212 213 214103102101... [student@linux ~]$ 16
  • 65.
    Copyright (C) CdChen - http://www.cdchen.idv.tw/ blockinode ... 211 212 213 214103102101... [student@linux ~]$ cat dir/soft 16
  • 66.
    Copyright (C) CdChen - http://www.cdchen.idv.tw/ blockinode ... 211 212 213 214103102101... [student@linux ~]$ cat dir/soft S 16
  • 67.
    Copyright (C) CdChen - http://www.cdchen.idv.tw/ blockinode ... 211 212 213 214103102101... Type Directory Mode rwxrwxr-x Link Count 2 User student Group student Size 1024 Timestamp 2008/04/01 Blocks 211 101 [student@linux ~]$ cat dir/soft S 16
  • 68.
    Copyright (C) CdChen - http://www.cdchen.idv.tw/ blockinode ... 211 212 213 214103102101... Type Directory Mode rwxrwxr-x Link Count 2 User student Group student Size 1024 Timestamp 2008/04/01 Blocks 211 101 [student@linux ~]$ cat dir/soft 211 S 16
  • 69.
    Copyright (C) CdChen - http://www.cdchen.idv.tw/ blockinode ... 211 212 213 214103102101... Type Directory Mode rwxrwxr-x Link Count 2 User student Group student Size 1024 Timestamp 2008/04/01 Blocks 211 101 211 Name inode . 101 .. 1045 file1 102 soft 103 [student@linux ~]$ cat dir/soft 211 S 16
  • 70.
    Copyright (C) CdChen - http://www.cdchen.idv.tw/ blockinode ... 211 212 213 214103102101... Type Directory Mode rwxrwxr-x Link Count 2 User student Group student Size 1024 Timestamp 2008/04/01 Blocks 211 101 211 Name inode . 101 .. 1045 file1 102 soft 103 [student@linux ~]$ cat dir/soft 211 S 103 16
  • 71.
    Copyright (C) CdChen - http://www.cdchen.idv.tw/ blockinode ... 211 212 213 214103102101... 211 Name inode . 101 .. 1045 file1 102 soft 103 [student@linux ~]$ cat dir/soft 103 Type Link Mode rwxrwxrwx Link Count 1 User student Group student Size 5 Timestamp 2008/04/01 Blocks 214 103 16
  • 72.
    Copyright (C) CdChen - http://www.cdchen.idv.tw/ blockinode ... 211 212 213 214103102101... 211 Name inode . 101 .. 1045 file1 102 soft 103 [student@linux ~]$ cat dir/soft 103 Type Link Mode rwxrwxrwx Link Count 1 User student Group student Size 5 Timestamp 2008/04/01 Blocks 214214 103 16
  • 73.
    Copyright (C) CdChen - http://www.cdchen.idv.tw/ blockinode ... 211 212 213 214103102101... 211 Name inode . 101 .. 1045 file1 102 soft 103 [student@linux ~]$ cat dir/soft 103 Type Link Mode rwxrwxrwx Link Count 1 User student Group student Size 5 Timestamp 2008/04/01 Blocks 214214 103 214 file1 16
  • 74.
    Copyright (C) CdChen - http://www.cdchen.idv.tw/ blockinode ... 211 212 213 214103102101... 211 Name inode . 101 .. 1045 file1 102 soft 103 [student@linux ~]$ cat dir/soft Type Link Mode rwxrwxrwx Link Count 1 User student Group student Size 5 Timestamp 2008/04/01 Blocks 214214 103 214 file1 102 16
  • 75.
    Copyright (C) CdChen - http://www.cdchen.idv.tw/ blockinode ... 211 212 213 214103102101... 211 Name inode . 101 .. 1045 file1 102 soft 103 [student@linux ~]$ cat dir/soft Type Regular Mode rw-rw-r-- Link Count 1 User student Group student Size 128 Timestamp 2008/04/01 Blocks 212, 213 102 Type Link Mode rwxrwxrwx Link Count 1 User student Group student Size 5 Timestamp 2008/04/01 Blocks 214214 103 214 file1 102 16
  • 76.
    Copyright (C) CdChen - http://www.cdchen.idv.tw/ blockinode ... 211 212 213 214103102101... 211 Name inode . 101 .. 1045 file1 102 soft 103 [student@linux ~]$ cat dir/soft Type Regular Mode rw-rw-r-- Link Count 1 User student Group student Size 128 Timestamp 2008/04/01 Blocks 212, 213 102 212 Type Link Mode rwxrwxrwx Link Count 1 User student Group student Size 5 Timestamp 2008/04/01 Blocks 214214 103 214 file1 102 16
  • 77.
    Copyright (C) CdChen - http://www.cdchen.idv.tw/ blockinode ... 211 212 213 214103102101... 211 Name inode . 101 .. 1045 file1 102 soft 103 [student@linux ~]$ cat dir/soft Type Regular Mode rw-rw-r-- Link Count 1 User student Group student Size 128 Timestamp 2008/04/01 Blocks 212, 213 102 212 212 213 I would like to the theme but the font is not... Type Link Mode rwxrwxrwx Link Count 1 User student Group student Size 5 Timestamp 2008/04/01 Blocks 214214 103 214 file1 102 16
  • 78.
    Copyright (C) CdChen - http://www.cdchen.idv.tw/ blockinode ... 211 212 213 214103102101... 211 Name inode . 101 .. 1045 file1 102 soft 103 [student@linux ~]$ cat dir/soft Type Regular Mode rw-rw-r-- Link Count 1 User student Group student Size 128 Timestamp 2008/04/01 Blocks 212, 213 102 212 212 213 I would like to the theme but the font is not... Type Link Mode rwxrwxrwx Link Count 1 User student Group student Size 5 Timestamp 2008/04/01 Blocks 214214 103 214 file1 102 16
  • 79.
    Copyright (C) CdChen - http://www.cdchen.idv.tw/ blockinode ... 211 212 213 214103102101... 211 Name inode . 101 .. 1045 file1 102 soft 103 [student@linux ~]$ cat dir/soft I would like to the theme but the font is not.. [student@linux ~]$ Type Regular Mode rw-rw-r-- Link Count 1 User student Group student Size 128 Timestamp 2008/04/01 Blocks 212, 213 102 212 212 213 I would like to the theme but the font is not... Type Link Mode rwxrwxrwx Link Count 1 User student Group student Size 5 Timestamp 2008/04/01 Blocks 214214 103 214 file1 102 16