client: fix warnings

client/Client.cc: In member function 'int Client::_read(Fh*, int64_t, uint64_t, ceph::bufferlist*)':
warning: client/Client.cc:5893:27: comparison between signed and unsigned integer expressions [-Wsign-compare]
client/Client.cc: In member function 'int Client::_write(Fh*, int64_t, uint64_t, const char*)':
warning: client/Client.cc:6235:30: comparison between signed and unsigned integer expressions [-Wsign-compare]

Signed-off-by: Sage Weil <sage@inktank.com>
This commit is contained in:
Sage Weil 2014-02-03 21:12:41 -08:00
parent a23a2c8f01
commit 60ca6f699b
2 changed files with 2 additions and 2 deletions

View File

@ -5890,7 +5890,7 @@ int Client::_read(Fh *f, int64_t offset, uint64_t size, bufferlist *bl)
bl->substr_of(in->inline_data, offset, len - offset);
bl->append_zero(endoff - len);
}
} else if (offset < endoff) {
} else if ((uint64_t)offset < endoff) {
bl->append_zero(endoff - offset);
}

View File

@ -263,7 +263,7 @@ OPTION(client_oc_max_dirty_age, OPT_DOUBLE, 5.0) // max age in cache before
OPTION(client_oc_max_objects, OPT_INT, 1000) // max objects in cache
OPTION(client_debug_force_sync_read, OPT_BOOL, false) // always read synchronously (go to osds)
OPTION(client_debug_inject_tick_delay, OPT_INT, 0) // delay the client tick for a number of seconds
OPTION(client_max_inline_size, OPT_INT, 4096)
OPTION(client_max_inline_size, OPT_U64, 4096)
// note: the max amount of "in flight" dirty data is roughly (max - target)
OPTION(fuse_use_invalidate_cb, OPT_BOOL, false) // use fuse 2.8+ invalidate callback to keep page cache consistent
OPTION(fuse_allow_other, OPT_BOOL, true)