File manager - Edit - /opt/saltstack/salt/lib/python3.10/site-packages/salt/states/__pycache__/btrfs.cpython-310.pyc
Back
o ;j�( � @ s� d Z ddlZddlZddlZddlZddlmZ e�e �Z dZdd� Zdd� Z d d � Zdd� Zd d� Zdd� Zdd� Ze ddd��Zeddd��Zdd� Zeddd��ZdS )z� Manage BTRFS file systems. :maintainer: Alberto Planas <aplanas@suse.com> :maturity: new :depends: None :platform: Linux � N)�CommandExecutionError�btrfsc C sP |rdnd}t �� }td || d|dd�}|d s&t�d| |� t|� d S |S ) z0 Mount the device in a temporary place. �defaultszsubvol=/z mount.mountedr F)�deviceZfstype�optsZpersist�resultzCannot mount device %s in %sN)�tempfileZmkdtemp� __states__�log�error�_umount)r �use_defaultr �dest�res� r �E/opt/saltstack/salt/lib/python3.10/site-packages/salt/states/btrfs.py�_mount s �r c C s t d | � td | � dS )z/ Umount and clean the temporary place. zmount.unmountedzfiles.rm_rfN)r Z __utils__��pathr r r r &