Import old talks from 2010 and 2011 (Boston).
[libguestfs-talks.git] / 2010 / diskimg.tex
1 \documentclass{article}
2 \usepackage[utf8]{inputenc}
3 \usepackage{tikz}
4 \usetikzlibrary{arrows,positioning,fit,shapes,calc,trees}
5
6 \usepackage{verbatim}
7 \usepackage[active,tightpage]{preview}
8 \PreviewEnvironment{tikzpicture}
9 \setlength\PreviewBorder{5pt}%
10
11 \begin{document}
12
13 \tikzset{
14   every node/.style = { scale=3 },
15   hdisk/.style = {
16     cylinder, draw, aspect=0.7,
17     fill = green!40, rounded corners,
18     font = \fontfamily{cmss}\Huge,
19     minimum width = 0.8in, minimum height = 0.7in,
20     text width = 2.2in
21   }
22 }
23
24 \begin{tikzpicture}[]
25
26 % Host file cylinder.
27
28 \node [hdisk] (hdisk) at (0,0) { Host file \\ ``disk.img'' };
29
30 % Lines dropping down, text beside them.
31
32 \draw (hdisk.before bottom) -- ($ (hdisk.before bottom) - (0,1in) $);
33 \node at ($ (hdisk.before bottom) + (0.4in,0) $) [rotate=70, anchor=east] { MBR };
34
35 \draw ($ (hdisk.before bottom) + (0.5in,0) $) -- ($ (hdisk.before bottom) + (0.5in,-1in) $);
36 \node at ($ (hdisk.before bottom) + (0.8in,0) + (0.2in,0) $) [rotate=70, anchor=east] { boot };
37
38 \draw ($ (hdisk.before bottom) + (1.2in,0) $) -- ($ (hdisk.before bottom) + (1.2in,-1in) $);
39 \node at ($ (hdisk.before bottom) + (3in,0) + (0.2in,0) $) [rotate=70, anchor=east] { LVM };
40
41 \draw ($ (hdisk.after top) - (1.4in,0) $) -- ($ (hdisk.after top) - (1.4in,1in) $);
42 \node at ($ (hdisk.after top) - (0.8in,0) + (0.2in,0) $) [rotate=70, anchor=east] { spare };
43
44 \draw (hdisk.after top) -- ($ (hdisk.after top) - (0,1in) $);
45
46 % Text.
47
48
49 \end{tikzpicture}
50 \end{document}