+#endif /* CONFIG_PROC_FS */
+
+LUSTRE_ATTR(mgs_conn_uuid, 0444, conn_uuid_show, NULL);
+LUSTRE_RO_ATTR(conn_uuid);
+
+LUSTRE_RW_ATTR(ping);
+
+static struct attribute *mgc_attrs[] = {
+ &lustre_attr_mgs_conn_uuid.attr,
+ &lustre_attr_conn_uuid.attr,
+ &lustre_attr_ping.attr,
+ NULL,
+};
+
+int mgc_tunables_init(struct obd_device *obd)
+{
+ int rc;
+
+ obd->obd_ktype.default_attrs = mgc_attrs;
+ obd->obd_vars = lprocfs_mgc_obd_vars;
+ rc = lprocfs_obd_setup(obd, true);
+ if (rc)
+ return rc;
+
+ return sptlrpc_lprocfs_cliobd_attach(obd);
+}