]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
mds: log a warning message when mds is started on an fs with inline_data
authorJeff Layton <jlayton@redhat.com>
Thu, 29 Aug 2019 16:16:24 +0000 (12:16 -0400)
committerJeff Layton <jlayton@redhat.com>
Thu, 19 Sep 2019 13:15:29 +0000 (09:15 -0400)
Log a warning message when we pull down an MDSMap and see that
inline_data has been enabled. This should give admins some warning that
they need to consider an exit plan.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
src/mds/MDSRank.cc

index 3649ec0f5bd1c92a921c4969b2520a383ad09e6a..c61ab5e408f01d40dd08a69e70f7f6031cd34459 100644 (file)
@@ -2401,6 +2401,9 @@ void MDSRankDispatcher::handle_mds_map(
     purge_queue.update_op_limit(*mdsmap);
   }
 
+  if (mdsmap->get_inline_data_enabled() && !oldmap.get_inline_data_enabled())
+    dout(0) << "WARNING: inline_data support has been deprecated and will be removed in a future release" << dendl;
+
   mdcache->handle_mdsmap(*mdsmap);
 }