Package rtslib :: Module tcm
[hide private]
[frames] | no frames]

Module tcm


Implements the RTS Target backstore and storage object classes.

This file is part of RTSLib.
Copyright (c) 2011-2013 by Datera, Inc
Copyright (c) 2011-2014 by Red Hat, Inc.

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.

Classes [hide private]
StorageObject
This is an interface to storage objects in configFS.
PSCSIStorageObject
An interface to configFS storage objects for pscsi backstore.
RDMCPStorageObject
An interface to configFS storage objects for rd_mcp backstore.
FileIOStorageObject
An interface to configFS storage objects for fileio backstore.
BlockStorageObject
An interface to configFS storage objects for block backstore.
UserBackedStorageObject
An interface to configFS storage objects for userspace-backed backstore.
StorageObjectFactory
Create a storage object based on a given path.
_Backstore
Backstore is needed as a level in the configfs hierarchy, but otherwise useless.
Functions [hide private]
 
_test()
Variables [hide private]
  so_mapping = {"pscsi": PSCSIStorageObject, "rd_mcp": RDMCPStor...
  bs_params = {PSCSIStorageObject: dict(name= 'pscsi'), RDMCPSto...
  bs_cache = {}
Variables Details [hide private]

so_mapping

Value:
{"pscsi": PSCSIStorageObject, "rd_mcp": RDMCPStorageObject, "ramdisk":\
 RDMCPStorageObject, "fileio": FileIOStorageObject, "iblock": BlockSto\
rageObject, "block": BlockStorageObject, "user": UserBackedStorageObje\
ct,}

bs_params

Value:
{PSCSIStorageObject: dict(name= 'pscsi'), RDMCPStorageObject: dict(nam\
e= 'ramdisk', alt_dirprefix= 'rd_mcp'), FileIOStorageObject: dict(name\
= 'fileio'), BlockStorageObject: dict(name= 'block', alt_dirprefix= 'i\
block'), UserBackedStorageObject: dict(name= 'user'),}