also, partial specialize fmt::format<> for boost::instrusive_ptr<>,
so we can use fmt::ptr() to print boost::intrusive_ptr<>, just like
how we print std::shared_ptr<>.
Signed-off-by: Kefu Chai <tchaikov@gmail.com>
in {fmt} v9, fmt::formatter<> is not defined automatically for
the types with operator<<, we need to define them explictly. so in this
change, the types printed using `fmt::print()` or `fmt::format()` are
equiped with fmt::formatter<> to appease {fmt} v9.
Signed-off-by: Kefu Chai <tchaikov@gmail.com>
instead of printing the empty optional<>, print the oid of missing
clone. the oid is more interesting in this context.
Signed-off-by: Kefu Chai <tchaikov@gmail.com>
in {fmt} v9, fmt::formatter<> is not defined automatically for
the types with operator<<, we need to define them explictly. so in this
change, the types printed using `fmt::print()` or `fmt::format()` are
equiped with fmt::formatter<> to appease {fmt} v9.
Signed-off-by: Kefu Chai <tchaikov@gmail.com>
in {fmt} v9, only `void*` pointers can be printed directly. when it
comes to typed pointer or smart pointers, we need to print them using
`fmt::ptr()`. in this change, an overload is added so we can print
`seastar::shared_ptr<>` via `fmt::ptr()` as well, just like how we
print `std::shared_ptr<>`.
Signed-off-by: Kefu Chai <tchaikov@gmail.com>
in `PG::do_update_log_missing()`, `std::optional<eversion_t>` is printed
using {fmt}, but {fmt} does not support formatting `std::optional<>`. so
we need to swing our own formatter. we can promote this formatter to
a more common place if it is proved to be useful otherwhere in the
source tree.
Signed-off-by: Kefu Chai <tchaikov@gmail.com>
{fmt} does not support formatting exceptions until
76adb05a78
so we need to print them via exception.what().
Signed-off-by: Kefu Chai <tchaikov@gmail.com>
fmt does not support formatting `std::exception_ptr`, so we need to
rethrow it, so we can convert it to a known exception type.
Signed-off-by: Kefu Chai <tchaikov@gmail.com>
to be aligned with the c-ares upstream, which provides
c-ares-config.cmake in c-ares v1.17 and up. this cmake config file
is also packaged by fedora and CentOS stream in c-ares-devel-1.17.1 and
up.
this change prepares us for bumping up Seastar submodule, which also
has a similar change: aea45c98f2
Signed-off-by: Kefu Chai <tchaikov@gmail.com>
Add an Oxford comma to a list under the "Cluster Map" headword in the
glossary, so that it doesn't read like "I'd like to thank my parents,
Ayn Rand and God."
Signed-off-by: Zac Dover <zac.dover@gmail.com>
Added ceph-dokan CLI optarg for configuring the value of
the maximum path length. By default, it will be set to 256 and
it will have a maximum value of 32767.
Signed-off-by: Stefan Chivu <schivu@cloudbasesolutions.com>
As we started using curses pads in PR#48090, we don't need x_coord_map anymore.
In this patch, the metrics are positioned in cephfs-top based on padding (ITEMS_PAD).
Signed-off-by: Jos Collin <jcollin@redhat.com>
Add unselectable prompts to add-or-rm-prompts.rst. This commit covers
the first 300 lines of the file. This is part 1 of 2.
Signed-off-by: Zac Dover <zac.dover@gmail.com>