ext4grpquota

package
v0.0.0-...-e0566ed Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 22, 2019 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Ext4GrpQuota

type Ext4GrpQuota struct {
	types.BaseQuota
}

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL