| 99 | bufferlist m_read_data; |
| 100 | |
| 101 | static int write_extent(ExportDiffContext *edc, uint64_t offset, |
| 102 | uint64_t length, bool exists, int export_format) { |
| 103 | // extent |
| 104 | bufferlist bl; |
| 105 | __u8 tag = exists ? RBD_DIFF_WRITE : RBD_DIFF_ZERO; |
| 106 | uint64_t len = 0; |
| 107 | encode(tag, bl); |
| 108 | if (export_format == 2) { |
| 109 | if (tag == RBD_DIFF_WRITE) |
| 110 | len = 8 + 8 + length; |
| 111 | else |
| 112 | len = 8 + 8; |
| 113 | encode(len, bl); |
| 114 | } |
| 115 | encode(offset, bl); |
| 116 | encode(length, bl); |
| 117 | int r = bl.write_fd(edc->fd); |
| 118 | |
| 119 | edc->pc.update_progress(offset, edc->totalsize); |
| 120 | return r; |
| 121 | } |
| 122 | }; |
| 123 | |
| 124 |
nothing calls this directly
no test coverage detected