Whamcloud - gitweb
LU-15810 sec: fix enc dir migration
authorSebastien Buisson <sbuisson@ddn.com>
Tue, 3 May 2022 15:30:18 +0000 (17:30 +0200)
committerOleg Drokin <green@whamcloud.com>
Fri, 6 May 2022 19:19:04 +0000 (15:19 -0400)
commitaed474e971120b93284eccdb0b0e2d8d949a3f26
treeb047610f980bf8c7481a2fabbb4c819433871a7f
parent751a8114ef3afe9abe7692b3974b070db6a705a2
LU-15810 sec: fix enc dir migration

Now that the encryption context is stored in an xattr named
"encryption.c" instead of "security.c", we need to fetch this xattr
explicitly in case of encrypted directory migration. Indeed, there is
no xattr handler in ldiskfs for this "encryption." xattr type, so it
is not returned when listing all xattrs to migrate.

Fixes: 4231fab66e ("LU-13717 sec: make client encryption compatible with ext4")
Signed-off-by: Sebastien Buisson <sbuisson@ddn.com>
Change-Id: I628f9b253e86343db0b71f6a5b1ad2c5728ca38d
Reviewed-on: https://review.whamcloud.com/47201
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Lai Siyao <lai.siyao@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/mdd/mdd_dir.c
lustre/tests/sanity-sec.sh