Mini Shell

Direktori : /lib/python3.6/site-packages/blivet/devices/__pycache__/
Upload File :
Current File : //lib/python3.6/site-packages/blivet/devices/__pycache__/nfs.cpython-36.pyc

3

{)c��@sLddlmZddlZejd�ZddlmZddlmZGdd	�d	ee�Z	dS)
�)�log_method_call�NZblivet�)�
StorageDevice)�NetworkStorageDevicec@sneZdZdZdZdgZddd�Zedd��Zdd
d�Z	ddd
�Z
dd�Zdd�Zddd�Z
dd�Zdd�ZdS)�	NFSDevicez An NFS device Znfszdracut-networkNcCs,tj||||d�tj||jd�d�dS)af
            :param device: the device name (generally a device node's basename)
            :type device: str
            :keyword parents: a list of parent devices
            :type parents: list of :class:`StorageDevice`
            :keyword fmt: this device's formatting
            :type fmt: :class:`~.formats.DeviceFormat` or a subclass of it
        )�fmt�parents�:rN)r�__init__r�split)�selfZdevicerr	�r�/usr/lib/python3.6/nfs.pyr%s
zNFSDevice.__init__cCs|jS)z' Device node representing this device. )�name)r
rrr�path2szNFSDevice.pathFcCst||j||j|jd�dS)z Open, or set up, a device. )�orig�status�controllableN)rrrr)r
rrrr�setup7szNFSDevice.setupcCst||j|j|jd�dS)z  Close, or tear down, a device. )rrN)rrrr)r
�	recursiverrr�teardown<szNFSDevice.teardowncCst||j|jd�|j�dS)z Create the device. )rN)rrrZ_pre_create)r
rrr�createAszNFSDevice.createcCst||j|jd�dS)z Destroy the device. )rN)rrr)r
rrr�destroyFszNFSDevice.destroycCsdS)Nr)r
Znewsizerrr�update_sizeJszNFSDevice.update_sizecCsd|ko|dko|dkS)N��.z..r)r
rrrr�
is_name_validMszNFSDevice.is_name_validcCsdS)Nr)r
rrr�update_sysfs_pathQszNFSDevice.update_sysfs_path)NN)F)N)N)�__name__�
__module__�__qualname__�__doc__Z_typeZ	_packagesr�propertyrrrrrrrrrrrrrs




r)
Zstorage_logrZloggingZ	getLogger�logZstoragerZnetworkrrrrrr�<module>s