- PARA_ERROR_LOG("%s\n", PARA_STRERROR(-ret));
-}
-
-void vss_post_select(fd_set *rfds, fd_set *wfds)
-{
- int ret;
-
- if (FD_ISSET(afs_socket, rfds))
- recv_afs_result();
- if (afsss != AFS_SOCKET_CHECK_FOR_WRITE || !FD_ISSET(afs_socket, wfds))
- return;
- PARA_NOTICE_LOG("requesting new socket\n");
- ret = send_buffer(afs_socket, "new");
- afsss = AFS_SOCKET_AFD_PENDING;
-}
-
-static void get_chunk(long unsigned chunk_num, char **buf, size_t *len)
-{
- size_t pos = mmd->afi.chunk_table[chunk_num];
- *buf = map + pos;
- *len = mmd->afi.chunk_table[chunk_num + 1] - pos;
-
- if (chunk_num + 5 > mmd->afd.afhi.chunks_total)
- PARA_NOTICE_LOG("chunk %lu/%lu\n, len: %zu\n", chunk_num,
- mmd->afd.afhi.chunks_total, *len);
+ PARA_ERROR_LOG("%s\n", para_strerror(-ret));
+ mmd->new_vss_status_flags = VSS_NEXT;