Documentation
¶
Overview ¶
Package quotactl implements a low-level wrapper around the modern portion of Linux's quotactl() syscall. See the fsquota package for a nicer interface to the most common part of this API.
Index ¶
- Constants
- func QuotaOff(fd *os.File, qtype QuotaType) error
- func QuotaOn(fd *os.File, qtype QuotaType, quotaFormat QuotaFormat, quotaFilePath string) error
- func SetInfo(fd *os.File, qtype QuotaType, info *DQInfo) error
- func SetQuota(fd *os.File, qtype QuotaType, id uint32, quota *Quota) error
- func Sync(fd *os.File) error
- type DQInfo
- type NextDQBlk
- type Quota
- type QuotaFormat
- type QuotaType
Constants ¶
View Source
const ( Q_SYNC uint = (0x800001 + iota) << 8 Q_QUOTAON Q_QUOTAOFF Q_GETFMT Q_GETINFO Q_SETINFO Q_GETQUOTA Q_SETQUOTA Q_GETNEXTQUOTA )
View Source
const ( FlagBLimitsValid = 1 << iota FlagSpaceValid FlagILimitsValid FlagInodesValid FlagBTimeValid FlagITimeValid )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type NextDQBlk ¶
type Quota ¶
type QuotaFormat ¶
type QuotaFormat uint32
const ( // QuotaFormatNone is a special case where all quota information is // stored inside filesystem metadata and thus requires no quotaFilePath. QuotaFormatNone QuotaFormat = 0 QuotaFormatVFSOld QuotaFormat = 1 QuotaFormatVFSV0 QuotaFormat = 2 QuotaFormatOCFS2 QuotaFormat = 3 QuotaFormatVFSV1 QuotaFormat = 4 )
Collected from quota_format_type structs
Click to show internal directories.
Click to hide internal directories.