Whamcloud - gitweb
LU-11369 hsm: allow non-owner writers to set HSM state dirty 58/33158/2
authorJohn L. Hammond <jhammond@whamcloud.com>
Thu, 13 Sep 2018 17:52:45 +0000 (12:52 -0500)
committerOleg Drokin <green@whamcloud.com>
Fri, 12 Oct 2018 23:50:21 +0000 (23:50 +0000)
commita9e48fa940c45e51fd792c5d9fc4c647f64ed94e
treed415edbc680968e2e25c4432515b43b82e9615ff
parent155a2b900f9bec8001474a025ce7ebc75f625a4e
LU-11369 hsm: allow non-owner writers to set HSM state dirty

In mdt_add_dirty_flag(), bump up the capability so that
mdt_hsm_attr_set() will succeed even if the writer (or truncater) is
not the owner of the file.

Signed-off-by: John L. Hammond <jhammond@whamcloud.com>
Change-Id: Ibd7e9e039c3a984642b4a01c63cd11d2029e93f1
Reviewed-on: https://review.whamcloud.com/33158
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Mike Pershin <mpershin@whamcloud.com>
Reviewed-by: Quentin Bouget <quentin.bouget@cea.fr>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/mdt/mdt_reint.c
lustre/tests/sanity-hsm.sh