Add ted_{grant,reserved,dirty} to the export
procfile for OSTs, to allow comparison between the
OST's idea of grants allocated to the client with
the client's idea.
Signed-off-by: Olaf Faaland <faaland1@llnl.gov>
Change-Id: Ib34582e2be55fe2007363b52cea4dee211b7f540
Reviewed-on: https://review.whamcloud.com/40563
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
obd_export_flags2str(exp, m);
seq_printf(m, " ]\n");
+ if (obd->obd_type &&
+ strcmp(obd->obd_type->typ_name, "obdfilter") == 0) {
+ struct filter_export_data *fed = &exp->exp_filter_data;
+
+ seq_printf(m, " grant:\n");
+ seq_printf(m, " granted: %ld\n",
+ fed->fed_ted.ted_grant);
+ seq_printf(m, " dirty: %ld\n",
+ fed->fed_ted.ted_dirty);
+ seq_printf(m, " pending: %ld\n",
+ fed->fed_ted.ted_pending);
+ }
+
out:
return 0;
}