endif(HAVE_LIBAIO)
if(WITH_FUSE)
+ target_include_directories(os SYSTEM PRIVATE ${FUSE_INCLUDE_DIRS})
target_link_libraries(os ${FUSE_LIBRARIES})
endif()
_do_read_stripe(o, offset - stripe_off, &stripe);
dout(30) << __func__ << " stripe " << offset - stripe_off << " got "
<< stripe.length() << dendl;
- unsigned swant = std::min(stripe_size - stripe_off, length);
+ unsigned swant = std::min<unsigned>(stripe_size - stripe_off, length);
if (stripe.length()) {
if (swant == stripe.length()) {
bl.claim_append(stripe);
{
// set a max on the number of blocking peers we report. if we go
// over, report a random subset. keep the result sorted.
- unsigned keep = std::min(blocked_by.size(), cct->_conf->osd_max_pg_blocked_by);
+ unsigned keep = std::min<unsigned>(blocked_by.size(), cct->_conf->osd_max_pg_blocked_by);
unsigned skip = blocked_by.size() - keep;
info.stats.blocked_by.clear();
info.stats.blocked_by.resize(keep);
p != buffer_extents.end();
++p) {
uint64_t tofs = p->first;
- uint64_t tlen = p->second;
+ size_t tlen = p->second;
ldout(cct, 30) << " be " << tofs << "~" << tlen << dendl;
while (tlen > 0) {
ldout(cct, 20) << " t " << tofs << "~" << tlen
if (s->first > bl_off) {
// gap in sparse read result
pair<bufferlist, uint64_t>& r = partial[tofs];
- size_t gap = std::min(s->first - bl_off, tlen);
+ size_t gap = std::min<size_t>(s->first - bl_off, tlen);
ldout(cct, 20) << " s gap " << gap << ", skipping" << dendl;
r.second = gap;
total_intended_len += r.second;