libquota

package module
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: 8 Imported by: 0

README

Libquota

Introduction

the library of disk quota

upport kernel list

alikernel open kernel
ext4 >= 3.10 group quota
>= 4.5 project quota
>= 4.5 project quota
xfs >= 3.10 project quota >= 3.10 project quota

Architecture

libquota-architecture

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func QuotaMapAdd

func QuotaMapAdd(mountpoint string, quota Quota)

QuotaMapAdd adds the quota of the mount point

func QuotaMapDelete

func QuotaMapDelete(mountpoint string)

QuotaMapDelete deletes the quota of the mount point

Types

type Quota

type Quota interface {
	SetQuota(file string, id uint64, quota *types.QuotaLimit) error

	GetQuota(file string) (*types.QuotaLimit, error)

	GetQuotaID(file string) (uint64, error)
}

Quota defines the interface of different disk quota

func NewQuota

func NewQuota(file string) (Quota, error)

NewQuota returns the quota object.

func QuotaMapGet

func QuotaMapGet(mountpoint string) Quota

QuotaMapGet returns the quota of the mount point

Directories

Path Synopsis
cmd
drivers
pkg
cmd
fs

Jump to

Keyboard shortcuts

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