~ubuntu-branches/ubuntu/breezy/fl-cow/breezy

« back to all changes in this revision

Viewing changes to README

  • Committer: Bazaar Package Importer
  • Author(s): Robert Collins
  • Date: 2005-05-28 17:27:21 UTC
  • Revision ID: james.westby@ubuntu.com-20050528172721-jj5vkjr77mx2awg7
Tags: upstream-0.4
ImportĀ upstreamĀ versionĀ 0.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
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 :
 
5
 
 
6
FLCOW_PATH=/home/davide/arch-projects/:/home/davide/test-flcow/
 
7
 
 
8
Anything that is inside :
 
9
 
 
10
/home/davide/arch-projects/*
 
11
 
 
12
and inside /home/davide/test-flcow/*
 
13
 
 
14
will be FL-COWed if its st_nlink > 1. To have the library effective
 
15
you simply set your FLCOW_PATH :
 
16
 
 
17
export FLCOW_PATH=...
 
18
 
 
19
and you also set :
 
20
 
 
21
export LD_PRELOAD=$LD_PRELOAD:/usr/lib/libflcow.so
 
22
 
 
23
I usually export this in my developer shell. To test the library after
 
24
a build you can use :
 
25
 
 
26
$ LD_PRELOAD=./fl-cow/.libs/libflcow.so ./test/flcow-test
 
27
 
 
28
Or simply :
 
29
 
 
30
$ make check
 
31
 
 
32
 
 
33
 
 
34
Enjoy,
 
35
                Davide
 
36
 
 
37