Viewing File: /opt/imunify360/venv/lib/python3.11/site-packages/clcommon/__pycache__/clquota.cpython-311.pyc



]jtddlZddlZddlmZddlmZmZmZejdZ	d	de
dee
fdZdS)
N)Optional)get_mount_pointrun_commandExternalProgramFailedzuser quota on .+ \(.+\) is on/homepathreturnctjdsdS	t|}n##tt
f$r}d|cYd}~Sd}~wwxYw	dd|g}t
|}n&#t
$r}t|}Yd}~nd}~wwxYw|}t
|s|SdS)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)osrisfilerOSErrorrrstrstripUSER_QUOTA_ON_PATTERNsearch)rmount_pointequotaon_cmdquotaon_outputs     p/builddir/build/BUILD/imunify360-venv-2.6.3/opt/imunify360/venv/lib/python3.11/site-packages/clcommon/clquota.pycheck_quota_enabledrs
7>>/**/..;%d++*+;;;:q::::::::; &{;$[11    Q $))++N ''774s33AAAAA,,
B6B

B)r)rertypingrclcommon.utilsrrrcompilerrrr<module>rs
							NNNNNNNNNN"
#CDDc
r
Back to Directory File Manager