test/osd/: verify length of buffer returned in read

Signed-off-by: Samuel Just <sam.just@inktank.com>
This commit is contained in:
Samuel Just 2013-12-07 19:46:54 -08:00
parent 0885880b30
commit 4d56e3c831

View File

@ -170,5 +170,11 @@ bool ObjectDesc::check(bufferlist &to_check) {
return false;
}
}
uint64_t size = layers.empty() ? 0 :
most_recent_gen()->get_length(most_recent());
if (pos != size) {
std::cout << "only read " << pos << " out of size " << size << std::endl;
return false;
}
return true;
}