From: LiuYang Date: Wed, 22 Dec 2021 07:18:44 +0000 (+0800) Subject: cls/rbd: add namespace to snapshot dump results X-Git-Tag: v17.1.0~33^2~9 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=4a099a4756993d30782f47627f7b2fe9ce97ca85;p=ceph.git cls/rbd: add namespace to snapshot dump results Signed-off-by: LiuYang (cherry picked from commit 4899558d935e9d63cf4151e12155001653cc56d5) --- 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);