1515 if (writebuf_len) { \
1616 w_len = PNCIO_WriteContig(fd, writebuf, writebuf_len, \
1717 writebuf_off); \
18- if (!fd->atomicity && fd->hints->ds_write == PNCIO_HINT_DISABLE) \
18+ if (!fd->atomicity && fd->hints->romio_ds_write == PNCIO_HINT_DISABLE) \
1919 PNCIO_UNLOCK(fd, writebuf_off, SEEK_SET, writebuf_len); \
2020 if (w_len < 0) { \
2121 NCI_Free(writebuf); \
2929 writebuf_len = MIN (end_offset - writebuf_off + 1 , \
3030 (writebuf_off / stripe_size + 1 ) * stripe_size \
3131 - writebuf_off ); \
32- if (!fd -> atomicity && fd -> hints -> ds_write == PNCIO_HINT_DISABLE ) \
32+ if (!fd -> atomicity && fd -> hints -> romio_ds_write == PNCIO_HINT_DISABLE ) \
3333 PNCIO_WRITE_LOCK (fd , writebuf_off , SEEK_SET , writebuf_len ); \
3434 r_len = PNCIO_ReadContig (fd , writebuf , writebuf_len , writebuf_off ); \
3535 if (r_len < 0 ) { \
4242 write_sz ); \
4343 while (write_sz != req_len ) { \
4444 w_len = PNCIO_WriteContig (fd , writebuf , writebuf_len , writebuf_off ); \
45- if (!fd -> atomicity && fd -> hints -> ds_write == PNCIO_HINT_DISABLE ) \
45+ if (!fd -> atomicity && fd -> hints -> romio_ds_write == PNCIO_HINT_DISABLE ) \
4646 PNCIO_UNLOCK (fd , writebuf_off , SEEK_SET , writebuf_len ); \
4747 if (w_len < 0 ) { \
4848 NCI_Free (writebuf ); \
5656 writebuf_len = MIN (end_offset - writebuf_off + 1 , \
5757 (writebuf_off / stripe_size + 1 ) * stripe_size \
5858 - writebuf_off ); \
59- if (!fd -> atomicity && fd -> hints -> ds_write == PNCIO_HINT_DISABLE ) \
59+ if (!fd -> atomicity && fd -> hints -> romio_ds_write == PNCIO_HINT_DISABLE ) \
6060 PNCIO_WRITE_LOCK (fd , writebuf_off , SEEK_SET , writebuf_len ); \
6161 r_len = PNCIO_ReadContig (fd , writebuf , writebuf_len , writebuf_off ); \
6262 if (r_len < 0 ) { \
@@ -127,7 +127,7 @@ MPI_Offset PNCIO_LUSTRE_WriteStrided(PNCIO_File *fd,
127127
128128// printf("%s at %d:\n",__func__,__LINE__);
129129
130- if (fd -> hints -> ds_write == PNCIO_HINT_DISABLE ) {
130+ if (fd -> hints -> romio_ds_write == PNCIO_HINT_DISABLE ) {
131131 /* if user has disabled data sieving on writes, use naive
132132 * approach instead.
133133 */
@@ -162,7 +162,7 @@ if (fd->flat_file.count > 0) assert(offset == 0); /* not whole file visible */
162162 /* if atomicity is true or data sieving is not disable, lock the region
163163 * to be accessed
164164 */
165- if (fd -> atomicity || fd -> hints -> ds_write != PNCIO_HINT_DISABLE )
165+ if (fd -> atomicity || fd -> hints -> romio_ds_write != PNCIO_HINT_DISABLE )
166166 PNCIO_WRITE_LOCK (fd , start_off , SEEK_SET , bufsize );
167167
168168 for (i = 0 ; i < buf_view .count ; i ++ ) {
@@ -176,7 +176,7 @@ if (fd->flat_file.count > 0) assert(offset == 0); /* not whole file visible */
176176 /* write the buffer out the last round */
177177 w_len = PNCIO_WriteContig (fd , writebuf , writebuf_len , writebuf_off );
178178
179- if (fd -> atomicity || fd -> hints -> ds_write != PNCIO_HINT_DISABLE )
179+ if (fd -> atomicity || fd -> hints -> romio_ds_write != PNCIO_HINT_DISABLE )
180180 PNCIO_UNLOCK (fd , start_off , SEEK_SET , bufsize );
181181
182182 NCI_Free (writebuf );
@@ -223,13 +223,13 @@ assert(disp == 0);
223223 BUFFERED_WRITE_WITHOUT_READ ;
224224
225225 /* write the buffer out the last round */
226- if (fd -> hints -> ds_write != PNCIO_HINT_DISABLE )
226+ if (fd -> hints -> romio_ds_write != PNCIO_HINT_DISABLE )
227227 PNCIO_WRITE_LOCK (fd , writebuf_off , SEEK_SET , writebuf_len );
228228
229229 w_len = PNCIO_WriteContig (fd , writebuf , writebuf_len , writebuf_off );
230230 if (w_len > 0 ) total_w_len += w_len ;
231231
232- if (fd -> hints -> ds_write != PNCIO_HINT_DISABLE )
232+ if (fd -> hints -> romio_ds_write != PNCIO_HINT_DISABLE )
233233 PNCIO_UNLOCK (fd , writebuf_off , SEEK_SET , writebuf_len );
234234
235235 NCI_Free (writebuf );
@@ -255,7 +255,7 @@ assert(j < fd->flat_file.count);
255255
256256 /* if atomicity is true or data sieving is not disable, lock the region
257257 * to be accessed */
258- if (fd -> atomicity || fd -> hints -> ds_write != PNCIO_HINT_DISABLE )
258+ if (fd -> atomicity || fd -> hints -> romio_ds_write != PNCIO_HINT_DISABLE )
259259 PNCIO_WRITE_LOCK (fd , start_off , SEEK_SET , end_offset - start_off + 1 );
260260
261261 writebuf_off = 0 ;
@@ -348,12 +348,12 @@ assert(k < buf_view.count);
348348 /* write the buffer out the last round */
349349 if (writebuf_len ) {
350350 w_len = PNCIO_WriteContig (fd , writebuf , writebuf_len , writebuf_off );
351- if (!fd -> atomicity && fd -> hints -> ds_write == PNCIO_HINT_DISABLE )
351+ if (!fd -> atomicity && fd -> hints -> romio_ds_write == PNCIO_HINT_DISABLE )
352352 PNCIO_UNLOCK (fd , writebuf_off , SEEK_SET , writebuf_len );
353353 if (w_len < 0 ) return w_len ;
354354 total_w_len += w_len ;
355355 }
356- if (fd -> atomicity || fd -> hints -> ds_write != PNCIO_HINT_DISABLE )
356+ if (fd -> atomicity || fd -> hints -> romio_ds_write != PNCIO_HINT_DISABLE )
357357 PNCIO_UNLOCK (fd , start_off , SEEK_SET , end_offset - start_off + 1 );
358358
359359 NCI_Free (writebuf );
0 commit comments