types

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: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseQuota

type BaseQuota struct {
	Mount   *fs.Mount
	IDFLock *flock.Flock

	IDNext uint64
	IDMap  map[uint64]*QuotaLimit
}

BaseQuota defines the basic attribute of quota

type FSType

type FSType string

FSType defines the type of file system struct

const (
	// Ext4 defines the ext4 file system
	Ext4 FSType = "ext4"

	// Xfs defines the xfs file system
	Xfs FSType = "xfs"

	// BaseQuotaID represents the minimize quota id.
	// The value is unit32(2^24).
	BaseQuotaID = uint64(16777216)
)

type QuotaLimit

type QuotaLimit struct {
	BlockSoftLimit uint64 // unit is bytes
	BlockHardLimit uint64 // unit is bytes

	InodeSoftLimit uint64
	InodeHardLimit uint64
}

QuotaLimit defines the attribute of quota limit

Jump to

Keyboard shortcuts

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