| Server IP : 198.38.94.13 / Your IP : 216.73.217.33 Web Server : Apache System : Linux d4744.dxb1.stableserver.net 5.14.0-611.49.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Apr 21 16:39:08 EDT 2026 x86_64 User : revivere ( 1140) PHP Version : 8.2.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /opt/saltstack/salt/lib/python3.10/site-packages/salt/states/__pycache__/ |
Upload File : |
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 &