quotas

package
v1.0.0-beta28 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FSBTRFS int64 = 2435016766
	FSEXT4  int64 = 61267
	FSXFS   int64 = 1481003842
	FSZFS   int64 = 801189825
)
View Source
const (
	FS_XFLAG_REALTIME     uint32 = 0x00000001 /* data in realtime volume */
	FS_XFLAG_PREALLOC     uint32 = 0x00000002 /* preallocated file extents */
	FS_XFLAG_IMMUTABLE    uint32 = 0x00000008 /* file cannot be modified */
	FS_XFLAG_APPEND       uint32 = 0x00000010 /* all writes append */
	FS_XFLAG_SYNC         uint32 = 0x00000020 /* all writes synchronous */
	FS_XFLAG_NOATIME      uint32 = 0x00000040 /* do not update access time */
	FS_XFLAG_NODUMP       uint32 = 0x00000080 /* do not include in backups */
	FS_XFLAG_RTINHERIT    uint32 = 0x00000100 /* create with rt bit set */
	FS_XFLAG_PROJINHERIT  uint32 = 0x00000200 /* create with parents projid */
	FS_XFLAG_NOSYMLINKS   uint32 = 0x00000400 /* disallow symlink creation */
	FS_XFLAG_EXTSIZE      uint32 = 0x00000800 /* extent size allocator hint */
	FS_XFLAG_EXTSZINHERIT uint32 = 0x00001000 /* inherit inode extent size */
	FS_XFLAG_NODEFRAG     uint32 = 0x00002000 /* do not defragment */
	FS_XFLAG_FILESTREAM   uint32 = 0x00004000 /* use filestream allocator */
	FS_XFLAG_DAX          uint32 = 0x00008000 /* use DAX for IO */
	FS_XFLAG_COWEXTSIZE   uint32 = 0x00010000 /* CoW extent size allocator hint */
	FS_XFLAG_HASATTR      uint32 = 0x80000000 /* no DIFLAG for this   */
)

* Flags for the fsx_xflags field

Variables

This section is empty.

Functions

func AddQuota

func AddQuota(serverID int, serverUUID string) (err error)

AddQuota adds a server to the configured quotas

func DelQuota

func DelQuota(serverUUID string) (err error)

DelQuota removes a server from the configured quotas

func GetQuota

func GetQuota(serverUUID string) (used int64, err error)

GetQuota gets the data usage for a specified server

func IsSupportedFS

func IsSupportedFS() (supported bool)

IsSupportedFS checks if the filesystem for the data files is supported. currently only EXT4 and XFS are supported

func SetQuota

func SetQuota(limit int64, serverUUID string) (err error)

SetQuota configures quotas for a specified server When the limit is set to a negative number it is set to 0 0 is treated as unlimited.

Types

This section is empty.

Jump to

Keyboard shortcuts

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