[lustre-devel] [PATCH 39/40] lustre: uapi: add DMV_IMP_INHERIT connect flag
James Simmons
jsimmons at infradead.org
Sun Apr 9 05:13:19 PDT 2023
From: Lai Siyao <lai.siyao at whamcloud.com>
Add OBD_CONNECT2_DMV_IMP_INHERIT for implicit default LMV inherit.
WC-bug-id: https://jira.whamcloud.com/browse/LU-15971
Lustre-commit: 203745e7b07101bb6 ("LU-15971 uapi: add DMV_IMP_INHERIT connect flag")
Signed-off-by: Lai Siyao <lai.siyao at whamcloud.com>
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/47788
Reviewed-by: Andreas Dilger <adilger at whamcloud.com>
Reviewed-by: Hongchao Zhang <hongchao at whamcloud.com>
Reviewed-by: Oleg Drokin <green at whamcloud.com>
Signed-off-by: James Simmons <jsimmons at infradead.org>
---
fs/lustre/ptlrpc/wiretest.c | 2 ++
include/uapi/linux/lustre/lustre_idl.h | 1 +
2 files changed, 3 insertions(+)
diff --git a/fs/lustre/ptlrpc/wiretest.c b/fs/lustre/ptlrpc/wiretest.c
index 2c02430..472d155c 100644
--- a/fs/lustre/ptlrpc/wiretest.c
+++ b/fs/lustre/ptlrpc/wiretest.c
@@ -1245,6 +1245,8 @@ void lustre_assert_wire_constants(void)
OBD_CONNECT2_ATOMIC_OPEN_LOCK);
LASSERTF(OBD_CONNECT2_ENCRYPT_NAME == 0x8000000ULL, "found 0x%.16llxULL\n",
OBD_CONNECT2_ENCRYPT_NAME);
+ LASSERTF(OBD_CONNECT2_DMV_IMP_INHERIT == 0x20000000ULL, "found 0x%.16llxULL\n",
+ OBD_CONNECT2_DMV_IMP_INHERIT);
LASSERTF(OBD_CONNECT2_ENCRYPT_FID2PATH == 0x40000000ULL, "found 0x%.16llxULL\n",
OBD_CONNECT2_ENCRYPT_FID2PATH);
LASSERTF(OBD_CKSUM_CRC32 == 0x00000001UL, "found 0x%.8xUL\n",
diff --git a/include/uapi/linux/lustre/lustre_idl.h b/include/uapi/linux/lustre/lustre_idl.h
index d60d1d8..c979e24 100644
--- a/include/uapi/linux/lustre/lustre_idl.h
+++ b/include/uapi/linux/lustre/lustre_idl.h
@@ -784,6 +784,7 @@ struct ptlrpc_body_v2 {
#define OBD_CONNECT2_LOCK_CONTENTION 0x2000000ULL /* contention detect */
#define OBD_CONNECT2_ATOMIC_OPEN_LOCK 0x4000000ULL /* lock on first open */
#define OBD_CONNECT2_ENCRYPT_NAME 0x8000000ULL /* name encrypt */
+#define OBD_CONNECT2_DMV_IMP_INHERIT 0x20000000ULL /* client handle DMV inheritance */
#define OBD_CONNECT2_ENCRYPT_FID2PATH 0x40000000ULL /* fid2path enc file */
/* XXX README XXX README XXX README XXX README XXX README XXX README XXX
* Please DO NOT add OBD_CONNECT flags before first ensuring that this value
--
1.8.3.1
More information about the lustre-devel
mailing list