From: LiuYang Date: Wed, 22 Dec 2021 07:18:44 +0000 (+0800) Subject: cls/rbd: add namespace to snapshot dump results X-Git-Tag: v18.0.0~1541^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=4899558d935e9d63cf4151e12155001653cc56d5;p=ceph-ci.git cls/rbd: add namespace to snapshot dump results Signed-off-by: LiuYang --- diff --git a/src/cls/rbd/cls_rbd.h b/src/cls/rbd/cls_rbd.h index 566bcdf6ca0..f0cadf8ae55 100644 --- a/src/cls/rbd/cls_rbd.h +++ b/src/cls/rbd/cls_rbd.h @@ -215,6 +215,10 @@ struct cls_rbd_snap { default: ceph_abort(); } + f->open_object_section("namespace"); + snapshot_namespace.dump(f); + f->close_section(); + f->dump_stream("timestamp") << timestamp; f->dump_unsigned("child_count", child_count); if (parent_overlap) { f->dump_unsigned("parent_overlap", *parent_overlap);