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?
$ echo two > 2
$ echo one-one-one > 1
$ ls -l 1 2
-rw-r--r-- 2 weissel weissel 12 2005-12-08 12:08 1
-rw-r--r-- 2 weissel weissel 12 2005-12-08 12:08 2
$ ls -li 1 2
81922 -rw-r--r-- 2 weissel weissel 12 2005-12-08 12:08 1
81922 -rw-r--r-- 2 weissel weissel 12 2005-12-08 12:08 2
$ cat 1
one-one-one
$ cat 2
one-one-one
Uh, I expected them to be 2 files (2 different inodes) now,
with cat 2 => "two". Data loss happened!
$ echo $LD_PRELOAD
:/usr/lib/libflcow.so
$ ls -la /usr/lib/libflcow.so
-rw-r--r-- 1 root root 5612 2005-10-21 02:21 /usr/lib/libflcow.so
$ echo $FLCOW_PATH
/tmp/FLCOW-test
$ pwd
/tmp/FLCOW-test
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
By comparison, cow-shell from package cowdancer works:
$ cow-shell
Invoking /bin/bash
$ echo 1 > 1
$ cat 1 2
1
TWO2
-Wolfgang Weisselberg
PS: Please CC me.
-- System Information:
Debian Release: testing/unstable
APT prefers oldstable
APT policy: (500, 'oldstable'), (500, 'unstable'), (500, 'testing')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.4.27-2-k7
Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=ISO-8859-15)
Versions of packages fl-cow depends on:
ii libc6 2.3.5-8.1 GNU C Library: Shared libraries an
fl-cow recommends no packages.
-- no debconf information
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]