Whamcloud - gitweb
LU-15810 sec: fix enc dir migration 01/47201/2
authorSebastien Buisson <sbuisson@ddn.com>
Tue, 3 May 2022 15:30:18 +0000 (17:30 +0200)
committerSebastien Buisson <sbuisson@ddn.com>
Tue, 3 May 2022 18:49:55 +0000 (20:49 +0200)
commit540f9208a9f6edcf6fdd1711e86fc182dfb92298
treecf0454df8eb207c96e074474260eff2be6fcbcb5
parent79053592966792a21912390b9db09b1ab1d61e2a
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
lustre/mdd/mdd_dir.c
lustre/tests/sanity-sec.sh