This fixes librbd crashes currently observed on master, when
debug is on, because `rbd_image_options_t` is typedef-ed `void *`
and it's operator is used when attempting to print out an
address (`void *`) of any object.
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
}
}
- std::ostream &operator<<(std::ostream &os, const rbd_image_options_t &opts) {
- image_options_ref* opts_ = static_cast<image_options_ref*>(opts);
-
- os << "[";
-
- for (image_options_t::const_iterator i = (*opts_)->begin();
- i != (*opts_)->end(); ++i) {
- os << (i == (*opts_)->begin() ? "" : ", ") << image_option_name(i->first)
- << "=" << i->second;
- }
-
- os << "]";
-
- return os;
- }
-
std::ostream &operator<<(std::ostream &os, const ImageOptions &opts) {
os << "[";