annotate slide/slide.html @ 46:8fbd88035545

...
author matac42 <matac@cr.ie.u-ryukyu.ac.jp>
date Wed, 02 Feb 2022 20:55:43 +0900
parents 53b74a9cb1ef
children a56209284c1f
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
19
9d7c2f216e62 add slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1
9d7c2f216e62 add slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
2
9d7c2f216e62 add slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
3
9d7c2f216e62 add slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
4
9d7c2f216e62 add slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
5
9d7c2f216e62 add slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
6 <!DOCTYPE html>
9d7c2f216e62 add slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
7 <html>
9d7c2f216e62 add slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
8 <head>
9d7c2f216e62 add slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
9 <meta http-equiv="content-type" content="text/html;charset=utf-8">
46
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 44
diff changeset
10 <title>GearsOSにおけるinodeを用いたFile systemの実装</title>
19
9d7c2f216e62 add slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
11
9d7c2f216e62 add slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
12 <meta name="generator" content="Slide Show (S9) v4.1.0 on Ruby 3.0.3 (2021-11-24) [arm64-darwin21]">
9d7c2f216e62 add slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
13 <meta name="author" content="又吉 雄斗" >
9d7c2f216e62 add slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
14
9d7c2f216e62 add slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
15 <!-- style sheet links -->
9d7c2f216e62 add slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
16 <link rel="stylesheet" href="s6/themes/projection.css" media="screen,projection">
9d7c2f216e62 add slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
17 <link rel="stylesheet" href="s6/themes/screen.css" media="screen">
9d7c2f216e62 add slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
18 <link rel="stylesheet" href="s6/themes/print.css" media="print">
9d7c2f216e62 add slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
19 <link rel="stylesheet" href="s6/themes/blank.css" media="screen,projection">
9d7c2f216e62 add slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
20
9d7c2f216e62 add slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
21 <!-- JS -->
9d7c2f216e62 add slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
22 <script src="s6/js/jquery-1.11.3.min.js"></script>
9d7c2f216e62 add slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
23 <script src="s6/js/jquery.slideshow.js"></script>
9d7c2f216e62 add slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
24 <script src="s6/js/jquery.slideshow.counter.js"></script>
9d7c2f216e62 add slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
25 <script src="s6/js/jquery.slideshow.controls.js"></script>
9d7c2f216e62 add slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
26 <script src="s6/js/jquery.slideshow.footer.js"></script>
9d7c2f216e62 add slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
27 <script src="s6/js/jquery.slideshow.autoplay.js"></script>
9d7c2f216e62 add slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
28
9d7c2f216e62 add slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
29 <!-- prettify -->
9d7c2f216e62 add slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
30 <link rel="stylesheet" href="scripts/prettify.css">
9d7c2f216e62 add slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
31 <script src="scripts/prettify.js"></script>
9d7c2f216e62 add slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
32
9d7c2f216e62 add slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
33 <script>
9d7c2f216e62 add slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
34 $(document).ready( function() {
9d7c2f216e62 add slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
35 Slideshow.init();
9d7c2f216e62 add slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
36
9d7c2f216e62 add slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
37 $('code').each(function(_, el) {
9d7c2f216e62 add slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
38 if (!el.classList.contains('noprettyprint')) {
9d7c2f216e62 add slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
39 el.classList.add('prettyprint');
9d7c2f216e62 add slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
40 }
9d7c2f216e62 add slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
41 });
9d7c2f216e62 add slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
42 prettyPrint();
9d7c2f216e62 add slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
43 } );
9d7c2f216e62 add slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
44
9d7c2f216e62 add slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
45 </script>
9d7c2f216e62 add slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
46
9d7c2f216e62 add slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
47 <!-- Better Browser Banner for Microsoft Internet Explorer (IE) -->
9d7c2f216e62 add slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
48 <!--[if IE]>
9d7c2f216e62 add slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
49 <script src="s6/js/jquery.microsoft.js"></script>
9d7c2f216e62 add slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
50 <![endif]-->
9d7c2f216e62 add slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
51
9d7c2f216e62 add slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
52
9d7c2f216e62 add slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
53
9d7c2f216e62 add slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
54 </head>
9d7c2f216e62 add slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
55 <body>
9d7c2f216e62 add slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
56
9d7c2f216e62 add slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
57 <div class="layout">
9d7c2f216e62 add slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
58 <div id="header"></div>
9d7c2f216e62 add slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
59 <div id="footer">
9d7c2f216e62 add slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
60 <div align="right">
9d7c2f216e62 add slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
61 <img src="s6/images/logo.svg" width="200px">
9d7c2f216e62 add slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
62 </div>
9d7c2f216e62 add slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
63 </div>
9d7c2f216e62 add slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
64 </div>
9d7c2f216e62 add slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
65
9d7c2f216e62 add slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
66 <div class="presentation">
9d7c2f216e62 add slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
67
9d7c2f216e62 add slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
68 <div class='slide cover'>
9d7c2f216e62 add slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
69 <table width="90%" height="90%" border="0" align="center">
9d7c2f216e62 add slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
70 <tr>
9d7c2f216e62 add slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
71 <td>
9d7c2f216e62 add slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
72 <div align="center">
46
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 44
diff changeset
73 <h1><font color="#808db5">GearsOSにおけるinodeを用いたFile systemの実装</font></h1>
19
9d7c2f216e62 add slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
74 </div>
9d7c2f216e62 add slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
75 </td>
9d7c2f216e62 add slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
76 </tr>
9d7c2f216e62 add slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
77 <tr>
9d7c2f216e62 add slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
78 <td>
9d7c2f216e62 add slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
79 <div align="left">
9d7c2f216e62 add slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
80 又吉 雄斗
46
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 44
diff changeset
81 並列信頼研
19
9d7c2f216e62 add slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
82 <hr style="color:#ffcc00;background-color:#ffcc00;text-align:left;border:none;width:100%;height:0.2em;">
9d7c2f216e62 add slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
83 </div>
9d7c2f216e62 add slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
84 </td>
9d7c2f216e62 add slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
85 </tr>
9d7c2f216e62 add slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
86 </table>
9d7c2f216e62 add slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
87 </div>
9d7c2f216e62 add slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
88
9d7c2f216e62 add slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
89
9d7c2f216e62 add slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
90
9d7c2f216e62 add slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
91 <div class='slide'>
9d7c2f216e62 add slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
92
9d7c2f216e62 add slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
93 <!-- _S9SLIDE_ -->
35
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
94 <h2 id="inodeを用いたgearsdirectoryの実装">inodeを用いたgearsDirectoryの実装</h2>
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
95
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
96 <ul>
40
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 36
diff changeset
97 <li>アプリケーションの信頼性を保証するために,アプリケーションが動作するOSの信頼性を高める必要がある
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 36
diff changeset
98 <ul>
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 36
diff changeset
99 <li>信頼性確保の方法として定理証明やモデル検査がある</li>
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 36
diff changeset
100 </ul>
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 36
diff changeset
101 </li>
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 36
diff changeset
102 <li>当研究室では,信頼性の保証を目的としたGearsOSを開発している</li>
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 36
diff changeset
103 <li>GearsOSで未実装の機能であるファイルシステムの実装を目指す</li>
46
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 44
diff changeset
104 <li><span style="color: red; ">今回はUnix likeにディレクトリシステムを実装した</span></li>
35
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
105 <li>GearsOSへUnixのFile systemの仕組みを取り入れるアプローチをとる</li>
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
106 <li>GearsOSのディレクトリシステムであるgearsDirectoryについて説明する</li>
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
107 </ul>
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
108
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
109
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
110
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
111 </div>
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
112
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
113 <div class='slide'>
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
114 <!-- _S9SLIDE_ -->
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
115 <h2 id="continuation-based-c">Continuation based C</h2>
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
116
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
117 <ul>
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
118 <li>Cの下位言語である</li>
41
ac9b7aa9bb06 fix img
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 40
diff changeset
119 <li>プログラムはCodeGearと呼ばれる処理の単位で記述する</li>
ac9b7aa9bb06 fix img
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 40
diff changeset
120 <li>データはDataGearと呼ばれる単位を用いる</li>
35
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
121 <li>ノーマルレベルとメタレベルの処理を切り分けることが可能である</li>
41
ac9b7aa9bb06 fix img
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 40
diff changeset
122 <li>function callの継続の代わりにgotoによる継続を用いる
ac9b7aa9bb06 fix img
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 40
diff changeset
123 <ul>
46
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 44
diff changeset
124 <li>呼び出し履歴を持たないことから軽量継続と呼ぶ</li>
41
ac9b7aa9bb06 fix img
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 40
diff changeset
125 </ul>
ac9b7aa9bb06 fix img
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 40
diff changeset
126 </li>
35
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
127 </ul>
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
128
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
129 <div style="text-align: center;">
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
130 <img src="../paper/figs/dgcgdg.svg" width="1000" />
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
131 </div>
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
132
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
133
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
134
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
135 </div>
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
136
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
137 <div class='slide'>
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
138 <!-- _S9SLIDE_ -->
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
139 <h2 id="gearsos">GearsOS</h2>
19
9d7c2f216e62 add slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
140
9d7c2f216e62 add slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
141 <ul>
41
ac9b7aa9bb06 fix img
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 40
diff changeset
142 <li>当研究室にて,信頼性と拡張性の両立を目的として開発している</li>
35
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
143 <li>Gearという概念があり,実行の単位をCodeGear,データの単位をDataGearと呼ぶ</li>
46
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 44
diff changeset
144 <li>同様にGearの概念を持つCbC(Continuation based C)で記述されている</li>
44
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 41
diff changeset
145 <li>軽量継続を基本とし,stackを持たない代わりに全てを従来OSのプロセスに当たるContext経由で実行する</li>
35
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
146 <li>ノーマルレベルとメタレベルの処理を切り分けることができる</li>
44
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 41
diff changeset
147 <li>OSとして動作するために今後実装しなければならない機能がいくつか残っている</li>
35
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
148 </ul>
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
149
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
150
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
151
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
152 </div>
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
153
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
154 <div class='slide'>
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
155 <!-- _S9SLIDE_ -->
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
156 <h2 id="gearsos-1">GearsOS</h2>
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
157
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
158 <h3 id="codegearとmetacodegearの関係">CodeGearとmetaCodeGearの関係</h3>
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
159
44
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 41
diff changeset
160 <ul>
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 41
diff changeset
161 <li>ノーマルレベルとメタレベルの存在
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 41
diff changeset
162 <ul>
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 41
diff changeset
163 <li>CodeGearがDataGearを受け取り,処理後にDataGearを次のCodeGearに渡すという動作をしているように見える</li>
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 41
diff changeset
164 <li>実際にはデータの整合性の確認や資源管理などのメタレベルの処理が存在し,それらの計算はMetaCodeGearで行われる</li>
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 41
diff changeset
165 </ul>
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 41
diff changeset
166 </li>
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 41
diff changeset
167 </ul>
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 41
diff changeset
168
35
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
169 <div style="text-align: center;">
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
170 <img src="../paper/figs/meta_cg_dg.svg" width="1200" />
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
171 </div>
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
172
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
173
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
174
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
175 </div>
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
176
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
177 <div class='slide'>
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
178 <!-- _S9SLIDE_ -->
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
179 <h2 id="gearsos-2">GearsOS</h2>
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
180
44
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 41
diff changeset
181 <h3 id="context">Context</h3>
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 41
diff changeset
182
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 41
diff changeset
183 <ul>
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 41
diff changeset
184 <li>GearsOS上全てのCodeGear,DataGearの参照を持つ</li>
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 41
diff changeset
185 <li>OS上の処理の実行単位</li>
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 41
diff changeset
186 <li>Gearの概念ではMetaDataGearに当たる</li>
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 41
diff changeset
187 <li>ノーマルレベルから直接参照されず,必ずMetaDataGearとしてMetaCodeGearから参照される</li>
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 41
diff changeset
188 </ul>
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 41
diff changeset
189
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 41
diff changeset
190 <h3 id="contextの種類">Contextの種類</h3>
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 41
diff changeset
191
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 41
diff changeset
192 <ul>
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 41
diff changeset
193 <li>OS全体のContextを管理するKernel Context</li>
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 41
diff changeset
194 <li>ユーザープログラムごとに存在するUser Context</li>
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 41
diff changeset
195 <li>CPUやGPUごとに存在するCPU Context</li>
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 41
diff changeset
196 </ul>
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 41
diff changeset
197
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 41
diff changeset
198
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 41
diff changeset
199
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 41
diff changeset
200 </div>
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 41
diff changeset
201
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 41
diff changeset
202 <div class='slide'>
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 41
diff changeset
203 <!-- _S9SLIDE_ -->
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 41
diff changeset
204 <h2 id="gearsos-3">GearsOS</h2>
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 41
diff changeset
205
35
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
206 <h3 id="contextを参照する流れ">Contextを参照する流れ</h3>
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
207
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
208 <div style="text-align: center;">
41
ac9b7aa9bb06 fix img
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 40
diff changeset
209 <img src="../paper/figs/Context_ref-1.jpg" width="1200" />
35
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
210 </div>
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
211
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
212
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
213
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
214 </div>
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
215
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
216 <div class='slide'>
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
217 <!-- _S9SLIDE_ -->
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
218 <h2 id="unixのfile-system">UnixのFile system</h2>
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
219
46
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 44
diff changeset
220 <p>UnixのFile systemはinodeのBTreeで構成されており,xv6もその仕組みを用いている</p>
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 44
diff changeset
221
35
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
222 <h3 id="xv6">xv6</h3>
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
223
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
224 <ul>
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
225 <li>MITで教育用の目的で開発されたOS</li>
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
226 <li>Unixの基本的な構造を持つ</li>
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
227 <li>当研究室ではxv6のCbCでの書き換え,分析を行なっている</li>
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
228 <li>File systemではinodeの仕組みが用いられている</li>
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
229 </ul>
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
230
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
231 <h3 id="inode">inode</h3>
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
232
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
233 <ul>
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
234 <li>ファイルの属性情報が書かれたデータである</li>
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
235 <li>識別番号としてinode numberを持つ</li>
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
236 <li>inodeはファイルシステム始動時にinode領域をディスク上に確保する</li>
19
9d7c2f216e62 add slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
237 </ul>
9d7c2f216e62 add slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
238
9d7c2f216e62 add slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
239
9d7c2f216e62 add slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
240
9d7c2f216e62 add slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
241 </div>
9d7c2f216e62 add slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
242
9d7c2f216e62 add slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
243 <div class='slide'>
9d7c2f216e62 add slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
244 <!-- _S9SLIDE_ -->
35
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
245 <h2 id="gearsfilesystemにおけるdirectoryの構成">GearsFileSystemにおけるdirectoryの構成</h2>
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
246
41
ac9b7aa9bb06 fix img
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 40
diff changeset
247 <ul>
46
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 44
diff changeset
248 <li>2つのRedBlackTreeを用いる
41
ac9b7aa9bb06 fix img
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 40
diff changeset
249 <ol>
ac9b7aa9bb06 fix img
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 40
diff changeset
250 <li>inode numberとfileのポインタのペアを持つTree</li>
ac9b7aa9bb06 fix img
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 40
diff changeset
251 <li>filenameとinode numberのペアを持つTree</li>
ac9b7aa9bb06 fix img
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 40
diff changeset
252 </ol>
ac9b7aa9bb06 fix img
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 40
diff changeset
253 </li>
46
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 44
diff changeset
254 <li>カレントディレクトリはgearsDirectory-&gt;currentDirectoryに保存される</li>
41
ac9b7aa9bb06 fix img
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 40
diff changeset
255 </ul>
ac9b7aa9bb06 fix img
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 40
diff changeset
256
35
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
257 <div style="text-align: center;">
46
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 44
diff changeset
258 <img src="figs/inode.svg" width="1000" />
35
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
259 </div>
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
260
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
261
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
262
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
263 </div>
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
264
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
265 <div class='slide'>
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
266 <!-- _S9SLIDE_ -->
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
267 <h2 id="unix-like-な-interface">Unix Like な interface</h2>
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
268
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
269 <h3 id="mkdir">mkdir</h3>
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
270
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
271 <pre><code class="language-c">__code mkdir(struct GearsDirectoryImpl* gearsDirectory, struct Integer* name, __code next(...)) {
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
272 struct FTree* newDirectory = createFileSystemTree(context, gearsDirectory-&gt;currentDirectory);
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
273 Node* inode = new Node();
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
274 inode-&gt;key = gearsDirectory-&gt;INodeNumber;
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
275 inode-&gt;value = newDirectory;
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
276 struct FTree* cDirectory = new FTree();
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
277 cDirectory = gearsDirectory-&gt;iNodeTree;
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
278 goto cDirectory-&gt;put(inode, mkdir2);
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
279 }
19
9d7c2f216e62 add slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
280
35
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
281 __code mkdir2(struct GearsDirectoryImpl* gearsDirectory, struct Integer* name, __code next(...)) {
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
282 Node* dir = new Node();
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
283 dir-&gt;key = name-&gt;value;
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
284 Integer* iNum = new Integer();
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
285 iNum-&gt;value = gearsDirectory-&gt;INodeNumber;
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
286 dir-&gt;value = iNum;
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
287 gearsDirectory-&gt;INodeNumber = gearsDirectory-&gt;INodeNumber + 1;
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
288 struct FTree* cDirectory = new FTree();
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
289 cDirectory = gearsDirectory-&gt;currentDirectory;
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
290 goto cDirectory-&gt;put(dir, next(...));
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
291 }
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
292 </code></pre>
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
293
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
294
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
295
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
296 </div>
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
297
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
298 <div class='slide'>
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
299 <!-- _S9SLIDE_ -->
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
300 <h2 id="unix-like-な-interface-1">Unix Like な interface</h2>
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
301
44
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 41
diff changeset
302 <h3 id="mkdir-1">mkdir</h3>
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 41
diff changeset
303
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 41
diff changeset
304 <div style="text-align: center;">
46
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 44
diff changeset
305 <img src="figs/mkdir.svg" width="700" />
44
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 41
diff changeset
306 </div>
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 41
diff changeset
307
46
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 44
diff changeset
308 <!--
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 44
diff changeset
309 ## Unix Like な interface
44
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 41
diff changeset
310
46
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 44
diff changeset
311 ### ls
35
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
312
46
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 44
diff changeset
313 ```c
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 44
diff changeset
314 __code ls(struct GearsDirectoryImpl* gearsDirectory, struct Integer* name, __code next(...)) {
35
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
315 Node* dir = new Node();
46
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 44
diff changeset
316 dir->key = name->value;
35
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
317 struct FTree* cDirectory = new FTree();
46
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 44
diff changeset
318 cDirectory = gearsDirectory->currentDirectory;
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 44
diff changeset
319 goto cDirectory->get(dir, ls2);
35
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
320 }
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
321
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
322 __code ls2(struct GearsDirectoryImpl* gearsDirectory, struct Node* node, __code next(...)) {
46
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 44
diff changeset
323 printf("%d\n", node->key);
35
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
324 goto next(...);
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
325 }
46
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 44
diff changeset
326 ```
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 44
diff changeset
327
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 44
diff changeset
328 ## Unix Like な interface
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 44
diff changeset
329
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 44
diff changeset
330 ### ls
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 44
diff changeset
331
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 44
diff changeset
332 <div style="text-align: center;">
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 44
diff changeset
333 <img src="figs/ls.svg" width="1000">
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 44
diff changeset
334 </div>
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 44
diff changeset
335
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 44
diff changeset
336 ## Unix Like な interface
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 44
diff changeset
337
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 44
diff changeset
338 ### cd
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 44
diff changeset
339
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 44
diff changeset
340 ```c
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 44
diff changeset
341 __code cd2Child(struct GearsDirectoryImpl* gearsDirectory, struct Integer* name, __code next(...)) {
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 44
diff changeset
342 struct FTree* cDirectory = new FTree();
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 44
diff changeset
343 cDirectory = gearsDirectory->currentDirectory;
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 44
diff changeset
344 struct Node* node = new Node();
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 44
diff changeset
345 node->key = name->value;
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 44
diff changeset
346 goto cDirectory->get(node, cd2Child2);
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 44
diff changeset
347 }
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 44
diff changeset
348
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 44
diff changeset
349 __code cd2Child2(struct GearsDirectoryImpl* gearsDirectory, struct Node* node, __code next(...)) {
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 44
diff changeset
350 struct FTree* iNodeTree = new FTree();
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 44
diff changeset
351 iNodeTree = gearsDirectory->iNodeTree;
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 44
diff changeset
352 goto iNodeTree->get(node->value, cd2Child3);
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 44
diff changeset
353 }
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 44
diff changeset
354
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 44
diff changeset
355 __code cd2Child3(struct GearsDirectoryImpl* gearsDirectory, struct Node* node, __code next(...)) {
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 44
diff changeset
356 gearsDirectory->currentDirectory = node->value;
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 44
diff changeset
357 goto next(...);
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 44
diff changeset
358 }
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 44
diff changeset
359 ```
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 44
diff changeset
360
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 44
diff changeset
361 ## Unix Like な interface
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 44
diff changeset
362
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 44
diff changeset
363 ### cd
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 44
diff changeset
364
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 44
diff changeset
365 <div style="text-align: center;">
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 44
diff changeset
366 <img src="figs/cd.svg" width="1200">
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 44
diff changeset
367 </div>
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 44
diff changeset
368
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 44
diff changeset
369 -->
19
9d7c2f216e62 add slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
370
9d7c2f216e62 add slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
371
9d7c2f216e62 add slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
372
9d7c2f216e62 add slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
373 </div>
9d7c2f216e62 add slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
374
9d7c2f216e62 add slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
375 <div class='slide'>
9d7c2f216e62 add slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
376 <!-- _S9SLIDE_ -->
46
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 44
diff changeset
377 <h2 id="gearsdirectoryの非破壊的編集による">GearsDirectoryの非破壊的編集による</h2>
35
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
378
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
379 <ul>
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
380 <li>GearsOSにおける永続データは非破壊的な編集を行う木構造を用いて保存する</li>
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
381 <li>ディレクトリシステム自体にバックアップの機能を搭載することが可能と考える</li>
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
382 </ul>
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
383
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
384 <div style="text-align: center;">
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
385 <img src="../paper/figs/nondestructive_tree_modification.png" width="1200" />
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
386 </div>
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
387
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
388
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
389
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
390 </div>
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
391
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
392 <div class='slide'>
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
393 <!-- _S9SLIDE_ -->
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
394 <h2 id="gearsfilesystemの今後">GearsFileSystemの今後</h2>
19
9d7c2f216e62 add slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
395
46
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 44
diff changeset
396 <h3 id="gearsdirectory-path">gearsDirectory path</h3>
35
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
397
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
398 <ul>
46
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 44
diff changeset
399 <li>gearsDirectoryにはpathの機能が実装されていない</li>
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 44
diff changeset
400 <li>full path指定のlsなどが実装できない状態である</li>
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 44
diff changeset
401 <li>FileSystemTreeを拡張し,ノードをたどりpathを生成する様な機能を実装する必要がある</li>
35
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
402 </ul>
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
403
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
404 <h3 id="gearsdirectory-filename">gearsDirectory filename</h3>
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
405
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
406 <ul>
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
407 <li>現状はgearsDirectoryのfilenameはIntegerの構造で管理されている</li>
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
408 <li>filenameは一般的に文字列型であるためIntegerから文字列型に変更する必要がある</li>
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
409 </ul>
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
410
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
411
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
412
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
413 </div>
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
414
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
415 <div class='slide'>
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
416 <!-- _S9SLIDE_ -->
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
417 <h2 id="gearsfilesystemの今後-1">GearsFileSystemの今後</h2>
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
418
46
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 44
diff changeset
419 <h3 id="gearsdirectory-on-disk">gearsDirectory on disk</h3>
35
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
420
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
421 <ul>
46
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 44
diff changeset
422 <li>現状はgearsDirectoryはon memoryで実装されている</li>
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 44
diff changeset
423 <li>inodeをdisk上に構築する必要がある</li>
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 44
diff changeset
424 </ul>
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 44
diff changeset
425
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 44
diff changeset
426 <h3 id="gearsshell">GearsShell</h3>
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 44
diff changeset
427
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 44
diff changeset
428 <ul>
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 44
diff changeset
429 <li>現状のGearsOSはユーザーの入力を受け付けることが出来ず,言語フレームワークの様に機能している</li>
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 44
diff changeset
430 <li>gearsFileSystemなどGearsOSの各機能と接続し,今回作成したcdやlsの様なコマンドを受け付けるGearsShellを作成したい</li>
35
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
431 </ul>
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
432
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
433 <h3 id="ファイルのバックアップ">ファイルのバックアップ</h3>
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
434
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
435 <ul>
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
436 <li>レコードのDataをファイルの差分履歴として保持し,日時情報を付け加えることでVersion Control Systemのような機能を持たせることが可能であると考えられる</li>
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
437 </ul>
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
438
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
439
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
440
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
441 </div>
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
442
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
443 <div class='slide'>
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
444 <!-- _S9SLIDE_ -->
46
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 44
diff changeset
445 <h2 id="gearsdirectoryまとめ">gearsDirectoryまとめ</h2>
35
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
446
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
447 <ul>
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
448 <li>gearsDirectoryの実装について説明した</li>
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
449 <li>RedBlackTreeのシンプルなinterfaceにより比較的容易に実装を行うことができた</li>
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
450 <li>形式手法とファイルシステムの機能の両面で信頼性の向上が図れると考える</li>
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
451 <li>RedBlackTreeを用いてinodeの仕組みを構築し,ls,cd,mkdirを作成するなどして,
46
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 44
diff changeset
452 Unix Likeに構築することが出来た</li>
35
ecbdcda618a4 fix slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
453 </ul>
19
9d7c2f216e62 add slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
454
9d7c2f216e62 add slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
455 </div>
9d7c2f216e62 add slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
456
9d7c2f216e62 add slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
457
9d7c2f216e62 add slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
458 </div><!-- presentation -->
9d7c2f216e62 add slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
459 </body>
9d7c2f216e62 add slide
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
460 </html>