beegfs_quota: Query BeeGFS for Disk Quota

View source: R/beegfs_quota.R

beegfs_quotaR Documentation

Query BeeGFS for Disk Quota

Description

Query BeeGFS for Disk Quota

Usage

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"

Details

This function queries beegfs-ctl on the system.

Value

A data.frame (tibble)

Examples

## Not run: 
## 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)

## End(Not run)


ucsf-wynton/wyntonquery documentation built on May 15, 2024, 6:23 a.m.