From: Olaf Faaland Date: Thu, 2 Jul 2020 21:25:32 +0000 (-0700) Subject: LU-14125 obdclass: add grant fields to export procfile X-Git-Tag: 2.13.57~54 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=53ee416097a9a77ca0ee352714af02e77489e3f8 LU-14125 obdclass: add grant fields to export procfile 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 Change-Id: Ib34582e2be55fe2007363b52cea4dee211b7f540 Reviewed-on: https://review.whamcloud.com/40563 Tested-by: jenkins Tested-by: Maloo Reviewed-by: James Simmons Reviewed-by: Oleg Drokin --- diff --git a/lustre/obdclass/lprocfs_status_server.c b/lustre/obdclass/lprocfs_status_server.c index a8602c7..3c82dd2 100644 --- a/lustre/obdclass/lprocfs_status_server.c +++ b/lustre/obdclass/lprocfs_status_server.c @@ -195,6 +195,19 @@ lprocfs_exp_print_export_seq(struct obd_export *exp, void *cb_data) 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; }