Menu

QuickTest

Alexander Brück

Configuration File

Lecithine does not create a configuration file by default, you have still to do that yourself. First create the configuration directory in your home folder:

:::Bash
mkdir -v ~/.lecithine/

Then create the configuration file with the following contents. Edit as you need. The configuration syntax is given in JSON:

:::JSON
# cat > ~/.lecithine/config
{
  "mountpoint" : "/home/you/prj/leci/testmnt/",
  "volumes" : [
    "/home/you/prj/leci/testvol1/",
    "/home/you/prj/leci/testvol2/",
    "/home/you/prj/leci/testvol3/",
    "/home/you/prj/leci/testvol4/"
  ]
}
<Ctrl+D>

Lecithine parses the JSON string using the sourceforge project cJSON.

Running Lecithine

After invoking

:::Bash
./lecithine ~/prj/leci/testmnt

Lecithine starts off and writes trace information into ~/.lecithine/logfile.
You can play around with reading and writing data.

:::Bash
cat > ~/prj/leci/testmnt/wed
Wednesday Wronskji likes to eat his beef at the club house as usual.
<Ctrl+D>

hexdump ~/prj/leci/testvol3/wed

The output written to stdout by the commands above should be something like:

0000000 f2d3 7f4d db14 fb57 e094 46c4 c93f 3ad4
0000010 71b0 9090 3cd4 7773 5fc6 87f4 e18d 6060
0000020 add3 e7e0 3789 1de3 a717 5663 3770 2090
0000030 20a9 7db1 245d 23f4 e983 10aa 0aca 9d71
0000040 51b8 4184 0088                         
0000045

To stop Lecithine and unmount testmnt type:

:::Bash
fusermount -u /home/you/prj/leci/testmnt