File manager - Edit - /opt/saltstack/salt/lib/python3.10/site-packages/salt/states/__pycache__/mount.cpython-310.pyc
Back
o ;jD� � @ s� d Z ddlZddlZddlZe�e�Zdd� Z dd d�Z ddd �Z ddd�Zddd�Zdd� Z ddd�Zddd�ZdS )a� Mounting of filesystems ======================= Mount any type of mountable filesystem with the mounted function: .. code-block:: yaml /mnt/sdb: mount.mounted: - device: /dev/sdb1 - fstype: ext4 - mkmnt: True - opts: - defaults /srv/bigdata: mount.mounted: - device: UUID=066e0200-2867-4ebe-b9e6-f30026ca2314 - fstype: xfs - opts: nobootwait,noatime,nodiratime,nobarrier,logbufs=8 - dump: 0 - pass_num: 2 - persist: True - mkmnt: True /var/lib/bigdata: mount.mounted: - device: /srv/bigdata - fstype: none - opts: bind - dump: 0 - pass_num: 0 - persist: True - mkmnt: True � Nc C sJ t | �d��}| �d�dkrt |�d }| �d�dkr#t |�d d }|S )NZ size_valueZ size_unit�mi �g)�int�group)Z_re_size�converted_size� r �E/opt/saltstack/salt/lib/python3.10/site-packages/salt/states/mount.py� _size_convert- s r F�defaults� /etc/fstabT�autoc C s0 | i ddd�}d}| sd|d<