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 = ``{``'``block``'``:` <class 'rtslib.tcm.BlockStorageObject'>`...``
| bs_params = ``{`<class 'rtslib.tcm.FileIOStorageObject'>`:` `{``'``name``'``...``
| bs_cache = ``{``}``
| __package__ = ``'``rtslib``'``

Variables Details | [hide private]

### so_mapping

Value:

      {'block': <class 'rtslib.tcm.BlockStorageObject'>,
       'fileio': <class 'rtslib.tcm.FileIOStorageObject'>,
       'iblock': <class 'rtslib.tcm.BlockStorageObject'>,
       'pscsi': <class 'rtslib.tcm.PSCSIStorageObject'>,
       'ramdisk': <class 'rtslib.tcm.RDMCPStorageObject'>,
       'rd_mcp': <class 'rtslib.tcm.RDMCPStorageObject'>,
       'user': <class 'rtslib.tcm.UserBackedStorageObject'>}

### bs_params

Value:

      {<class 'rtslib.tcm.FileIOStorageObject'>: {'name': 'fileio'},
       <class 'rtslib.tcm.BlockStorageObject'>: {'alt_dirprefix': 'iblock',
                                                 'name': 'block'},
       <class 'rtslib.tcm.PSCSIStorageObject'>: {'name': 'pscsi'},
       <class 'rtslib.tcm.RDMCPStorageObject'>: {'alt_dirprefix': 'rd_mcp',
                                                 'name': 'ramdisk'},
       <class 'rtslib.tcm.UserBackedStorageObject'>: {'name': 'user'}}