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_iattr_t Structure<br />

/* don’t restore from snapshots */<br />

#define <strong>GPFS</strong>_IAFLAG_FILESETQUOTA 0x0040<br />

/* inode is a fileset quota file */<br />

Description<br />

The gpfs_iattr_t structure contains the various attributes of a <strong>GPFS</strong> inode.<br />

Members<br />

ia_version The version number of this structure.<br />

ia_reclen The size of this structure.<br />

ia_checksum The checksum for this gpfs_iattr structure.<br />

ia_mode The access mode for this inode.<br />

ia_uid The owner user ID for this inode.<br />

ia_gid The owner group ID for this inode.<br />

ia_inode The file inode number.<br />

ia_gen The inode generation number.<br />

ia_nlink The number of links for this inode.<br />

ia_flags The flags (defined above) for this inode.<br />

ia_blocksize The preferred block size for I/O.<br />

ia_mask The initial attribute mask (not used).<br />

ia_size The file size in bytes.<br />

ia_blocks The number of 512 byte blocks of disk held by the file.<br />

ia_atime The time of last access.<br />

ia_mtime The time of last data modification.<br />

ia_ctime The time of last status change.<br />

ia_rdev The ID of the device.<br />

ia_xperm Indicator - nonzero if file has extended ACL.<br />

ia_modsnapid<br />

Internal snapshot ID indicating the last time that the file was modified. Internal snapshot<br />

IDs for the current snapshots are displayed by the mmlssnapshot comm<strong>and</strong>.<br />

ia_filesetid The fileset ID for the inode.<br />

ia_datapoolid The storage pool ID for data for the inode.<br />

Examples<br />

For an example using gpfs_iattr_t, 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 />

308 <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!