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.

gpfsDataShipStop_t Structure<br />

Name<br />

gpfsDataShipStop_t – Takes a file out of data shipping mode.<br />

Library<br />

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

Structure<br />

typedef struct<br />

{<br />

int structLen;<br />

int structType;<br />

} gpfsDataShipStop_t;<br />

Description<br />

The gpfsDataShipStop_t structure takes a file out of data shipping mode.<br />

<strong>GPFS</strong> takes the file out of data shipping mode:<br />

v <strong>GPFS</strong> waits for all threads that issued the <strong>GPFS</strong>_DATA_SHIP_START directive to issue this directive,<br />

then flushes all dirty file data to disk.<br />

v While a gpfs_fcntl() invocation is blocked waiting for other threads, the subroutine can be interrupted<br />

by any signal. If a signal is delivered to any of the waiting invocations, all waiting subroutines on every<br />

node are interrupted <strong>and</strong> return EINTR. <strong>GPFS</strong> does not cancel data shipping mode if such a signal<br />

occurs. It is the responsibility of the application to mask off any signals that might normally occur while<br />

waiting for another node in the data shipping collective. Several libraries use SIGALRM; the thread that<br />

issues the gpfs_fcntl() should use sigthreadmask to mask off delivery of this signal while inside the<br />

subroutine.<br />

Members<br />

structLen Length of the gpfsDataShipStop_t structure.<br />

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

Error status<br />

EIO An error occurred while flushing dirty data.<br />

EINTR A signal was delivered to a blocked gpfs_fcntl() subroutine. All waiting subroutines, on<br />

every node, are interrupted.<br />

EINVAL An attempt has been made to issue the <strong>GPFS</strong>_DATA_SHIP_STOP directive from a node<br />

or thread that is not part of this data shipping collective.<br />

An attempt has been made to issue the <strong>GPFS</strong>_DATA_SHIP_STOP directive on a file that<br />

is not in data shipping mode.<br />

ESTALE A node in the data shipping collective has gone down.<br />

Location<br />

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

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