Skip to content

Latest commit

 

History

History
173 lines (119 loc) · 3.03 KB

quota.md

File metadata and controls

173 lines (119 loc) · 3.03 KB

glustercli.cli.quota

inode_quota_enable

inode_quota_enable(volname)

Enable Inode Quota

:param volname: Volume Name :returns: Output of inode-quota Enable command, raises GlusterCmdException((rc, out, err)) on error

enable

enable(volname)

Enable Quota

:param volname: Volume Name :returns: Output of quota Enable command, raises GlusterCmdException((rc, out, err)) on error

disable

disable(volname)

Disable Inode Quota

:param volname: Volume Name :returns: Output of quota Disable command, raises GlusterCmdException((rc, out, err)) on error

list_paths

list_paths(volname, paths=[])

Get Quota List

:param volname: Volume Name :param paths: Optional list of paths :returns: Quota list of paths, raises GlusterCmdException((rc, out, err)) on error

list_objects

list_objects(volname, paths=[])

Get Quota Objects List

:param volname: Volume Name :param paths: Optional list of paths :returns: Quota list of objects, raises GlusterCmdException((rc, out, err)) on error

remove_path

remove_path(volname, path)

Remove Path from Quota list

:param volname: Volume Name :param path: Path to remove from quota :returns: Output of Quota remove-path, raises GlusterCmdException((rc, out, err)) on error

remove_objects

remove_objects(volname, path)

Remove Objects for a given path

:param volname: Volume Name :param path: Path to remove from quota :returns: Output of Quota remove-objects, raises GlusterCmdException((rc, out, err)) on error

default_soft_limit

default_soft_limit(volname, percent)

Set default soft limit

:param volname: Volume Name :param percent: Percent of soft limit :returns: Output of the command, raises GlusterCmdException((rc, out, err)) on error

limit_usage

limit_usage(volname, path, size, percent=None)

Limit quota usage

:param volname: Volume Name :param path: Path to limit quota :param size: Limit Size :param percent: Percentage :returns: Output of the command, raises GlusterCmdException((rc, out, err)) on error

limit_objects

limit_objects(volname, path, num, percent=None)

Limit objects

:param volname: Volume Name :param path: Path to limit quota :param num: Limit Number :param percent: Percentage :returns: Output of the command, raises GlusterCmdException((rc, out, err)) on error

alert_time

alert_time(volname, a_time)

Set Alert Time

:param volname: Volume Name :param alert_time: Alert Time Value :returns: Output of the command, raises GlusterCmdException((rc, out, err)) on error

soft_timeout

soft_timeout(volname, timeout)

Set Soft Timeout

:param volname: Volume Name :param timeout: Timeout Value :returns: Output of the command, raises GlusterCmdException((rc, out, err)) on error

hard_timeout

hard_timeout(volname, timeout)

Set Hard Timeout

:param volname: Volume Name :param timeout: Timeout Value :returns: Output of the command, raises GlusterCmdException((rc, out, err)) on error