Put the most significant fields to the left so that it matches the sort
order. Also use unambiguous separator when the nspace is present
(like we do with the key).
Signed-off-by: Sage Weil <sage@redhat.com>
{
if (o.is_max())
return out << "MAX";
+ out << o.pool << '/';
out << std::hex << o.get_hash() << std::dec;
+ if (o.nspace.length())
+ out << ":" << o.nspace;
if (o.get_key().length())
out << "." << o.get_key();
out << "/" << o.oid << "/" << o.snap;
- out << "/" << o.nspace << "/" << o.pool;
return out;
}