HEX
Server: Apache
System: Linux server2.voipitup.com.au 4.18.0-553.109.1.lve.el8.x86_64 #1 SMP Thu Mar 5 20:23:46 UTC 2026 x86_64
User: posscale (1027)
PHP: 8.2.30
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //opt/saltstack/salt/lib/python3.10/site-packages/salt/states/__pycache__/quota.cpython-310.pyc
o

�N�gk�@sdZdd�Zdd�ZdS)z�
Management of POSIX Quotas
==========================

The quota can be managed for the system:

.. code-block:: yaml

    /:
      quota.mode:
        mode: off
        quotatype: user
cCsdtvrdSdS)z@
    Only load if the quota module is available in __salt__
    zquota.report�quota)Fz quota module could not be loaded)�__salt__�rr�E/opt/saltstack/salt/lib/python3.10/site-packages/salt/states/quota.py�__virtual__srcCs�|iddd�}d}|durd}td|�|||kr+d|d<d	|�d
|��|d<|Stdr;d	|�d
|��|d<|Std|��|�rZd|i|d<d|d<d|�d|��|d<|Sd|d<d|�d|��|d<|S)z�
    Set the quota for the system

    name
        The filesystem to set the quota mode on

    mode
        Whether the quota system is on or off

    quotatype
        Must be ``user`` or ``group``
    N�)�name�changes�result�commentZoffT�onzquota.get_moder	z
Quota for z already set to r
�testz needs to be set to zquota.rrzSet quota for z to FzFailed to set quota for )rZ__opts__)r�modeZ	quotatype�retZfunrrrr
s&
r
N)�__doc__rr
rrrr�<module>s