This may as well fit the input; this doesn't relate to the
append buffer.
Signed-off-by: Sage Weil <sage@redhat.com>
// available for raw_pipe until we actually inspect the data
return 0;
}
- int s = ROUND_UP_TO(len, CEPH_BUFFER_APPEND_SIZE);
- bufferptr bp = buffer::create_aligned(s, CEPH_BUFFER_APPEND_SIZE);
+ bufferptr bp = buffer::create(len);
ssize_t ret = safe_read(fd, (void*)bp.c_str(), len);
if (ret >= 0) {
bp.set_length(ret);