Mini Shell
3
{)c� � @ sL d dl mZ ddlZejd�ZddlmZ ddlmZ G dd � d ee�Z dS )
� )�log_method_call� NZblivet� )�
StorageDevice)�NetworkStorageDevicec @ sn e Zd ZdZdZdgZddd�Zedd� �Zdd
d�Z ddd
�Z
dd� Zdd� Zddd�Z
dd� Zdd� ZdS )� NFSDevicez An NFS device Znfszdracut-networkNc C s, t j| |||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�:r N)r �__init__r �split)�selfZdevicer r � r �/usr/lib/python3.6/nfs.pyr % s
zNFSDevice.__init__c C s | j S )z' Device node representing this device. )�name)r
r r r �path2 s zNFSDevice.pathFc C s t | | j|| j| jd� dS )z Open, or set up, a device. )�orig�status�controllableN)r r r r )r
r r r r �setup7 s zNFSDevice.setupc C s t | | j| j| jd� dS )z Close, or tear down, a device. )r r N)r r r r )r
� recursiver r r �teardown<