29.01.2013 Views

GPFS: Administration and Programming Reference - IRA Home

GPFS: Administration and Programming Reference - IRA Home

GPFS: Administration and Programming Reference - IRA Home

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

gpfs_quotactl() Subroutine<br />

Q_SETQUOTA Sets quota limits<br />

Q_SETUSE Sets quota usage<br />

parameter points to a gpfs_quotaInfo_t structure to hold<br />

the returned information. The gpfs_quotaInfo_t structure<br />

is defined in gpfs.h.<br />

Root authority is required if the id value is not the current<br />

id (user id for <strong>GPFS</strong>_USRQUOTA, group id for<br />

<strong>GPFS</strong>_GRPQUOTA) of the caller.<br />

Sets disk quota limits for a user, group, or fileset specified<br />

by the id parameter. The bufferP parameter points to a<br />

gpfs_quotaInfo_t structure containing the new quota<br />

limits. The gpfs_quotaInfo_t structure is defined in<br />

gpfs.h. Root user authority is required to set quota limits.<br />

Sets disk quota usage for a user, group, or fileset<br />

specified by the id parameter. The bufferP parameter<br />

points to a gpfs_quotaInfo_t structure containing the new<br />

quota usage. The gpfs_quotaInfo_t structure is defined in<br />

gpfs.h. Root user authority is required to set quota usage.<br />

Q_SYNC Synchronizes the disk copy of a file system quota<br />

Updates the on disk copy of quota usage information for a<br />

file system. The id <strong>and</strong> bufferP parameters are unused.<br />

Root user authority is required to synchronize a file<br />

system quota.<br />

id Specifies the user, group, or fileset ID to which the quota control comm<strong>and</strong> applies. The id<br />

parameters is interpreted by the specified quota type.<br />

bufferP Points to the address of an optional, comm<strong>and</strong>-specific data structure that is copied in or<br />

out of the system.<br />

Exit status<br />

If the gpfs_quotactl() subroutine is successful, it returns a value of 0.<br />

If the gpfs_quotactl() subroutine is unsuccessful, it returns a value of -1 <strong>and</strong> sets the global error variable<br />

errno to indicate the nature of the error.<br />

Exceptions<br />

None.<br />

Error status<br />

EACCES Search permission is denied for a component of a path prefix.<br />

EFAULT An invalid bufferP parameter is supplied. The associated structure could not be copied in<br />

or out of the kernel.<br />

EINVAL One of the following errors:<br />

v The file system is not mounted.<br />

v Invalid comm<strong>and</strong> or quota type.<br />

v Invalid input limits: negative limits or soft limits are greater than hard limits.<br />

ENOENT No such file or directory.<br />

EPERM The quota control comm<strong>and</strong> is privileged <strong>and</strong> the caller did not have root user authority.<br />

338 <strong>GPFS</strong>: <strong>Administration</strong> <strong>and</strong> <strong>Programming</strong> <strong>Reference</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!