Skip to content

silenceper/xfsquota

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

xfsquota

xfsquota is a tool for managing XFS quotas

Feature

  • support set quota
  • support get quota
  • clean quota

Usage

xfsquota is a tool for managing XFS quotas

Usage:
  xfsquota [command]

Available Commands:
  clean       clean quota information
  completion  Generate the autocompletion script for the specified shell
  get         Get quota information
  help        Help about any command
  set         Set quota information
  version     get version

Flags:
  -h, --help   help for xfsquota

Use "xfsquota [command] --help" for more information about a command.

Set Quota

set quota size 1MiB ,inodes 20 for path /data/test/quota

> xfsquota set /data/test/quota  -s 1MiB -i 20

set quota success, path: /data/test/quota, size:1MiB, inodes:20

Get Quota

get quota for path /data/test/quota

> xfsquota get /data/test/quota

quota Size(bytes): 1048576
quota Inodes: 20
diskUsage Size(bytes): 0
diskUsage Inodes: 1

Clean Quota

xfsquota clean /data/test/quota

build

make build