|
nfs-ganesha 1.4
|
#include "fsal.h"#include "fsal_internal.h"#include "fsal_convert.h"#include <lustre/liblustreapi.h>#include <lustre/lustre_user.h>#include <linux/quota.h>Go to the source code of this file.
Defines | |
| #define | QUOTABLOCK_SIZE (1 << 10) |
Functions | |
| fsal_status_t | LUSTREFSAL_check_quota (char *path, fsal_quota_type_t quota_type, fsal_uid_t fsal_uid) |
| fsal_status_t | LUSTREFSAL_set_quota (fsal_path_t *pfsal_path, int quota_type, fsal_uid_t fsal_uid, fsal_quota_t *pquota, fsal_quota_t *presquota) |
| fsal_status_t | LUSTREFSAL_get_quota (fsal_path_t *pfsal_path, int quota_type, fsal_uid_t fsal_uid, fsal_quota_t *pquota) |
| #define QUOTABLOCK_SIZE (1 << 10) |
Definition at line 44 of file FSAL_LUSTRE/fsal_quota.c.
| fsal_status_t LUSTREFSAL_check_quota | ( | char * | path, |
| fsal_quota_type_t | quota_type, | ||
| fsal_uid_t | fsal_uid | ||
| ) |
FSAL_check_quota : checks if quotas allow a user to do an operation
| pfsal_path | path to the filesystem whose quota are requested |
| quota_type | type of quota to be checked (inodes or blocks |
| fsal_uid | uid for the user whose quota are requested |
Definition at line 63 of file FSAL_LUSTRE/fsal_quota.c.
| fsal_status_t LUSTREFSAL_get_quota | ( | fsal_path_t * | pfsal_path, |
| int | quota_type, | ||
| fsal_uid_t | fsal_uid, | ||
| fsal_quota_t * | pquota | ||
| ) |
FSAL_get_quota : Gets the quota for a given path.
| pfsal_path | path to the filesystem whose quota are requested |
| quota_type | the kind of requested quota (user or group) |
| fsal_uid | uid for the user whose quota are requested |
| pquota | (input): Parameter to the structure containing the requested quotas |
Definition at line 195 of file FSAL_LUSTRE/fsal_quota.c.
| fsal_status_t LUSTREFSAL_set_quota | ( | fsal_path_t * | pfsal_path, |
| int | quota_type, | ||
| fsal_uid_t | fsal_uid, | ||
| fsal_quota_t * | pquota, | ||
| fsal_quota_t * | presquota | ||
| ) |
FSAL_get_quota : Gets the quota for a given path.
| pfsal_path | path to the filesystem whose quota are requested |
| quota_type | the kind of requested quota (user or group) |
| fsal_uid | uid for the user whose quota are requested |
| pquota | (input): pointer to the structure containing the wanted quotas |
| presquot | (output) pointer to the structure containing the resulting quotas |
Definition at line 113 of file FSAL_LUSTRE/fsal_quota.c.
1.7.3