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.

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

Table 9 summarizes the <strong>GPFS</strong> programming interfaces.<br />

Table 9. <strong>GPFS</strong> programming interfaces<br />

Interface Purpose<br />

“gpfs_acl_t Structure” on page 279 Contains buffer mapping for the gpfs_getacl() <strong>and</strong><br />

gpfs_putacl() subroutines.<br />

“gpfs_close_inodescan() Subroutine” on page 280 Closes an inode scan.<br />

“gpfs_cmp_fssnapid() Subroutine” on page 281 Compares two file system snapshot IDs.<br />

“gpfs_direntx_t Structure” on page 283 Contains attributes of a <strong>GPFS</strong> directory entry.<br />

“gpfs_fcntl() Subroutine” on page 284 Performs operations on an open file.<br />

“gpfs_fgetattrs() Subroutine” on page 287 Retrieves all extended file attributes in opaque format.<br />

“gpfs_fputattrs() Subroutine” on page 288 Sets all the extended file attributes for a file.<br />

“gpfs_free_fssnaph<strong>and</strong>le() Subroutine” on page 290 Frees a file system snapshot h<strong>and</strong>le.<br />

“gpfs_fssnap_h<strong>and</strong>le_t Structure” on page 291 Contains a h<strong>and</strong>le for a <strong>GPFS</strong> file system or snapshot.<br />

“gpfs_fssnap_id_t Structure” on page 292 Contains a permanent identifier for a <strong>GPFS</strong> file system or<br />

snapshot.<br />

“gpfs_fstat() Subroutine” on page 293 Returns exact file status for a <strong>GPFS</strong> file.<br />

“gpfs_get_fsname_from_fssnaph<strong>and</strong>le() Subroutine”<br />

on page 294<br />

“gpfs_get_fssnaph<strong>and</strong>le_by_fssnapid() Subroutine”<br />

on page 295<br />

“gpfs_get_fssnaph<strong>and</strong>le_by_name() Subroutine” on<br />

page 296<br />

“gpfs_get_fssnaph<strong>and</strong>le_by_path() Subroutine” on<br />

page 298<br />

“gpfs_get_fssnapid_from_fssnaph<strong>and</strong>le()<br />

Subroutine” on page 299<br />

“gpfs_get_pathname_from_fssnaph<strong>and</strong>le()<br />

Subroutine” on page 301<br />

Obtains a file system name from its snapshot h<strong>and</strong>le.<br />

Obtains a file system snapshot h<strong>and</strong>le using its snapshot ID.<br />

Obtains a file system snapshot h<strong>and</strong>le using its name.<br />

Obtains a file system snapshot h<strong>and</strong>le using its path name.<br />

Obtains a file system snapshot ID using its snapshot h<strong>and</strong>le.<br />

Obtains a file system path name using its snapshot h<strong>and</strong>le.<br />

“gpfs_get_snapdirname() Subroutine” on page 302 Obtains the name of the directory containing snapshots.<br />

“gpfs_get_snapname_from_fssnaph<strong>and</strong>le()<br />

Subroutine” on page 304<br />

Obtains a snapshot name using its file system snapshot<br />

h<strong>and</strong>le.<br />

“gpfs_getacl() Subroutine” on page 305 Retrieves the access control information for a <strong>GPFS</strong> file.<br />

“gpfs_iattr_t Structure” on page 307 Contains attributes of a <strong>GPFS</strong> inode.<br />

“gpfs_iclose() Subroutine” on page 309 Closes a file given its inode file h<strong>and</strong>le.<br />

“gpfs_ifile_t Structure” on page 310 Contains a h<strong>and</strong>le for a <strong>GPFS</strong> inode.<br />

“gpfs_igetattrs() Subroutine” on page 311 Obtains extended file attributes.<br />

“gpfs_igetfilesetname() Subroutine” on page 313 Returns the name of the fileset defined by a fileset ID.<br />

“gpfs_igetstoragepool() Subroutine” on page 315 Returns the name of the storage pool for the given storage<br />

pool ID.<br />

“gpfs_iopen() Subroutine” on page 317 Opens a file or directory by its inode number.<br />

“gpfs_iread() Subroutine” on page 319 Reads a file opened by gpfs_iopen().<br />

“gpfs_ireaddir() Subroutine” on page 321 Reads the next directory entry.<br />

© Copyright IBM Corp. 1998, 2006 277

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

Saved successfully!

Ooh no, something went wrong!