Skip to content

Latest commit

 

History

History
38 lines (25 loc) · 1.21 KB

README.md

File metadata and controls

38 lines (25 loc) · 1.21 KB

rfg-cli

Description

rfg is a command line allowing you to generate random data through a tree of folders and files randomly distributed.

Size of the file are determined randomly and number of files/folders into a folder are too.

The idea of the project was not only to create a randomly made tree of files and directories, but also to check if the data are conform to the generated ones. For that when we generate them we save the size and md5sum of each generated files along with their path. It is then after possible to run a check command and verify the integrity.

This was originaly concieved to check that data backup system was resilient to disc failure.

This then allow you to create TB of randomly generated data and check their safety when simulating disc failures.

Compiling and Language

The language used is ocaml 4.02 and uses ocamlbuild for building.

Once the repository downloaded you need the following dependancies from opam :

opam install base64 hex ocamlfind

The other dependancies are standard packages of ocaml (threads and unix).

Compile

At the root of the depot run :

ocamlbuild -use-ocamlfind rfg.native

This will build rfg.native application that you can run :

./rfg.native --help