Whamcloud - gitweb
LU-11025 uapi: add OBD_CONNECT2_FIDMAP 32/38232/3
authorLai Siyao <lai.siyao@whamcloud.com>
Wed, 15 Apr 2020 02:46:00 +0000 (10:46 +0800)
committerOleg Drokin <green@whamcloud.com>
Thu, 7 May 2020 05:42:11 +0000 (05:42 +0000)
Add OBD_CONNECT2_FIDMAP connect flag, which indicates whether client
supports FID mapping.

Signed-off-by: Lai Siyao <lai.siyao@whamcloud.com>
Change-Id: I165598e7d19878d1d3dcfa8c6f8fcc3cc233e4c9
Reviewed-on: https://review.whamcloud.com/38232
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Alex Zhuravlev <bzzz@whamcloud.com>
lustre/include/uapi/linux/lustre/lustre_idl.h
lustre/ptlrpc/wiretest.c
lustre/utils/wirecheck.c
lustre/utils/wiretest.c

index 05dd3f2..bf04057 100644 (file)
@@ -829,6 +829,7 @@ struct ptlrpc_body_v2 {
 #define OBD_CONNECT2_CRUSH             0x2000ULL /* crush hash striped directory */
 #define OBD_CONNECT2_ASYNC_DISCARD     0x4000ULL /* support async DoM data discard */
 #define OBD_CONNECT2_ENCRYPT           0x8000ULL /* client-to-disk encrypt */
+#define OBD_CONNECT2_FIDMAP           0x10000ULL /* FID map */
 /* 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
index b0d40ad..998d34c 100644 (file)
@@ -1370,6 +1370,8 @@ void lustre_assert_wire_constants(void)
                 OBD_CONNECT2_ASYNC_DISCARD);
        LASSERTF(OBD_CONNECT2_ENCRYPT == 0x8000ULL, "found 0x%.16llxULL\n",
                 OBD_CONNECT2_ENCRYPT);
+       LASSERTF(OBD_CONNECT2_FIDMAP== 0x10000ULL, "found 0x%.16llxULL\n",
+                OBD_CONNECT2_FIDMAP);
        LASSERTF(OBD_CKSUM_CRC32 == 0x00000001UL, "found 0x%.8xUL\n",
                (unsigned)OBD_CKSUM_CRC32);
        LASSERTF(OBD_CKSUM_ADLER == 0x00000002UL, "found 0x%.8xUL\n",
index cfebf2c..54d653b 100644 (file)
@@ -622,6 +622,7 @@ check_obd_connect_data(void)
        CHECK_DEFINE_64X(OBD_CONNECT2_CRUSH);
        CHECK_DEFINE_64X(OBD_CONNECT2_ASYNC_DISCARD);
        CHECK_DEFINE_64X(OBD_CONNECT2_ENCRYPT);
+       CHECK_DEFINE_64X(OBD_CONNECT2_FIDMAP);
 
        CHECK_VALUE_X(OBD_CKSUM_CRC32);
        CHECK_VALUE_X(OBD_CKSUM_ADLER);
index b38f1fe..0e7d314 100644 (file)
@@ -1402,6 +1402,8 @@ void lustre_assert_wire_constants(void)
                 OBD_CONNECT2_ASYNC_DISCARD);
        LASSERTF(OBD_CONNECT2_ENCRYPT == 0x8000ULL, "found 0x%.16llxULL\n",
                 OBD_CONNECT2_ENCRYPT);
+       LASSERTF(OBD_CONNECT2_FIDMAP== 0x10000ULL, "found 0x%.16llxULL\n",
+                OBD_CONNECT2_FIDMAP);
        LASSERTF(OBD_CKSUM_CRC32 == 0x00000001UL, "found 0x%.8xUL\n",
                (unsigned)OBD_CKSUM_CRC32);
        LASSERTF(OBD_CKSUM_ADLER == 0x00000002UL, "found 0x%.8xUL\n",