관리-도구
편집 파일: snapshot.cpython-311.pyc
� �Cg� � � � d dl Z d dlZd dlZd dlZd dlZd dlZd dlZd dlmZ d dl m Z mZ dZdZ ee � � Z G d� de� � Zed� � � ZdS ) � N)�contextmanager)�List�Optionalz/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.10-1.el8.x86_64/opt/cloudlinux/venv/lib/python3.11/site-packages/lvestats/lib/snapshot.py�__init__zSnapshot.__init__ s'