Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Ext4GrpQuota ¶
Ext4GrpQuota defines the ext4 group quota struct
func New ¶
func New(file string) (*Ext4GrpQuota, error)
New is used to check whether support to use ext4 group quota, and returns the ext4 group quota object.
func (*Ext4GrpQuota) GetNextQuotaID ¶
func (q *Ext4GrpQuota) GetNextQuotaID() uint64
GetNextQuotaID returns the quota of this mountpoint that can be used.
func (*Ext4GrpQuota) GetQuota ¶
func (q *Ext4GrpQuota) GetQuota(file string) (*types.QuotaLimit, error)
GetQuota returns the file's ext4 group quota information
func (*Ext4GrpQuota) GetQuotaID ¶
func (q *Ext4GrpQuota) GetQuotaID(file string) (uint64, error)
GetQuotaID returns the file's ext4 group quota id.
func (*Ext4GrpQuota) SetQuota ¶
func (q *Ext4GrpQuota) SetQuota(file string, id uint64, quota *types.QuotaLimit) error
SetQuota is used to set the file's ext4 group quota with quota id.
Click to show internal directories.
Click to hide internal directories.