filestore: fix signedness so we can handle errors from safe_pread

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
This commit is contained in:
Sage Weil 2011-03-05 20:41:55 -08:00
parent 69c7e59cb7
commit 8fe0f48b75

View File

@ -2039,7 +2039,7 @@ int FileStore::stat(coll_t cid, const sobject_t& oid, struct stat *st)
int FileStore::read(coll_t cid, const sobject_t& oid,
uint64_t offset, size_t len, bufferlist& bl)
{
size_t got;
int got;
char fn[PATH_MAX];
get_coname(cid, oid, fn, sizeof(fn));