From 98000c0ac802832191df7e6eaf9d1636d280038b Mon Sep 17 00:00:00 2001 From: Johann Lombardi Date: Tue, 4 Sep 2012 09:52:00 +0200 Subject: [PATCH] LU-1789 protocol: reserve connect flag for lightweight conn Reserve connection flag for lightweight connection support. Although this feature will never be supported on 2.1, it still avoids flag conflicts. Signed-off-by: Johann Lombardi Change-Id: I1b943579d8c46cce0d70a5df45d35874bf63b29b Reviewed-on: http://review.whamcloud.com/3853 Tested-by: Hudson Reviewed-by: Niu Yawei Tested-by: Maloo Reviewed-by: Oleg Drokin --- lustre/include/lustre/lustre_idl.h | 6 +++--- lustre/obdclass/lprocfs_status.c | 4 ++++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/lustre/include/lustre/lustre_idl.h b/lustre/include/lustre/lustre_idl.h index c7d80f2..1db06a6 100644 --- a/lustre/include/lustre/lustre_idl.h +++ b/lustre/include/lustre/lustre_idl.h @@ -1109,9 +1109,9 @@ extern void lustre_swab_ptlrpc_body(struct ptlrpc_body *pb); * write RPC error properly */ #define OBD_CONNECT_GRANT_PARAM 0x100000000000ULL/* extra grant params used for * finer space reservation */ -#define OBD_CONNECT_NANOSECOND_TIMES 0x200000000000ULL /* nanosec resolution - * timestamps supported - */ +#define OBD_CONNECT_NANOSEC_TIME 0x200000000000ULL /* nanosecond timestamps */ +#define OBD_CONNECT_LVB_TYPE 0x400000000000ULL /* variable type of LVB */ +#define OBD_CONNECT_LIGHTWEIGHT 0x1000000000000ULL /* lightweight connection */ /* XXX README XXX: * Please DO NOT add flag values here before first ensuring that this same * flag value is not in use on some other branch. Please clear any such diff --git a/lustre/obdclass/lprocfs_status.c b/lustre/obdclass/lprocfs_status.c index 9cee976..9808db6 100644 --- a/lustre/obdclass/lprocfs_status.c +++ b/lustre/obdclass/lprocfs_status.c @@ -823,6 +823,10 @@ static const char *obd_connect_names[] = { "umask", "einprogress", "grant_param", + "nanoseconds_times", + "lvb_type", + "unknown", + "lightweight_conn", NULL }; -- 1.8.3.1