416fa4526d961ef6474648339726715e97e026f5
[libguestfs-talks.git] / 2019-fosdem / 6400-plugins-shell-2.html
1 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
2 <link rel="stylesheet" href="style.css" type="text/css"/>
3 <script src="code.js" type="text/javascript"></script>
4
5 <h1>Writing plugins in shell script</h1>
6
7 <p>
8 (Or <u>any</u> language).
9 We only need to write a few callbacks ...
10 </p>
11
12 <ul>
13 <li> <code>config</code>
14 <li> <code>config_complete</code>
15 <li> <code>open</code>
16 <li> <code>get_size</code>
17 <li> <code>pread</code>
18 <li> <code>pwrite</code>
19 <li> <code>trim</code>
20 <li> <code>zero</code>
21 </ul>
22
23 <p>
24 Only <code>get_size</code> and <code>pread</code> are
25 mandatory for shell script plugins.
26 </p>