Simplified distributed block storage with strong consistency, like in Ceph
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
392 B

  1. // Copyright (c) Vitaliy Filippov, 2019+
  2. // License: VNPL-1.1 or GNU GPL-2.0+ (see for details)
  3. #pragma once
  4. #include <unistd.h>
  5. #include <sys/uio.h>
  6. int read_blocking(int fd, void *read_buf, size_t remaining);
  7. int write_blocking(int fd, void *write_buf, size_t remaining);
  8. int readv_blocking(int fd, iovec *iov, int iovcnt);
  9. int writev_blocking(int fd, iovec *iov, int iovcnt);