PATH:
opt
/
cloudlinux
/
venv
/
lib
/
python3.11
/
site-packages
/
clcommon
/
__pycache__
� ���i � �t � d dl Z d dlZd dlmZ d dlmZmZmZ e j d� � Z d de dee fd�ZdS ) � N)�Optional)�get_mount_point�run_command�ExternalProgramFailedzuser quota on .+ \(.+\) is on�/home�path�returnc � � t j � d� � sdS t | � � }n## t t f$ r}d|� �cY d}~S d}~ww xY w dd|g}t |� � }n&# t $ r}t |� � }Y d}~nd}~ww xY w|� � � }t � |� � s|S dS )z� Check if quotas enabled and initialised for specific path :return: string message with giagnostick information if disabled; None if enabled z /sbin/quotaonzPackage "quota" not installedz$Error during mount point detection: Nz-up)�osr �isfiler �OSErrorr r �str�strip�USER_QUOTA_ON_PATTERN�search)r �mount_point�e�quotaon_cmd�quotaon_outputs ��/builddir/build/BUILDROOT/alt-python27-cllib-3.4.36-1.el8.cloudlinux.x86_64/opt/cloudlinux/venv/lib/python3.11/site-packages/clcommon/clquota.py�check_quota_enabledr s� � � �7�>�>�/�*�*� /�.�.�;�%�d�+�+�����*�+� ;� ;� ;�:�q�:�:�:�:�:�:�:�:�����;���� �&��{�;��$�[�1�1���� � � � ��Q������������� ���� $�)�)�+�+�N� �'�'��7�7� ����4s3 �3 �A�A�A�A�A, �, B�6B � B)r )�rer �typingr �clcommon.utilsr r r �compiler r r � � r �<module>r s� �� � � � � � � � � � � � � � � N� N� N� N� N� N� N� N� N� N�"�� �#C�D�D� �� �c� ��� � � � � � � r
[+]
..
[-] mail_helper.cpython-311.opt-1.pyc
[edit]
[-] php_conf_reader.cpython-311.opt-1.pyc
[edit]
[-] const.cpython-311.opt-1.pyc
[edit]
[-] clconfig.cpython-311.opt-1.pyc
[edit]
[-] utils.cpython-311.pyc
[edit]
[-] ui_config.cpython-311.pyc
[edit]
[-] __init__.cpython-311.pyc
[edit]
[-] evr_utils.cpython-311.opt-1.pyc
[edit]
[-] clexception.cpython-311.opt-1.pyc
[edit]
[-] cloutput.cpython-311.pyc
[edit]
[-] utils.cpython-311.opt-1.pyc
[edit]
[-] cllog.cpython-311.pyc
[edit]
[-] clproc.cpython-311.opt-1.pyc
[edit]
[-] clproc.cpython-311.pyc
[edit]
[-] cloutput.cpython-311.opt-1.pyc
[edit]
[-] sysctl.cpython-311.pyc
[edit]
[-] utils_cmd.cpython-311.opt-1.pyc
[edit]
[-] clquota.cpython-311.opt-1.pyc
[edit]
[-] clconfig.cpython-311.pyc
[edit]
[-] mail_helper.cpython-311.pyc
[edit]
[-] const.cpython-311.pyc
[edit]
[-] clcustomscript.cpython-311.pyc
[edit]
[-] mysql_lib.cpython-311.pyc
[edit]
[-] utils_cmd.cpython-311.pyc
[edit]
[-] sysctl.cpython-311.opt-1.pyc
[edit]
[-] clwpos_lib.cpython-311.pyc
[edit]
[-] clpwd.cpython-311.opt-1.pyc
[edit]
[-] features.cpython-311.opt-1.pyc
[edit]
[-] lock.cpython-311.opt-1.pyc
[edit]
[-] clfunc.cpython-311.pyc
[edit]
[-] clemail.cpython-311.pyc
[edit]
[-] evr_utils.cpython-311.pyc
[edit]
[-] clcustomscript.cpython-311.opt-1.pyc
[edit]
[-] clcagefs.cpython-311.pyc
[edit]
[-] clexception.cpython-311.pyc
[edit]
[-] features.cpython-311.pyc
[edit]
[-] lock.cpython-311.pyc
[edit]
[-] php_conf_reader.cpython-311.pyc
[edit]
[-] mysql_lib.cpython-311.opt-1.pyc
[edit]
[-] cldebug.cpython-311.pyc
[edit]
[-] clhook.cpython-311.opt-1.pyc
[edit]
[-] clconfpars.cpython-311.pyc
[edit]
[-] clpwd.cpython-311.pyc
[edit]
[-] clwpos_lib.cpython-311.opt-1.pyc
[edit]
[-] cllog.cpython-311.opt-1.pyc
[edit]
[-] __init__.cpython-311.opt-1.pyc
[edit]
[-] clemail.cpython-311.opt-1.pyc
[edit]
[-] clsec.cpython-311.opt-1.pyc
[edit]
[-] clsec.cpython-311.pyc
[edit]
[-] clquota.cpython-311.pyc
[edit]
[-] clfunc.cpython-311.opt-1.pyc
[edit]
[-] cldebug.cpython-311.opt-1.pyc
[edit]
[-] clcaptain.cpython-311.pyc
[edit]
[-] ui_config.cpython-311.opt-1.pyc
[edit]
[-] group_info_reader.cpython-311.pyc
[edit]
[-] clconfpars.cpython-311.opt-1.pyc
[edit]
[-] clcaptain.cpython-311.opt-1.pyc
[edit]
[-] group_info_reader.cpython-311.opt-1.pyc
[edit]
[-] clhook.cpython-311.pyc
[edit]
[-] clcagefs.cpython-311.opt-1.pyc
[edit]