ceph

package
v1.3.1-0...-6a8c2eb Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2014 License: Apache-2.0 Imports: 15 Imported by: 0

README

Ceph Graph Driver Documentation

Known issues

  • At the moment it is not possible to statically compile docker with the ceph graph driver enabled because some static libraries are missing (Ubuntu 14.04). Please use: ./hack/make.sh dynbinary

  • Using "rbd cache = true" in the "[client]" section of ceph.conf is known to segfault the driver. Reference and fix: http://tracker.ceph.com/issues/8912

  • Using glibc-2.20 could result in a SIGILL that kills the docker daemon process. Reference and fix: https://github.com/ceph/ceph/pull/2937

Documentation

Index

Constants

View Source
const (
	RadosConfigFile     = "/etc/ceph/ceph.conf"
	RadosSysfsDevices   = "/sys/devices/rbd"
	RbdDevicePath       = "/dev/rbd"
	DockerBaseImageSize = 10 * 1024 * 1024 * 1024
	DockerCloneSnapshot = "docker-clone-snapshot"
)

Variables

View Source
var (
	RbdNotFoundError  = errors.New("No such image or snapshot")
	RbdBusyError      = errors.New("Image or snapshot busy")
	RbdIvalidArgError = errors.New("Invalid argument")
)

Functions

func Init

func Init(home string, options []string) (graphdriver.Driver, error)

Types

type Driver

type Driver struct {
	// contains filtered or unexported fields
}

func (*Driver) Cleanup

func (d *Driver) Cleanup() error

func (*Driver) Create

func (d *Driver) Create(id, parent string) error

func (*Driver) Exists

func (d *Driver) Exists(id string) bool

func (*Driver) Get

func (d *Driver) Get(id, mountLabel string) (string, error)

func (*Driver) Put

func (d *Driver) Put(id string)

func (*Driver) Remove

func (d *Driver) Remove(id string) error

func (*Driver) Status

func (d *Driver) Status() [][2]string

func (*Driver) String

func (d *Driver) String() string

type Rados

type Rados C.rados_t

type RadosIoCtx

type RadosIoCtx C.rados_ioctx_t

type RbdImage

type RbdImage C.rbd_image_t

type RbdMappingInfo

type RbdMappingInfo struct {
	Pool     string `json:"pool"`
	Name     string `json:"name"`
	Snapshot string `json:"snap"`
	Device   string `json:"device"`
}

Jump to

Keyboard shortcuts

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