From: mitty Date: Sun, 12 Dec 2010 13:47:56 +0000 (+0000) Subject: * text log for http://ustre.am/mjex (http://www.ustream.tv/channel/magorokutv#utm_ca... X-Git-Tag: r89-trunk~6 X-Git-Url: http://lab.mitty.jp/git/?a=commitdiff_plain;h=5262908fc2b7fe1fa6238f616626d8980ca895a1;p=lab.git * text log for ustre.am/mjex (http://ustream.tv/channel/magorokutv#utm_campaign=unknown&utm_source=5317153&utm_medium=social) at 22:00 - 22:45 JST git-svn-id: https://lab.mitty.jp/svn/lab/trunk@84 7d2118f6-f56c-43e7-95a2-4bb3031d96e7 --- diff --git a/commentary/debhw/20101212.txt b/commentary/debhw/20101212.txt new file mode 100644 index 0000000..933d88f --- /dev/null +++ b/commentary/debhw/20101212.txt @@ -0,0 +1,102 @@ +ƒƒ‚ƒŠ‚̓oƒCƒg’PˆÊ +ƒfƒBƒXƒN‚̓uƒƒbƒN’PˆÊ + —ðŽj“IŒoˆÜ‚Å512byte’PˆÊ +ƒtƒ@ƒCƒ‹ƒVƒXƒeƒ€‚Í‚±‚̃uƒƒbƒN‚ÌŽg‚¢•û‚ðŒˆ‚ß‚Ü‚µ‚傤A‚Æ‚¢‚¤ƒ‹[ƒ‹ + + +‘åÌ‚́A‚ǂ́uƒuƒƒbƒNv‚ðŽg‚¤‚©‚𕨗“I‚ȃƒ‚’ ‚Æ‚©‚ɁuAddressv‚ð‘‚¢‚Ä‚â‚è‚­‚肵‚½ + No.0 block‚ÍA‚³‚ñA1‚ÍB‚³‚ñA‚Æ‚¢‚¤‚悤‚ɁB + telƒRƒ}ƒ“ƒh(?) + +E‚Ç‚±‚ðŽg‚Á‚Ä‚¢‚é‚© + •¡”‚̃uƒƒbƒN‚̏ꍇ‚àA’Pˆê‚̃uƒƒbƒN‚ōςޏꍇ‚à‚ ‚é + Unix‚ō̗p‚³‚ꂽAƒuƒƒbƒN‚ªŽ©“®‚ÅŠg’£‚³‚ê‚é‚Æ‚¢‚¤‹@”\‚ÍŒ‹‹Ç”á”»‚³‚ê‚È‚ª‚ç‚àL‚Ü‚Á‚Ä‚¢‚Á‚½ +E’N‚ªŽg‚¤‚© + inode + http://www.tamacom.com/tour/kernel/unix/S/61.html + 32s–Ú + i_mode + ƒtƒ@ƒCƒ‹‚̃‚[ƒh + short‚È‚Ì‚Å16bit + rwx‚Å3bit * 3 = 9bit + 63s–ځ` + ‰B‚ꂽƒ‚[ƒh (i_mode) + `67s–Ú + D => directory + R => regular file + “à—e‚ªƒ†[ƒU‚ÉŠJ•ú‚³‚ê‚Ä‚¢‚é‚Ì‚ªregular file + directory‚ÍOS‚ªŽg—p‚·‚é‚̂ŁAƒ†[ƒU‚Í•’ʈӎ¯‚µ‚È‚¢ + +¡“ú‚Íinode‚µ‚©‚µ‚È‚¢‚æ + +“`““I‚È*nix‚̃tƒ@ƒCƒ‹ƒVƒXƒeƒ€ + +ƒfƒBƒXƒN“à‚̏‡”Ô + æ“ª superblock => ŽŸ‰ñˆÈ~ + inodeƒGƒŠƒA + ˆê”ʃuƒƒbƒN +superblock + ‘S‘̂̏î•ñ + ‰Šú‰»‚·‚é‚Ì‚Ímkfs“™‚̃c[ƒ‹ +inodeƒGƒŠƒA + inode‚ªŒÅ‚Ü‚è‚Å‚¬‚Á‚µ‚è“ü‚Á‚Ä‚¢‚é + inode‚Ì”z—ñ +ˆê”ʃuƒƒbƒN + directory‚âregular file‚Å–„‚Ü‚Á‚Ä‚¢‚é + +mkfs‚µ‚½‚¾‚¯‚ł̓tƒ@ƒCƒ‹ƒVƒXƒeƒ€‚Æ‚µ‚Ä”FŽ¯‚³‚ê‚È‚¢ +ƒtƒ@ƒCƒ‹ƒVƒXƒeƒ€‚Æ‚µ‚āAmkfs‚µ‚½ƒfƒBƒXƒN‚ðOS‚É”FŽ¯‚³‚¹‚é‚Ì‚ÍmountƒRƒ}ƒ“ƒh + +mountƒRƒ}ƒ“ƒh‚ª‰½‚ð‚·‚é‚© + superblock‚ð“Ç‚ñ‚ŁA³‚µ‚¢FS‚©A’v–½“I‚È•s®‡‚ª‚È‚¢‚© + mount /dev/blockdev mountpoint + inode‚Ì2”Ô‚ð“Ç‚ñ‚ŁAmountpoint‚É’Ç‹L + 2”Ô‚È‚Ì‚ÍŒˆ‚Ü‚Á‚Ä‚¢‚é + inode‚Ì2”Ô‚Í”ñí‚ɏd—v + umount + ƒtƒ@ƒCƒ‹‚ª‘S‚ĕ‚¶‚Ä‚¢‚é‚© + inode‚ª‘S‚Älock‚³‚ê‚Ä‚¢‚È‚¢ +inode‚Ì2”Ô + ŠeFS‚Ì2”Ôinode‚̓fƒBƒŒƒNƒgƒŠ\‘¢‚Ìroot‚Æ‚È‚Á‚Ä‚¢‚é + mkfsƒRƒ}ƒ“ƒh‚ÌFS‚̏‰Šú‰»’¼Œã‚́AmkfsƒRƒ}ƒ“ƒh‚ª2”Ô‚ðƒfƒBƒŒƒNƒgƒŠ‚É•K‚¸ƒZƒbƒg‚·‚é + +inodeˆêŒÂ‚ªˆê‚‚̃tƒ@ƒCƒ‹ + +inode‚Ì”z—ñ‚©‚çA–¢Žg—p‚Ìinode‚ð’T‚µ‚Ä‚«‚āAƒƒ‚ƒŠã‚ɓǂݍž‚݁Aregular <= +1‚µ‚Ädisk‚ɏ‘‚«–ß‚· + –¢Žg—p‚ð’T‚·ƒAƒ‹ƒSƒŠƒYƒ€‚Í•Ê‚É‚ ‚é +ˆê”ʃuƒƒbƒN‚̋󂫗̈æ‚ð’T‚· + ’T‚·ƒAƒ‹ƒSƒŠƒYƒ€‚ª•Ê‚É‚ ‚é + 39s–Ú‚ÌNADDR‚ª–¢Žg—p + +*nix‚Å‚ÍinodeŽ©‘Ì‚ªƒtƒ@ƒCƒ‹ + uƒtƒ@ƒCƒ‹ = inodev + inode‚ÍŽ¯•ÊŽq‚Å‚Í‚È‚¢‚̂ŁA”ԍ†‚ª‚‚¢‚Ä‚¢‚é + ui_nov + uls -iv‚Åinode”ԍ†‚ªo‚é + "ls -i /" + => 2 +lnƒRƒ}ƒ“ƒh‚Åhardlink‚ðì‚é + ƒtƒ@ƒCƒ‹‚ðinode‚̔ԍ†‚ŌĂԂ͖̂ʓ|‚Ȃ̂ŁA–¼‘O‚ð‚‚¯‚é + ƒtƒ@ƒCƒ‹–¼‚Í•¡”‚‚¯‚ç‚ê‚é +Á‚¦‚éƒ^ƒCƒ~ƒ“ƒO‚ÍrmƒRƒ}ƒ“ƒh‚ð‘Å‚Á‚½uŠÔ‚Æ‚ÍŒÀ‚ç‚È‚¢ + +uino <=> file namev‚Ì‘g‚ݍ‡‚킹‚ð”z—ñ‚Æ‚µ‚ÄŽ‚Á‚Ä‚¢‚é“z‚ª‹‚é + |ino | file name | + | 41 | file A | + | 41 | file B | + ‚̂悤‚ÈŠÇ—•ë“I‚È•¨ + ŽÀ‚Í‚±‚ꂪƒfƒBƒŒƒNƒgƒŠƒtƒ@ƒCƒ‹ + ƒfƒBƒŒƒNƒgƒŠƒtƒ@ƒCƒ‹‚ð–³—–Œ©‚é‚ÆŒ©‚¦‚é + "cat ." + Linux‚͍\‘¢‚ªˆá‚¤‚Ì‚ÅŒ©‚ê‚È‚¢ + ¡‚ÌLinux‚ÆV7‚̃tƒ@ƒCƒ‹ƒVƒXƒeƒ€‚̍\‘¢‚Í“¯‚¶ + ƒtƒ@ƒCƒ‹ƒVƒXƒeƒ€‚ÌŠî–{“I‚ȃfƒUƒCƒ“\‘¢‚Í“¯‚¶ + ‚à‚¿‚ë‚ñŽÀ‘•ã‚̍H•vEi‰»‚Í‚ ‚é + ƒAƒ“ƒeƒB[ƒN‚ÈUnix‚ð¡‰ñŽæ‚èã‚°‚½——R‚Í‚±‚ê + +tempƒtƒ@ƒCƒ‹ + ƒtƒ@ƒCƒ‹‚ðì‚Á‚½uŠÔ‚Éunlink => ƒvƒƒZƒX‚ªŽ–ŒÌŽ€‚µ‚Ä‚àŸŽè‚Ƀtƒ@ƒCƒ‹‚ªÁ‚¦‚é + +Ì‚̓fƒBƒXƒN‚ª‚‰¿‚Å‘å‚«‚È’PˆêƒfƒBƒXƒN‚ð—pˆÓ‚·‚é‚Ì‚ª“‚©‚Á‚½‚̂ŁA +¬‚³‚ȃfƒBƒXƒN‚ðÚ‚¬–Ø‚µ‚āA‘å‚«‚­Œ©‚¹‚é‚Æ‚¢‚¤‹ê“÷‚̍ô + => inode 2