| 418 | super_header sh; |
| 419 | |
| 420 | static int get_fd_data(int fd, bufferlist &bl) |
| 421 | { |
| 422 | uint64_t total = 0; |
| 423 | do { |
| 424 | ssize_t bytes = bl.read_fd(fd, max_read); |
| 425 | if (bytes < 0) { |
| 426 | cerr << "read_fd error " << cpp_strerror(bytes) << std::endl; |
| 427 | return bytes; |
| 428 | } |
| 429 | |
| 430 | if (bytes == 0) |
| 431 | break; |
| 432 | |
| 433 | total += bytes; |
| 434 | } while(true); |
| 435 | |
| 436 | ceph_assert(bl.length() == total); |
| 437 | return 0; |
| 438 | } |
| 439 | |
| 440 | int get_log(CephContext *cct, ObjectStore *fs, __u8 struct_ver, |
| 441 | spg_t pgid, const pg_info_t &info, |
no test coverage detected