Inode
https://gyazo.com/f922f4a613445adb9ad7af211e2af45b
[ http://www.cems.uwe.ac.uk/~irjohnso/coursenotes/lrc/internals/filestore/fs3.htm]より
https://gyazo.com/5ccb825b7a60d4e9e7bad717e1486f43
CS 111 Lecture 12 Scribe Notes Spring '14より
a data structure in a Unix-style file system
inode - Wikipedia
disk上のどこかにデータブロックとしてある。そして、時間や権限などの属性情報を持つ。
etimologyで、inode のiは、イメージとしては indexの'i'に近いと。
An inode is denoted by the phrase "file serial number", defined as a per-file system unique identifier for a file
inodeという、
巨大?なファイルのユニーク番号とその物理的な場所(どのデバイスのどのブロックか),属性を持つテーブルがある?
implications:
ハードリンクは同じinodeを持つ。
ソフトリンク(symbolicリンク)は、参照的として(リンク先のファイルとは別の)実体をもつ(これも別のinodeにたぶんなる)
使いどころ:
inodeの数をfluentdとかで制限するときがある。
linuxのファイルシステムの理解に。
ファイルのinodeを知る
$ ls -i hoge.txt
で、 inode番号がでる
どれだけinodeを使ってるか
$ df -i
file自体の属性情報は、
$ stat bar.txt
みたいにする。 LINKSはハードリンクの数
symlink