It is better to show current value than showing same value twice.
Signed-off-by: Shinobu Kinjo <shinobu@redhat.com>
int BlueStore::_open_path()
{
// sanity check(s)
- if (cct->_conf->get_val<uint64_t>("osd_max_object_size") >=
- 4*1024*1024*1024ull) {
- derr << __func__ << " osd_max_object_size >= 4GB; BlueStore has hard limit of 4GB." << dendl;
+ auto osd_max_object_size =
+ cct->_conf->get_val<uint64_t>("osd_max_object_size");
+ if (osd_max_object_size >= 4*1024*1024*1024ull) {
+ derr << __func__ << " osd_max_object_size: " << osd_max_object_size
+ << "; BlueStore has hard limit of 4GB." << dendl;
return -EINVAL;
}
assert(path_fd < 0);
length > max ||
offset + length > max) {
ldpp_dout(dpp, 10) << __func__ << " "
- << "osd_max_object_size >= 4GB; Hard limit of object size is 4GB.\n"
- << dendl;
+ << "osd_max_object_size: " << max
+ << "; Hard limit of object size is 4GB." << dendl;
return -EFBIG;
}