429 |
|
if (hp->bl[i] == NULL || (nrays = hp->bl[i]->nrm) == hp->bi[i].nrd) |
430 |
|
return(0); |
431 |
|
/* locate fragment */ |
432 |
< |
if (hp->fd >= nhdfragls || !hdfragl[hp->fd].nlinks) /* untracked */ |
433 |
< |
hp->bi[i].fo = lseek(hp->fd, 0L, 2); |
434 |
< |
|
435 |
< |
else if (hp->bi[i].fo + hp->bi[i].nrd*sizeof(RAYVAL) == |
432 |
> |
if (hp->bi[i].fo + hp->bi[i].nrd*sizeof(RAYVAL) == |
433 |
|
hdfragl[hp->fd].flen) /* EOF special case */ |
434 |
|
hdfragl[hp->fd].flen = (nfo=hp->bi[i].fo) + nrays*sizeof(RAYVAL); |
435 |
|
|
509 |
|
n = hp->bl[i]->nrm * sizeof(RAYVAL); |
510 |
|
if (write(hp->fd, (char *)hdbray(hp->bl[i]), n) != n) { |
511 |
|
hdfragl[hp->fd].writerr++; |
512 |
< |
hdsync(hp, 0); /* sync directory */ |
512 |
> |
hdsync(NULL, 0); /* sync directories */ |
513 |
|
error(SYSTEM, "write error in hdsyncbeam"); |
514 |
|
} |
515 |
|
} |