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
- type CephBackingStore
- func (bs *CephBackingStore) Close(dev *api.SCSILu) error
- func (bs *CephBackingStore) DataAdvise(offset, length int64, advise uint32) error
- func (bs *CephBackingStore) DataSync(offset, tl int64) error
- func (bs *CephBackingStore) Exit(dev *api.SCSILu) error
- func (bs *CephBackingStore) Init(dev *api.SCSILu, Opts string) error
- func (bs *CephBackingStore) Open(dev *api.SCSILu, path string) error
- func (bs *CephBackingStore) Read(offset, tl int64) ([]byte, error)
- func (bs *CephBackingStore) Size(dev *api.SCSILu) uint64
- func (bs *CephBackingStore) Unmap([]api.UnmapBlockDescriptor) error
- func (bs *CephBackingStore) Write(wbuf []byte, offset int64) error
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) DataAdvise ¶
func (bs *CephBackingStore) DataAdvise(offset, length int64, advise uint32) error
func (*CephBackingStore) DataSync ¶
func (bs *CephBackingStore) DataSync(offset, tl int64) 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) Unmap ¶
func (bs *CephBackingStore) Unmap([]api.UnmapBlockDescriptor) error
Click to show internal directories.
Click to hide internal directories.