version 1.23, 2019/05/08 21:30:11 |
version 1.24, 2019/06/02 17:36:48 |
|
|
TAILQ_INIT(&sdlq); |
TAILQ_INIT(&sdlq); |
up.stat.fd = -1; |
up.stat.fd = -1; |
up.stat.map = MAP_FAILED; |
up.stat.map = MAP_FAILED; |
|
up.stat.blktab = blkhash_alloc(); |
|
|
/* |
/* |
* Generate the list of files we want to send from our |
* Generate the list of files we want to send from our |
|
|
|
|
if ((up.cur = TAILQ_FIRST(&sdlq)) == NULL) |
if ((up.cur = TAILQ_FIRST(&sdlq)) == NULL) |
continue; |
continue; |
|
|
TAILQ_REMOVE(&sdlq, up.cur, entries); |
TAILQ_REMOVE(&sdlq, up.cur, entries); |
|
|
|
/* Hash our blocks. */ |
|
|
|
blkhash_set(up.stat.blktab, up.cur->blks); |
|
|
/* |
/* |
* End of phase: enable channel to receiver. |
* End of phase: enable channel to receiver. |
* We'll need our output buffer enabled in order |
* We'll need our output buffer enabled in order |
|
|
} |
} |
flist_free(fl, flsz); |
flist_free(fl, flsz); |
free(wbuf); |
free(wbuf); |
|
blkhash_free(up.stat.blktab); |
return rc; |
return rc; |
} |
} |