Whamcloud - gitweb
LU-17907 enc: enc flag should not remove other flags 17/55317/6
authorSebastien Buisson <sbuisson@ddn.com>
Wed, 5 Jun 2024 12:35:02 +0000 (14:35 +0200)
committerOleg Drokin <green@whamcloud.com>
Tue, 25 Jun 2024 03:30:28 +0000 (03:30 +0000)
commitcfde96fb2e77c33a8ab9afede79cdf093ee8ff9e
treee01a4d57fda72194e22f0a9db74a85682d49d699
parent9edcd30ddea9cef06a4239bcdd15be5563444ddf
LU-17907 enc: enc flag should not remove other flags

When updating inode flags, the lli_flags must be taken into account
so that they do not get lost. So provide helper functions for callers
of ll_update_inode_flags(), as an overlay to ll_inode_to_ext_flags().
And on server side, the mdd layer must fetch the existing flags when
setting LUSTRE_ENCRYPT_FL attr flag.

Fixes: 40d91eafe2 ("LU-12275 sec: atomicity of encryption context getting/setting")
Signed-off-by: Sebastien Buisson <sbuisson@ddn.com>
Change-Id: I150f2d87cef112beab81d1d2030133671d4b7361
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/55317
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Lai Siyao <lai.siyao@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/llite/crypto.c
lustre/llite/file.c
lustre/llite/llite_internal.h
lustre/llite/llite_lib.c
lustre/mdd/mdd_internal.h
lustre/tests/sanity-sec.sh