]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.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>
Fri, 8 Mar 2024 10:41:58 +0000 (16:11 +0530)
Fixes: https://tracker.ceph.com/issues/61958
Signed-off-by: Milind Changire <mchangir@redhat.com>
(cherry picked from commit 9106781617081bf9fe556735c093a4d767ccd1ad)

src/mds/CInode.cc

index d799f59ba28cc8dcc7045d679853dcff7aca5a7d..266934f39a3bff7f19722771be17ed6af8fe0cf1 100644 (file)
@@ -5169,6 +5169,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 *****/