plugins/nbd/nbd.c
/* Read data from the file. */
Read data from the file.
Read data from the file .
static int
nbd_pread (void *handle, void *buf, uint32_t count, uint64_t offset,
           uint32_t flags)
{
  struct handle *h = handle;
  int c;
  assert (!flags);
  c = nbd_request_full (h, 0, NBD_CMD_READ, offset, count, NULL, buf);
  return c < 0 ? c : nbd_reply (h, c);
}
static int nbd_pread ( void * handle , void * buf , uint32_t count , uint64_t offset , uint32_t flags ) { struct handle * h = handle ; int c ; assert ( ! flags ) ; c = nbd_request_full ( h , 0 , NBD_CMD_READ , offset , count , NULL , buf ) ; return c < 0 ? c : nbd_reply ( h , c ) ; }
Read data from the file.
Read data from the file .