Query BeeGFS for Disk Quota

beegfs_quota(which = "<current>", storagepool, what = c("user", "group"))

Arguments

which

Subset of users or groups to be queried. If NULL, quotas for all are queried. If <current>, then the current user or group is used. If

storagepool

A storage-pool ID (integer) to be queried.

what

Either "user" or "group"

Value

A data.frame (tibble)

Details

This function queries beegfs-ctl on the system.

Examples

if (FALSE) { # \dontrun{
## The current user
quota <- beegfs_quota(what = "user", storagepool = 11L)
print(quota)

## The current group
quota <- beegfs_quota(what = "group", storagepool = 11L)
print(quota)

## All groups
quota <- beegfs_quota(which = NULL, what = "group", storagepool = 12L)
quota <- subset(quota, !is.na(max_size) & max_size > 1)
quota$use <- with(quota, size / max_size)
print(quota)
} # }