Hacked By AnonymousFox
�
)�f� � �� � d dl mZ d dlZd dlZd dlZd dlZd dlZd dlZd dlm Z m
Z
d dlmZ d dl
Z
d dlmZ dZdZ ee� � Z G d� d e� � Zed
� � � ZdS )� )�absolute_importN)�Optional�List)�contextmanager)�mapz/var/lve/snapshotsz .snapshotc � � e Zd ZdZdd�Zd� Zed� � � Zd� Zd� Z d� Z
d � Zd
� Zd� Z
d� Zd
� Zd� Zd� Zed� � � Zedd�� � Zed� � � ZdS )�Snapshotad
This class is responsible for loading and saving snapshot files for the interval
The files will be saved in a format of: /var/lve/snapshots/[uid]/dump_time.snapshot
dump_time is the timestamp/integer
The directories /var/lve/snaphosts/[uid] and the dump files itself will be owned by user
They will not be readable by other users.
� c �T � || _ || _ t j d� � | _ d S )Nzlib-snapshot)�
compresslevel�incident�logging� getLogger�log)�selfr
r s ��/builddir/build/BUILDROOT/lve-stats-4.2.8-1.el8.x86_64/opt/cloudlinux/venv/lib/python3.11/site-packages/lvestats/lib/snapshot.py�__init__zSnapshot.__init__! s'