svfs

command module
v0.4.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 8, 2016 License: MIT Imports: 10 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

The Swift Virtual File System

SVFS is a Virtual File System over Openstack Swift built upon fuse. It is compatible with hubic, OVH Public Cloud Storage and basically every endpoint using a standard Openstack Swift setup. It brings a layer of abstraction over object storage, making it as accessible and convenient as a filesystem, without being intrusive on the way your data is stored.

Disclaimer

This is not an official project of the Openstack community.

Installation

Download and install the latest release packaged for your distribution.

Usage

You can either use standard mount conventions or use the svfs binary directly.

Using the mount command :

mount -t svfs -o username=..,password=..,tenant=..,region=..,container=.. myName /mountpoint

Using /etc/fstab :

myName   /mountpoint   svfs   user=..,password=..,tenant=..,region=..,container=..  0 0

Using svfs directly :

svfs --os-username=.. --os-password=.. ... myName /mountpoint &

Options

Keystone options
  • identity_url: keystone URL (default is https://auth.cloud.ovh.net/v2.0).
  • username: your keystone user name.
  • password: your keystone password.
  • tenant: your project name.
  • region: the region where your tenant is.
  • version: authentication version (0 means auto-discovery which is the default).

In case you already have a token and storage URL (for instance with hubiC) :

  • storage_url: the URL to your data
  • token: your token
Swift options
  • container: which container should be selected while mounting the filesystem. If not set, all containers within the tenant will be available under the chosen mountpoint.
  • segment_size: large object segments size in MB. When an object has a content larger than this setting, it will be uploaded in multiple parts of the specified size. Default is 256 MB.
  • timeout: connection timeout to the swift storage endpoint. If an operation takes longer than this timeout and no data has been seen on open sockets, an error is returned. This can happen when copying non-segmented large files server-side. Default is 5 minutes.
Prefetch options
  • readahead_size: Readahead size in bytes. Default is 128 KB.
  • readdir: Overall concurrency factor when listing segmented objects in directories (default is 20).
Cache options
  • cache_access: cache entry access count before refresh. Default is -1 (unlimited access).
  • cache_entries: maximum entry count in cache. Default is -1 (unlimited).
  • cache_ttl: cache entry timeout before refresh. Default is 1 minute.
Ownership options
  • uid : default files uid (default is 0 i.e. root).
  • gid : default files gid (default is 0 i.e. root).
  • mode : default files permissions (default is 0700).
Debug options
  • debug: set it to true to enable debug log.
  • profile_cpu: Golang CPU profiling information will be stored to this file if set.
  • profile_ram: Golang RAM profiling information will be stored to this file if set.

Limitations

Be aware that SVFS doesn't transform object storage to block storage.

  • SVFS does not support creating, moving or deleting containers.
  • SVFS does not support opening a file in append mode.
  • SVFS does not support moving directories.
  • SVFS does not support SLO (but supports DLO).
  • SVFS does not support per-file uid/gid/permissions (but per-mountpoint).

Take a look at the docs for further discussions about SVFS approach.

License

This work is under the BSD license, see the LICENSE file for details.

Documentation

Overview

SVFS implements a virtual file system for Openstack Swift.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL