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.

gpfsFcntlHeader_t Structure<br />

Name<br />

gpfsFcntlHeader_t – Contains declaration information for the gpfs_fcntl() subroutine.<br />

Library<br />

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

Structure<br />

typedef struct<br />

{<br />

int totalLength;<br />

int fcntlVersion;<br />

int errorOffset;<br />

int fcntlReserved;<br />

} gpfsFcntlHeader_t;<br />

Description<br />

The gpfsFcntlHeader_t structure contains size, version, <strong>and</strong> error information for the gpfs_fcntl()<br />

subroutine.<br />

Members<br />

totalLength This field must be set to the total length, in bytes, of the data structure<br />

being passed in this subroutine. This includes the length of the header <strong>and</strong><br />

all hints <strong>and</strong> directives that follow the header.<br />

The total size of the data structure cannot exceed the value of<br />

<strong>GPFS</strong>_MAX_FCNTL_LENGTH, as defined in the header file gpfs_fcntl.h.<br />

The current value of <strong>GPFS</strong>_MAX_FCNTL_LENGTH is 64 KB.<br />

fcntlVersion This field must be set to the current version number of the gpfs_fcntl()<br />

subroutine, as defined by <strong>GPFS</strong>_FCNTL_CURRENT_VERSION in the<br />

header file gpfs_fcntl.h. The current version number is one.<br />

errorOffset If an error occurs processing a system call, <strong>GPFS</strong> sets this field to the<br />

offset within the parameter area where the error was detected.<br />

For example,<br />

1. An incorrect version number in the header, would cause errorOffset to<br />

be set to zero.<br />

2. An error in the first hint following the header would set errorOffset to<br />

sizeof(header).<br />

If no errors are found, <strong>GPFS</strong> does not alter this field.<br />

fcntlReserved This field is currently unused.<br />

For compatibility with future versions of <strong>GPFS</strong>, set this field to zero.<br />

Location<br />

/usr/lpp/mmfs/lib/libgpfs.a for AIX, /usr/lpp/mmfs/lib/libgpfs.so for Linux<br />

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

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

Saved successfully!

Ooh no, something went wrong!