From 7a354e82d99d57103ed52cb7872cd64090b43383 Mon Sep 17 00:00:00 2001 From: Olaf Faaland Date: Thu, 2 Jul 2020 14:25:32 -0700 Subject: [PATCH] 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. Lustre-change: https://review.whamcloud.com/40563 Lustre-commit: 53ee416097a9a77ca0ee352714af02e77489e3f8 Signed-off-by: Olaf Faaland Change-Id: Ib34582e2be55fe2007363b52cea4dee211b7f540 Reviewed-by: James Simmons Reviewed-by: Oleg Drokin Reviewed-on: https://review.whamcloud.com/39324 Reviewed-by: Andreas Dilger Tested-by: jenkins Tested-by: Maloo --- lustre/obdclass/lprocfs_status_server.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/lustre/obdclass/lprocfs_status_server.c b/lustre/obdclass/lprocfs_status_server.c index 8dfec5d..18dc9df 100644 --- a/lustre/obdclass/lprocfs_status_server.c +++ b/lustre/obdclass/lprocfs_status_server.c @@ -201,6 +201,19 @@ lprocfs_exp_print_export_seq(struct cfs_hash *hs, struct cfs_hash_bd *bd, 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; } -- 1.8.3.1