2
The preload library perform Copy On Write on files having hard links.
3
The environment variable FLCOW_PATH tells the library which paths are
4
allowed to be FL-COWed. For example :
6
FLCOW_PATH=/home/davide/arch-projects/:/home/davide/test-flcow/
8
Anything that is inside :
10
/home/davide/arch-projects/*
12
and inside /home/davide/test-flcow/*
14
will be FL-COWed if its st_nlink > 1. To have the library effective
15
you simply set your FLCOW_PATH :
21
export LD_PRELOAD=$LD_PRELOAD:/usr/lib/libflcow.so
23
I usually export this in my developer shell. To test the library after
26
$ LD_PRELOAD=./fl-cow/.libs/libflcow.so ./test/flcow-test