From: Andreas Dilger Date: Tue, 5 Nov 2019 03:25:22 +0000 (-0700) Subject: LU-12935 obdclass: fix import connect flag printing X-Git-Tag: 2.12.4-RC1~54 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F81%2F36881%2F2;p=fs%2Flustre-release.git LU-12935 obdclass: fix import connect flag printing The obd_connect_names[] array holds strings for the OBD_CONNECT_* and obd_CONNECT2_* flag names. It is positional, so every flag bit needs a corresponding field in the array. The "async_discard" feature was backported to b2_12, but the two earlier features "pcc" and (now removed) "plain_layout" were not backported. Add in strings for those features, and fill in some earlier "unknown" flag names as well Fixes: e5810126b3fb ("LU-11359 mdt: fix mdt_dom_discard_data() timeouts") Test-Parameters: trivial Signed-off-by: Andreas Dilger Change-Id: I883d236262805361be3f48c533d781878f9494fa Reviewed-on: https://review.whamcloud.com/36881 Tested-by: jenkins Tested-by: Maloo Reviewed-by: Mike Pershin Reviewed-by: Arshad Hussain Reviewed-by: Shaun Tancheff Reviewed-by: Stephan Thiell Reviewed-by: Oleg Drokin --- diff --git a/lustre/obdclass/lprocfs_status.c b/lustre/obdclass/lprocfs_status.c index c4e17c1..4766593 100644 --- a/lustre/obdclass/lprocfs_status.c +++ b/lustre/obdclass/lprocfs_status.c @@ -776,15 +776,17 @@ static const char *obd_connect_names[] = { "file_secctx", /* 0x01 */ "lockaheadv2", /* 0x02 */ "dir_migrate", /* 0x04 */ - "unknown", /* 0x08 */ - "unknown", /* 0x10 */ + "sum_statfs", /* 0x08 */ + "overstriping", /* 0x10 */ "flr", /* 0x20 */ "wbc", /* 0x40 */ "lock_convert", /* 0x80 */ "archive_id_array", /* 0x100 */ - "unknown", /* 0x200 */ + "increasing_xid", /* 0x200 */ "selinux_policy", /* 0x400 */ "lsom", /* 0x800 */ + "pcc", /* 0x1000 */ + "unknown", /* 0x2000 */ "async_discard", /* 0x4000 */ NULL };