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.

iattr Pointer to the returned pointer to the inode’s iattr.<br />

Exit status<br />

If the gpfs_next_inode() subroutine is successful, it returns a value of 0 <strong>and</strong> a pointer. The pointer points<br />

to NULL if there are no more inodes. Otherwise, the pointer points to the returned inode’s attributes.<br />

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

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

Exceptions<br />

None.<br />

Error status<br />

ENOMEM Unable to allocate memory for request.<br />

ENOSYS The gpfs_next_inode() subroutine is not available.<br />

EPERM The caller does not have superuser privileges.<br />

ESTALE Cached file system information was not valid.<br />

<strong>GPFS</strong>_E_INVAL_ISCAN<br />

Incorrect parameters.<br />

Examples<br />

For an example using gpfs_next_inode(), see /usr/lpp/mmfs/samples/util/tsbackup.C.<br />

Location<br />

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

gpfs_next_inode() Subroutine<br />

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

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

Saved successfully!

Ooh no, something went wrong!