diff options
author | n-peugnet <n.peugnet@free.fr> | 2021-10-22 16:31:35 +0200 |
---|---|---|
committer | n-peugnet <n.peugnet@free.fr> | 2021-10-22 16:34:58 +0200 |
commit | fc6562b00c6a85ab5844fb77705d22e4839692af (patch) | |
tree | e82a0e5bfbeba282d0f6087d4d09edf2c36835b2 /pdf/doc.tex | |
parent | 67079bf2007e62ce6a8527fe5298b61d0dd9bc75 (diff) | |
download | dna-backup-fc6562b00c6a85ab5844fb77705d22e4839692af.tar.gz dna-backup-fc6562b00c6a85ab5844fb77705d22e4839692af.zip |
convert some elements to real latex elements
Diffstat (limited to 'pdf/doc.tex')
-rw-r--r-- | pdf/doc.tex | 102 |
1 files changed, 60 insertions, 42 deletions
diff --git a/pdf/doc.tex b/pdf/doc.tex index 303cc2a..e6c5722 100644 --- a/pdf/doc.tex +++ b/pdf/doc.tex @@ -34,8 +34,10 @@ \usepackage[hidelinks]{hyperref} % Graphics -\usepackage{graphicx} -\graphicspath{ {img} } +\usepackage{graphicx} % images and figures +\graphicspath{ {img} } % path containing images +\usepackage{tikz} % to generate graphics +\usetikzlibrary{arrows.meta} % setup arrows % Complex tables \usepackage{multirow,tabularx} @@ -43,6 +45,9 @@ \usepackage{array} \newcolumntype{R}{>{\raggedright\arraybackslash}X} +% Directory tree +\usepackage{dirtree} + %--------------------------------------- Content ---------------------------------------% \title{DNA-Backup} @@ -57,54 +62,67 @@ \tableofcontents -\section{Introduction} +\section{Situation} +\section{Problématique} +\section{Réponse} Le système part du principe qu'on a une copie des données stockées en ADN sur un support de stockage classique : le \emph{repo}. +\smallskip -\begin{verbatim} - +----------------------------------+ - | +---------+ +---------+ | +-----------+ - | | | | | | | | - | | Source |--------->| Repo |----------->| DNA-Drive | - | | | COMMIT | | | SYNTHESE | | - | +---------+ +---------+ | +-----------+ - | | - | Ordinateur | - +----------------------------------+ -\end{verbatim} +\noindent +\begin{tikzpicture} -La structure du \emph{repo} est la suivante : +\draw (0,0) node[anchor=south west] {Ordinateur} rectangle (8, 3.5) ; -\begin{verbatim} -repo/ -+-- 00000/ -| +-- chunks/ -| | +-- 000000000000000 -| | +-- 000000000000001 -| | +-- 000000000000002 -| | +-- 000000000000003 -| +-- files -| +-- hashes -| +-- recipe -+-- 00001/ - +-- chunks/ - | +-- 000000000000000 - | +-- 000000000000001 - +-- files - +-- hashes - +-- recipe -\end{verbatim} +\draw (.5,1) rectangle (3,3) node[midway] {Source}; -Pour un repo d'une taille totale de 401 Mio : +\draw[-{Stealth[scale=1.5]}] (3,2) -- (5,2) node[midway,below] {Commit}; -\begin{verbatim} -/tmp/test-1/00000/recipe 5076011 (1.20%) -/tmp/test-1/00000/files 24664 (0.06%) -/tmp/test-1/00000/hashes 3923672 (0.93%) -/tmp/test-1/00000/chunks 412263137 (97.8%) -/tmp/test-1/00000 421287604 ( 100%) -\end{verbatim} +\draw (5,1) rectangle (7.5,3) node[midway] {Repo}; + +\draw[-{Stealth[scale=1.5]}] (7.5,2) -- (10,2) node[midway,below] {Synthèse}; + +\draw (10,1) rectangle (12.5,3) node[midway] {DNA-Drive}; + +\end{tikzpicture} +\bigskip + +La structure du \emph{repo} est la suivante : +\smallskip + +\dirtree{% +.1 repo/. +.2 00000/. +.3 chunks/. +.4 000000000000000. +.4 000000000000001. +.4 000000000000002. +.4 000000000000003. +.3 files. +.3 hashes. +.3 recipe. +.2 00001/. +.3 chunks/. +.4 000000000000000. +.4 000000000000001. +.3 files. +.3 hashes. +.3 recipe. +} +\bigskip + +Pour un repo d'une taille totale de 401 Mio : +\smallskip + +\begin{tabular}{l l r} +\verb|repo/00000/recipe| & 5076011 & 1.2\% \\ +\verb|repo/00000/files| & 24664 & 0.1\% \\ +\verb|repo/00000/hashes| & 3923672 & 0.9\% \\ +\verb|repo/00000/chunks| & 412263137 & 97.8\% \\ +\verb|repo/00000| & 421287604 & 100.0\% \\ +\end{tabular} +\bigskip \begin{itemize} \item |