Index: /trunk/commentary/debhw/20101212.txt
===================================================================
--- /trunk/commentary/debhw/20101212.txt	(revision 84)
+++ /trunk/commentary/debhw/20101212.txt	(revision 84)
@@ -0,0 +1,102 @@
+ÍoCgPÊ
+fBXNÍubNPÊ
+	ðjIoÜÅ512bytePÊ
+t@CVXeÍ±ÌubNÌg¢ûðßÜµå¤AÆ¢¤[
+
+
+åÌÍAÇÌuubNvðg¤©ð¨IÈ Æ©ÉuAddressvð¢Äâè­èµ½
+	No.0 blockÍA³ñA1ÍB³ñAÆ¢¤æ¤ÉB
+	telR}h(?)
+	
+EÇ±ðgÁÄ¢é©
+	¡ÌubNÌêàAPêÌubNÅÏÞêà é
+	UnixÅÌp³ê½AubNª©®Åg£³êéÆ¢¤@\ÍÇá»³êÈªçàLÜÁÄ¢Á½
+ENªg¤©
+	inode
+	http://www.tamacom.com/tour/kernel/unix/S/61.html
+	32sÚ
+		i_mode
+			t@CÌ[h
+			shortÈÌÅ16bit
+			rwxÅ3bit * 3 = 9bit
+	63sÚ`
+		Bê½[h (i_mode)
+		`67sÚ
+		D => directory
+		R => regular file
+	àeª[UÉJú³êÄ¢éÌªregular file
+	directoryÍOSªgp·éÌÅA[UÍÊÓ¯µÈ¢
+
+¡úÍinodeµ©µÈ¢æ
+
+`IÈ*nixÌt@CVXe
+
+fBXNàÌÔ
+	æª superblock => ñÈ~
+	inodeGA
+	êÊubN
+superblock
+	SÌÌîñ
+	ú»·éÌÍmkfsÌc[
+inodeGA
+	inodeªÅÜèÅ¬ÁµèüÁÄ¢é
+	inodeÌzñ
+êÊubN
+	directoryâregular fileÅÜÁÄ¢é
+
+mkfsµ½¾¯ÅÍt@CVXeÆµÄF¯³êÈ¢
+t@CVXeÆµÄAmkfsµ½fBXNðOSÉF¯³¹éÌÍmountR}h
+
+mountR}hª½ð·é©
+	superblockðÇñÅA³µ¢FS©Av½IÈs®ªÈ¢©
+	mount /dev/blockdev mountpoint
+		inodeÌ2ÔðÇñÅAmountpointÉÇL
+		2ÔÈÌÍÜÁÄ¢é
+		inodeÌ2ÔÍñíÉdv
+	umount
+		t@CªSÄÂ¶Ä¢é©
+			inodeªSÄlock³êÄ¢È¢
+inodeÌ2Ô
+	eFSÌ2ÔinodeÍfBNg\¢ÌrootÆÈÁÄ¢é
+	mkfsR}hÌFSÌú»¼ãÍAmkfsR}hª2ÔðfBNgÉK¸Zbg·é
+
+inodeêÂªêÂÌt@C
+
+inodeÌzñ©çA¢gpÌinodeðTµÄ«ÄAãÉÇÝÝAregular <= +1µÄdiskÉ«ß·
+	¢gpðT·ASYÍÊÉ é
+êÊubNÌó«ÌæðT·
+	T·ASYªÊÉ é
+	39sÚÌNADDRª¢gp
+
+*nixÅÍinode©Ìªt@C
+	ut@C = inodev
+	inodeÍ¯ÊqÅÍÈ¢ÌÅAÔªÂ¢Ä¢é
+		ui_nov
+		uls -ivÅinodeÔªoé
+	"ls -i /"
+		=> 2
+lnR}hÅhardlinkðìé
+	t@CðinodeÌÔÅÄÔÌÍÊ|ÈÌÅA¼OðÂ¯é
+	t@C¼Í¡Â¯çêé
+Á¦é^C~OÍrmR}hðÅÁ½uÔÆÍÀçÈ¢
+
+uino <=> file namevÌgÝí¹ðzñÆµÄÁÄ¢ézªé
+	|ino | file name |
+	| 41 |   file A  |
+	| 41 |   file B  |
+	Ìæ¤ÈÇëIÈ¨
+	ÀÍ±êªfBNgt@C
+		fBNgt@Cð³î©éÆ©¦é
+		"cat ."
+			LinuxÍ\¢ªá¤ÌÅ©êÈ¢
+	¡ÌLinuxÆV7Ìt@CVXeÌ\¢Í¯¶
+		t@CVXeÌî{IÈfUC\¢Í¯¶
+		à¿ëñÀãÌHvEi»Í é
+		AeB[NÈUnixð¡ñæèã°½RÍ±ê
+
+tempt@C
+	t@CðìÁ½uÔÉunlink => vZXªÌµÄàèÉt@CªÁ¦é
+
+ÌÍfBXNª¿Åå«ÈPêfBXNðpÓ·éÌªïµ©Á½ÌÅA
+¬³ÈfBXNðÚ¬ØµÄAå«­©¹éÆ¢¤ê÷Ìô
+	=> inode 2
