Return bytes available in sub-buffer
size_t relay_file_read_subbuf_avail(size_t read_pos, struct rchan_buf * buf);
read_pos
file read position
buf
relay channel buffer