beegfs_quota | R Documentation |
Query BeeGFS for Disk Quota
beegfs_quota(which = "<current>", storagepool, what = c("user", "group"))
which |
Subset of users or groups to be queried.
If NULL, quotas for all are queried.
If |
storagepool |
A storage-pool ID (integer) to be queried. |
what |
Either |
This function queries beegfs-ctl
on the system.
A data.frame (tibble)
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.