Ruby/Quota
This module provides functions which manipulate disk quotas.
SUPPORT ENVIRONMENT
- Linux 2.4 or later
- Solaris 2.6, 7, 8
- FreeBSD (NetBSD, OpenBSD,.. ?)
SYNOPSIS
Quota.quotaon(dev, quotas)
Quota.quotaoff(dev)
Quota.getquota(dev, uid)
Quota.setquota(dev, uid, dq)
Quota.setqlim(dev, uid, dq) # *BSD does not have this function.
Quota.sync(dev)
- 'dev' is a device file or a mount point (e.g. /dev/hda0).
- 'quotas' is a quotas file.
- 'uid' is a user id. (if uid is less than 0, it is used as group id.)
- 'dq' is an entry of the quotas. its members are same as 'dqblk'
structure (e.g. dqb_curblocks => dq.curblocks). see also the
quotactl man pages and header files (e.g. linux/quota.h).