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.

gpfsSetStoragePool_t Structure<br />

Name<br />

gpfsSetStoragePool_t – Sets a file’s assigned storage pool.<br />

Library<br />

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

Structure<br />

typedef struct {<br />

int structLen;<br />

int structType;<br />

int errReason;<br />

int errValue1;<br />

int errValue2;<br />

int reserved;<br />

char buffer[<strong>GPFS</strong>_FCNTL_MAX_NAME_BUFFER];<br />

} gpfsSetStoragePool_t<br />

Description<br />

The gpfsSetStoragePool_t structure is used to set a file’s assigned storage pool. However, the directive<br />

does not cause the file data to be migrated immediately. Instead, the caller must append a<br />

gpfsRestripeData_t directive or invoke an explicit restripe with the mmrestripefs or mmrestripefile<br />

comm<strong>and</strong>. The caller must have su or root privileges to change a storage pool assignment.<br />

Members<br />

structLen Length of the gpfsSetStoragePool_t structure.<br />

structType Structure identifier <strong>GPFS</strong>_FCNTL_SET_STORAGEPOOL.<br />

buffer The name of the storage pool for the file’s data. Only user files may be reassigned to<br />

different storage pool. System files, including all directories, must reside in the system pool<br />

<strong>and</strong> may not be moved. The size of the buffer may vary, but must be a multiple of eight.<br />

errReason Returned reason for request failure. Defined below.<br />

errValue1 Returned value depending upon errReason.<br />

errValue2 Returned value depending upon errReason.<br />

reserved Unused, but should be set to 0.<br />

Error status<br />

These values are returned in the errReason field:<br />

<strong>GPFS</strong>_FCNTL_ERR_NONE<br />

Comm<strong>and</strong> was successful or no reason information was returned.<br />

<strong>GPFS</strong>_FCNTL_ERR_INVALID_STORAGE_POOL<br />

Invalid storage pool name was given.<br />

<strong>GPFS</strong>_FCNTL_ERR_INVALID_STORAGE_POOL_TYPE<br />

Invalid storage pool. File cannot be assigned to given pool.<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 365

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

Saved successfully!

Ooh no, something went wrong!