Whamcloud - gitweb
LU-13717 sec: limit hard links to linkEA size for enc files
authorSebastien Buisson <sbuisson@ddn.com>
Mon, 19 Oct 2020 14:23:05 +0000 (23:23 +0900)
committerAndreas Dilger <adilger@whamcloud.com>
Wed, 16 Mar 2022 23:32:38 +0000 (23:32 +0000)
commit17d1c64d81ad00a091b01bec305f93fbf93bfdcd
treedcaaa35b460d02776ab28f8bf7cf3ee70802c9ff
parent8b2e4e7e89c0ca2c7236677b1faa87e2e4893f58
LU-13717 sec: limit hard links to linkEA size for enc files

Some operations on encrypted files require to identify all names for
files having the same FID. For instance, for lookup, getattr or unlink
on encrypted files without the encryption key, we need to perform an
operation by FID instead of the actual name.
In order to make operations by FID unambiguous on server side, we
decide to limit the number of possible hard links for encrypted files,
to what the linkEA can contain.
Currently linkEA stores 4KiB of links, that is 14 NAME_MAX links, or
119 16-byte names.

Lustre-change: https://review.whamcloud.com/43387
Lustre-commit: 2ffb8f5726d27e7c2324a3e833491231fdaa3306

Signed-off-by: Sebastien Buisson <sbuisson@ddn.com>
Change-Id: I20a01874899f95b2ff61e05b2aa6851d135633e8
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Lai Siyao <lai.siyao@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/45728
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
lustre/include/lustre_linkea.h
lustre/lfsck/lfsck_namespace.c
lustre/mdd/mdd_dir.c
lustre/obdclass/linkea.c
lustre/tests/sanity-sec.sh