#include <sys/types.h>
#include <sys/stat.h>
#include <linux/quota.h>
#include <errno.h>
#include <fcntl.h>
#include <limits.h>
#include <mntent.h>
#include <paths.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
Defines | |
#define | MIN(A, B) (((A)<(B))?(A):(B)) |
#define | MAX_IQ_TIME (7 * 24 * 60 * 60) |
#define | MAX_DQ_TIME (7 * 24 * 60 * 60) |
Functions | |
char** | quota_get_specials_user () |
char** | quota_get_specials_group () |
void | quota_free_specials (char **specials) |
int | quota_on () |
int | quota_off () |
int | quota_get_user (uid_t uid, const char *special, int32_t *inode_usage, int32_t *inode_soft, int32_t *inode_hard, int32_t *inode_grace, int32_t *block_usage, int32_t *block_soft, int32_t *block_hard, int32_t *block_grace) |
int | quota_set_user (uid_t uid, const char *special, int32_t inode_soft, int32_t inode_hard, int32_t inode_grace, int32_t block_soft, int32_t block_hard, int32_t block_grace) |
int | quota_get_group (gid_t gid, const char *special, int32_t *inode_usage, int32_t *inode_soft, int32_t *inode_hard, int32_t *inode_grace, int32_t *block_usage, int32_t *block_soft, int32_t *block_hard, int32_t *block_grace) |
int | quota_set_group (gid_t gid, const char *special, int32_t inode_soft, int32_t inode_hard, int32_t inode_grace, int32_t block_soft, int32_t block_hard, int32_t block_grace) |
|
quota_free_specials:
|
|
quota_get_group:
|
|
quota_get_specials_group: Queries the list of mounted filesystems and returns an array of strings containing the names of the devices which can enforce group quotas.
|
|
quota_get_specials_user: Queries the list of mounted filesystems and returns an array of strings containing the names of the devices which can enforce user quotas.
|
|
quota_get_user:
|
|
quota_off: Disables quotas on all currently-mounted filesystems which support them.
|
|
quota_on: Enables quotas on all currently-mounted filesystems which support them.
|
|
quota_set_group:
|
|
quota_set_user:
|