Whamcloud - gitweb
LU-12885 mds: add enums for MDS_OPEN flags (4/4) 12/56812/12
authorArshad Hussain <arshad.hussain@aeoncomputing.com>
Mon, 28 Oct 2024 04:56:56 +0000 (00:56 -0400)
committerOleg Drokin <green@whamcloud.com>
Thu, 13 Mar 2025 17:06:28 +0000 (17:06 +0000)
commit19a2573e16335ab7ea1d6f1813b9db87f732f49a
treef02aacb1b27eec5e151e4977ad72abdcb23e953a
parent782b21a969abc1302fab2198101e692d3b6eff41
LU-12885 mds: add enums for MDS_OPEN flags (4/4)

This patch is fourth of the series of patch that separates
kernel open flags from MDS open flags

This patch adds function ll_kernel_to_mds_open_flags() for
one place convert of kernel flags (fmode) to MDS flags

This patch removes macros O_LOV_DELAY_CREATE_1_8 and
O_LOV_DELAY_CREATE_MASK everywhere as it is was only
required for interop with applications written for Lustre
1.8 clients and not used any more

This patch adds function ll_lov_delay_create_is_set() and
ll_lov_delay_create_clear() to set and remove O_LOV_DELAY_CREATE
flag if found in struct file->fmode

This patch removes remaining fmode to mds_open_flags wherever
it was remaining

Signed-off-by: Arshad Hussain <arshad.hussain@aeoncomputing.com>
Change-Id: Ic125dc0c7fa54888fddf435c117de9d304ea8708
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/56812
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Jian Yu <yujian@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/include/lustre_mdc.h
lustre/include/uapi/linux/lustre/lustre_user.h
lustre/llite/file.c
lustre/llite/llite_internal.h
lustre/llite/namei.c