Whamcloud - gitweb
LU-11130 osd-ldiskfs: create non-empty local agent symlinks 97/32797/9
authorAlexander Zarochentsev <c17826@cray.com>
Sat, 7 Jul 2018 21:21:36 +0000 (00:21 +0300)
committerOleg Drokin <green@whamcloud.com>
Tue, 13 Nov 2018 06:14:19 +0000 (06:14 +0000)
commitc3a836364892cacbc4737645893b094971c6ec49
tree0fcdb22f1fa0cdba4dd81cf708037779ec7684ec
parent7edc970036e118dd6fc63252054c1c9f594ce1e1
LU-11130 osd-ldiskfs: create non-empty local agent symlinks

e2fsck doesn't like zero-sized symlink inodes created by
osd_create_local_agent_inode().  Store the FID of the remote
inode as the symlink target so that it is possible to debug
where this symlink comes from in case there is some problem
in the future.

It would be better to just migrate the whole symlink instead
of creating a remote symlink, in the very common case where
there is not a hard link to the symlink (which POSIX allows,
but is extremely uncommon).  For the short term, we store
keep the remote symlinks to ensure on-disk consistency with
this simple patch, until the migration code can be fixed.

Cray-bug-id: LUS-6189
Change-Id: Ida43616c51b6903f0a51aeec05a9a2dd189efe31
Signed-off-by: Alexander Zarochentsev <c17826@cray.com>
Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/32797
Tested-by: Jenkins
Reviewed-by: Lai Siyao <lai.siyao@whamcloud.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
lustre/osd-ldiskfs/osd_handler.c
lustre/tests/conf-sanity.sh