• Jan Kara's avatar
    quota: Allow to separately enable quota accounting and enforcing limits · f55abc0f
    Jan Kara authored
    Split DQUOT_USR_ENABLED (and DQUOT_GRP_ENABLED) into DQUOT_USR_USAGE_ENABLED
    and DQUOT_USR_LIMITS_ENABLED. This way we are able to separately enable /
    disable whether we should:
    1) ignore quotas completely
    2) just keep uptodate information about usage
    3) actually enforce quota limits
    
    This is going to be useful when quota is treated as filesystem metadata - we
    then want to keep quota information uptodate all the time and just enable /
    disable limits enforcement.
    Signed-off-by: default avatarJan Kara <jack@suse.cz>
    Signed-off-by: default avatarMark Fasheh <mfasheh@suse.com>
    f55abc0f
quota.c 12.2 KB