Whamcloud - gitweb
LU-6449 mdt: correct status and ChangeLogs for dead objects 77/21077/13
authorBruno Faccini <bruno.faccini@intel.com>
Wed, 29 Jun 2016 17:06:21 +0000 (19:06 +0200)
committerOleg Drokin <oleg.drokin@intel.com>
Sat, 17 Dec 2016 05:40:38 +0000 (05:40 +0000)
commit3ed1444d3fa4e31fbb99c82a478802c0dbcb168e
treebe1feebc4eb0337c14ca63b0b9a7bb4ab11cb1e7
parent4465f1cf50dc16b37a9ea23efec78b17fd1936eb
LU-6449 mdt: correct status and ChangeLogs for dead objects

This patch is an addon of first patch for LU-6449
(Gerrit change http://review.whamcloud.com/20991) which implements
the feature of broadcasting HSM remove requests, with no/0 archive_id
specified, to all currently registered archives.

hsm_cdt_request_completed() has been fixed to no longer only return
SUCCEED status for HSM requests on dead objects but effective status
and also to create associated ChangeLog records. This last change
has required to also change mdd/ChangeLog interface to allow to
specify a FID, and to use this way extensively.
Error case in retry-mode has also been fixed to allow layout-lock
to be released.

sanity-hsm/test_[220a,222[c,d],224a] have been added to check correct
behavior.

Signed-off-by: Bruno Faccini <bruno.faccini@intel.com>
Change-Id: I5885cc8feb2b3d50bfc691706401c7c19ba78f72
Reviewed-on: https://review.whamcloud.com/21077
Tested-by: Jenkins
Reviewed-by: Hongchao Zhang <hongchao.zhang@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: John L. Hammond <john.hammond@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/include/md_object.h
lustre/mdd/mdd_object.c
lustre/mdt/mdt_coordinator.c
lustre/tests/sanity-hsm.sh