]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: dump subvolume flag for inode
authorMilind Changire <mchangir@redhat.com>
Wed, 2 Aug 2023 08:51:05 +0000 (14:21 +0530)
committerMilind Changire <mchangir@redhat.com>
Wed, 2 Aug 2023 08:51:05 +0000 (14:21 +0530)
Fixes: https://tracker.ceph.com/issues/61958
Signed-off-by: Milind Changire <mchangir@redhat.com>
src/mds/CInode.cc

index e6cd03442bbd7c24d88b09d31ae1f2f726f7bf29..691b1d5265cd8488fd2f327162a8b969612a103f 100644 (file)
@@ -5165,6 +5165,11 @@ void CInode::dump(Formatter *f, int flags) const
     }
     f->close_section();
   }
+
+  auto realm = find_snaprealm();
+  inodeno_t subvol_ino = realm->get_subvolume_ino();
+  bool is_subvol = (subvol_ino && subvol_ino == ino());
+  f->dump_bool("is_subvolume", is_subvol);
 }
 
 /****** Scrub Stuff *****/