cephstore

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2020 License: Apache-2.0 Imports: 7 Imported by: 3

Documentation

Overview

Copyright 2018 The GoStor Authors All rights reserved.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Constants

View Source
const (
	CephBackingStorage = "ceph-rbd"
)

This ceph-rbd plugin is only for linux path format ceph-rbd:poolname/imagename

Variables

This section is empty.

Functions

This section is empty.

Types

type CephBackingStore

type CephBackingStore struct {
	scsi.BaseBackingStore
	// contains filtered or unexported fields
}

func (*CephBackingStore) Close

func (bs *CephBackingStore) Close(dev *api.SCSILu) error

func (*CephBackingStore) DataAdvise

func (bs *CephBackingStore) DataAdvise(offset, length int64, advise uint32) error

func (*CephBackingStore) DataSync

func (bs *CephBackingStore) DataSync(offset, tl int64) error

func (*CephBackingStore) Exit

func (bs *CephBackingStore) Exit(dev *api.SCSILu) error

func (*CephBackingStore) Init

func (bs *CephBackingStore) Init(dev *api.SCSILu, Opts string) error

func (*CephBackingStore) Open

func (bs *CephBackingStore) Open(dev *api.SCSILu, path string) error

func (*CephBackingStore) Read

func (bs *CephBackingStore) Read(offset, tl int64) ([]byte, error)

func (*CephBackingStore) Size

func (bs *CephBackingStore) Size(dev *api.SCSILu) uint64

func (*CephBackingStore) Unmap

func (*CephBackingStore) Write

func (bs *CephBackingStore) Write(wbuf []byte, offset int64) error

Jump to

Keyboard shortcuts

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