Repository URL to install this package:
|
Version:
2.5 ▾
|
ó
±EYc @ ss d d l Z d d l Z d d l Z d d l m Z d d l m Z e j e j d e j
f d Y Z d S( iÿÿÿÿN( t utils( t volumet! LibvirtBaseFileSystemVolumeDriverc B sD e Z d Z d Z e j d Z d Z d Z d Z RS( s2 The base class for file system type volume driversc C s t t | j | d t d S( Nt is_block_dev( t superR t __init__t False( t selft
connection( ( sP /home/tvault/.virtenv/lib/python2.7/site-packages/nova/virt/libvirt/volume/fs.pyR s c C s t d d S( s Return the mount point path prefix.
This is used to build the device path.
:returns: The mount point path prefix.
t _get_mount_point_baseN( t NotImplementedError( R ( ( sP /home/tvault/.virtenv/lib/python2.7/site-packages/nova/virt/libvirt/volume/fs.pyR ! s c C s | S( sr Normalize the export (share) if necessary.
Subclasses should override this method if they have a non-standard
export value, e.g. if the export is a URL. By default this method just
returns the export value passed in unchanged.
:param export: The export (share) value to normalize.
:returns: The normalized export value.
( ( R t export( ( sP /home/tvault/.virtenv/lib/python2.7/site-packages/nova/virt/libvirt/volume/fs.pyt _normalize_export+ s
c C s9 | j | d d } t j j | j t j | S( sb Returns the mount path prefix using the mount point base and share.
:param connection_info: dict of the form
::
connection_info = {
'data': {
'export': the file system share,
...
}
...
}
:returns: The mount path prefix.
t dataR ( R t ost patht joinR R t get_hash_str( R t connection_infot share( ( sP /home/tvault/.virtenv/lib/python2.7/site-packages/nova/virt/libvirt/volume/fs.pyt _get_mount_path7 s c C s* | j | } t j j | | d d S( s} Returns the hashed path to the device.
:param connection_info: dict of the form
::
connection_info = {
'data': {
'export': the file system share,
'name': the name of the device,
...
}
...
}
:returns: The full path to the device.
R
t name( R R R R ( R R t
mount_path( ( sP /home/tvault/.virtenv/lib/python2.7/site-packages/nova/virt/libvirt/volume/fs.pyt _get_device_pathL s (
t __name__t
__module__t __doc__R t abct abstractmethodR R R R ( ( ( sP /home/tvault/.virtenv/lib/python2.7/site-packages/nova/virt/libvirt/volume/fs.pyR s
( R R t sixt novaR t nova.virt.libvirt.volumeR t libvirt_volumet
add_metaclasst ABCMetat LibvirtBaseVolumeDriverR ( ( ( sP /home/tvault/.virtenv/lib/python2.7/site-packages/nova/virt/libvirt/volume/fs.pyt <module> s