Mohammed Junaid bf7634c7ae swift: Fix for multiple mounts on the same mount point.
When swift server receives multiple requests on a volume and if the
volume is not mounted before hand, for each request swift tries to
mount the GlusterFS volume on the mount point. This process is racy
and may mount multiple times on the same mount point.

Also added a new option object_only in fs.conf which should be enabled
only if the user requires ReST interface and will have better performance.
By default it is set "off".

Change-Id: Ie1718554c5aaf577e823bbd84da8e78d803e954d
BUG: 821310
Signed-off-by: Mohammed Junaid <junaid@redhat.com>
Reviewed-on: http://review.gluster.com/3477
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Vijay Bellur <vijay@gluster.com>
2012-05-29 04:38:46 -07:00
..

Gluster Unified File and Object Storage allows files and directories created
via gluster-native/nfs mount to be accessed as containers and objects. It is
a plugin for OpenStack Swift project.

Install
* Clone the swift repo from git://github.com/openstack/swift.git
* Apply the swift.diff present in glusterfs.git/swift/1.4.8 to the swift repo.
* Create a directory named "plugins" under swift.git/swift directory.
* Copy the contents of glusterfs.git/swift/1.4.8/plugins/ under swift.git/swift/
  except the conf directory.
* Copy the contents of glusterfs.git/swift/1.4.5/plugins/conf under /etc/swift/.
* Run python setup.py install

Once this is done, you can access the GlusterFS volumes as Swift accounts.
Add the Volume names with the user-name and its corresponding password to the
/etc/swift/proxy-server.conf (follow the syntax used in the sample conf file).

Command to start the servers
  swift-init main start

Command to stop the servers
  swift-init main stop