🔐 Sid Gifari File Manager Pro
v8.0.5 | 2026-08-07 13:55:17 | PHP 8.2.32
📂
/ (Root)
/
usr
/
lib
/
python3.6
/
site-packages
/
cloudinit
/
config
/
__pycache__
📍 /usr/lib/python3.6/site-packages/cloudinit/config/__pycache__
🔄 Refresh
✏️
Editing: cc_resizefs.cpython-36.opt-1.pyc
Read Only
3 \�me�* � @ sd U d Z ddlZddlZddlZddlZddlmZ ddlmZm Z ddl mZ ddlm Z ddlmZmZ ddlmZ dd lmZ d Zddd ed�egddgeg d�Zeee�Z eje�Zdd� Zdd� Zdd� Zdd� Zdd� Zdd� Zdd� Z d d!� Z!d"efd#efd$efd%efd&efd'efd(e fgZ"d%e!iZ#d)d*� Z$d+d,� Z%e&e ee'dd-�d.d/�Z(d0d1� Z)dS )2z:Resizefs: cloud-config module which resizes the filesystem� N)�dedent)�subp�util)�Cloud)�Config)� MetaSchema�get_meta_doc)�ALL_DISTROS)� PER_ALWAYSZnoblockZcc_resizefsZResizefszResize filesystema� Resize a filesystem to use all avaliable space on partition. This module is useful along with ``cc_growpart`` and will ensure that if the root partition has been resized the root filesystem will be resized along with it. By default, ``cc_resizefs`` will resize the root partition and will block the boot process while the resize command is running. Optionally, the resize operation can be performed in the background while cloud-init continues running modules. This can be enabled by setting ``resize_rootfs`` to ``noblock``. This module can be disabled altogether by setting ``resize_rootfs`` to ``false``.z@resize_rootfs: false # disable root filesystem resize operationzAresize_rootfs: noblock # runs resize operation in the background)�id�name�title�descriptionZdistrosZexamplesZ frequencyZactivate_by_schema_keysc C s� t j| � r0tjjd| �r0ddddd| g}ndddd| g}t jjd�}t jjtjddg�d jd �d j � �}||kr�|j d�}|j|d d� t|�S ) Nz %s/.snapshots�btrfsZ filesystem�resize�maxz5.10z --versionr �v� z --enqueue���) r Zmount_is_read_write�os�path�isdirZVersionZfrom_strr �split�strip�index�insert�tuple)�mount_point�devpth�cmdZbtrfs_with_queueZsystem_btrfs_ver�idx� r! �!/usr/lib/python3.6/cc_resizefs.py� _resize_btrfs8 s " r# c C s d|fS )NZ resize2fsr! )r r r! r! r"