Whamcloud - gitweb
LU-1770 ptlrpc: introducing OBD_CONNECT_FLOCK_OWNER flag
authorIurii.Golovach <Iurii_Golovach@xyratex.com>
Tue, 16 Oct 2012 13:39:07 +0000 (16:39 +0300)
committerJohann Lombardi <johann.lombardi@intel.com>
Wed, 14 Nov 2012 10:52:15 +0000 (05:52 -0500)
After applying flock policy fix into the 1.8 users met with an issue
when 1.8 clients with a fixed flock policy recognized incorrectly by
2.x servers.
This flag is intended to present 1.8 clients with fixed flock policy
to let 2.x servers make flock policy recognition correctly.
Patches with functionality changes were attached on review at LU-1575

Xyratex-bug-id: MRP-489

Reviewed-by: Alexey Lyashkov <alexey_lyashkov@xyratex.com>
Reviewed-by: Andriy Skulysh <andriy_skulysh@xyratex.com>
Signed-off-by: Iurii Golovach <iurii_golovach@xyratex.com>
Change-Id: I0b203a7e181310c2888ae5bbe8c90ca0a5bbe549
Reviewed-on: http://review.whamcloud.com/3723
Reviewed-by: Cory Spitz <spitzcor@cray.com>
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Johann Lombardi <johann.lombardi@intel.com>
lustre/include/lustre/lustre_idl.h
lustre/obdclass/lprocfs_status.c

index 66371fe..f0e794e 100644 (file)
@@ -371,8 +371,10 @@ extern void lustre_swab_ptlrpc_body(struct ptlrpc_body *pb, int msgsize);
                                                   * write RPC error properly */
 #define OBD_CONNECT_GRANT_PARAM 0x100000000000ULL/* extra grant params used for
                                                   * finer space reservation */
-#define OBD_CONNECT_NANOSEC_TIME 0x200000000000ULL /* nanosecond timestamps */
+#define OBD_CONNECT_FLOCK_OWNER  0x200000000000ULL /* for the fixed 1.8
+                                                    * policy and 2.x server */
 #define OBD_CONNECT_LVB_TYPE     0x400000000000ULL /* variable type of LVB */
+#define OBD_CONNECT_NANOSEC_TIME 0x800000000000ULL /* nanosecond timestamps */
 #define OBD_CONNECT_LIGHTWEIGHT 0x1000000000000ULL /* lightweight connection */
 /* XXX README XXX:
  * Please DO NOT add flag values here before first ensuring that this same
index 2b0c5b4..b641790 100644 (file)
@@ -759,10 +759,11 @@ static const char *obd_connect_names[] = {
         "umask",
         "einprogress",
         "grant_param",
-        "nanoseconds_times",
+        "flock_owner",
         "lvb_type",
-        "unknown",
+       "nanoseconds_times",
         "lightweight_conn",
+       "unknown",
         NULL
 };