forked from redbo/cloudfuse
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME
80 lines (56 loc) · 2.86 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
Cloudfuse is a FUSE application which provides access to Rackspace's
Cloud Files (or any installation of Swift).
Cloud Files is a remote storage system which is similar in principle to
Amazon S3. It provides a simple RESTful interface to storing and retrieving
objects.
http://www.rackspacecloud.com/cloud_hosting_products/files
Swift, the software behind Cloud Files, has been open-sourced as part of the
OpenStack project.
http://swift.openstack.org/
BUILDING:
You'll need libcurl, fuse, libssl, and libxml2 (and probably their dev
packages) installed to build it. From a base Debian or Ubuntu install,
this should get you to a point you can build and run it:
apt-get install build-essential libcurl4-openssl-dev libxml2-dev \
libssl-dev libfuse-dev
Cloudfuse is built and installed like any other autoconf configured code.
Normally,
./configure
make
sudo make install
But I'm no autoconf wizard, and there may be dragons lurking there.
USE:
Your Rackspace Cloud username and API key can be placed in a file
named $HOME/.cloudfuse:
username=[username]
api_key=[api key]
Or as mount options on the command line:
cloudfuse -o username=redbo,api_key=713aa... mountpoint/
Or as mount options in /etc/fstab:
cloudfuse /mnt/cloudfiles fuse username=redbo,api_key=713aa...,user 0 0
The following options are... optional:
use_snet=[True to use servicenet for connections]
cache_timeout=[seconds for directory caching, default 600]
authurl=[authentication url - connect to non-Rackspace (swift) cluster]
It also inherits a number of command-line arguments and mount options from
the Fuse framework. The "-h" argument should provide a summary.
Your OS user will need access to the "fuse" group. This can probably be
accomplished with:
sudo usermod -a -G fuse [username]
BUGS/SHORTCOMINGS:
* Doesn't implement rename(). There's no good way to do this with the
Cloud Files API. Unfortunately, this makes cloudfuse considerably less
useful in Finder, as it expects to be able to rename a lot.
* When reading and writing files, it buffers them in a local temp file.
* It keeps an in-memory cache of the directory structure, so it may not be
usable for large file systems. Also, files added by other applications
will not show up until the cache expires.
* The root directory can only contain directories, as these are mapped to
containers in cloudfiles.
* Directory entries are created as empty files with the content-type
"application/directory".
* Cloud Files limits container and object listings to 10,000 items.
cloudfuse won't list more than that many files in a single directory.
Thanks, and I hope you find it useful.
Michael Barton
<mike@weirdlooking.com>