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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

gpfs_quotactl() Subroutine<br />

Name<br />

gpfs_quotactl() – Manipulates disk quotas on file systems.<br />

Library<br />

<strong>GPFS</strong> Library (libgpfs.a for AIX, libgpfs.so for Linux)<br />

Synopsis<br />

#include <br />

int gpfs_quotactl(char *pathname, int cmd, int id, void *bufferP);<br />

Description<br />

The gpfs_quotactl() subroutine manipulates disk quotas. It enables, disables, <strong>and</strong> manipulates disk<br />

quotas for file systems on which quotas have been enabled.<br />

Notes:<br />

1. Compile any program that uses this subroutine with the -lgpfs flag from the following library:<br />

v libgpfs.a for AIX<br />

v libgpfs.so for Linux<br />

Parameters<br />

pathname Specifies the path name of any file within the mounted file system to which the quota<br />

control comm<strong>and</strong> is to applied.<br />

cmd Specifies the quota control comm<strong>and</strong> to be applied <strong>and</strong> whether it is applied to a user,<br />

group, or fileset quota.<br />

The cmd parameter can be constructed through use of the QCMD(qcmd, Type) contained<br />

in gpfs.h. The qcmd parameter specifies the quota control comm<strong>and</strong>. The Type<br />

parameter specifies one of the following quota types:<br />

v user (<strong>GPFS</strong>_USRQUOTA)<br />

v group (<strong>GPFS</strong>_GRPQUOTA)<br />

v fileset (<strong>GPFS</strong>_FILESETQUOTA)<br />

The valid values for the qcmd parameter specified in gpfs.h are:<br />

Q_QUOTAON Enables quotas.<br />

Q_QUOTAOFF Disables quotas.<br />

Enables disk quotas for the file system specified by the<br />

pathname parameter <strong>and</strong> type specified in Type. The id<br />

<strong>and</strong> bufferP parameters are unused. Root user authority<br />

is required to enable quotas.<br />

Disables disk quotas for the file system specified by the<br />

pathname parameter <strong>and</strong> type specified in Type. The id<br />

<strong>and</strong> bufferP parameters are unused. Root user authority<br />

is required to disable quotas.<br />

Q_GETQUOTA Gets quota limits <strong>and</strong> usage information.<br />

Retrieves quota limits <strong>and</strong> current usage for a user, group,<br />

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

Chapter 9. <strong>GPFS</strong> programming interfaces 337

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

Saved successfully!

Ooh no, something went wrong!