On Thu, 2005-12-08 at 12:28 +0100, Wolfgang Weisselberg wrote: > Package: fl-cow > Version: 0.6-1 > Severity: grave > Justification: renders package unusable > > I cannot get fl-cow to COW at all. Maybe I am stupid, but I > don't see what I did wrong. > > According to > /usr/share/doc/fl-cow/README lines > I need to > export FLCOW_PATH=... > and > export LD_PRELOAD=$LD_PRELOAD:/usr/lib/libflcow.so > to have "[t]he preload library perform Copy On Write on > files having hard links." > > > $ cd /tmp > $ mkdir FLCOW-test > $ export FLCOW_PATH=/tmp/FLCOW-test > # export FLCOW_PATH=/tmp/FLCOW-test/ has the same result > # ^ > $ export LD_PRELOAD=$LD_PRELOAD:/usr/lib/libflcow.so > $ cd FLCOW-test > $ echo one > 1 > $ cp -l 1 2 > $ ls -l 1 2 > -rw-r--r-- 2 weissel weissel 4 2005-12-08 12:06 1 > -rw-r--r-- 2 weissel weissel 4 2005-12-08 12:06 2 > $ ls -li 1 2 > 81922 -rw-r--r-- 2 weissel weissel 4 2005-12-08 12:06 1 > 81922 -rw-r--r-- 2 weissel weissel 4 2005-12-08 12:06 2 > > Ok, the files 1 and 2 are obviously hard linked, thus COW > should cause changes to one not to affect the other one, right?
Only once its loaded. You need to start a new shell to get the library preloaded into your process. > fl-cow also provides the wrapper cow for a single command. > It doesn't work either. > $ cow echo TWO2 > 2 > $ cat 1 2 > TWO2 > TWO2 The cow script does not have tests, I'll add some and check its behaviour. Rob -- GPG key available at: <http://www.robertcollins.net/keys.txt>.
signature.asc
Description: This is a digitally signed message part