Whamcloud - gitweb
LU-8030 hsm: prevent duplicated HSM requests 35/19635/8
authorFrank Zago <fzago@cray.com>
Mon, 18 Apr 2016 17:53:00 +0000 (13:53 -0400)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 31 May 2016 04:55:51 +0000 (04:55 +0000)
commit62e93ef9a29341091c49d66a1535ea243ea950be
treeaae4a8048fa7075fcf844c6f39488cbf92029b8d
parent7b654fc673a2570ab4a828c2a7b213cee8b5b0cc
LU-8030 hsm: prevent duplicated HSM requests

It is possible to insert identical HSM requests in the HSM action
list. The following command

  lfs hsm-archive foo foo foo foo

results in 4 new archive requests in the "actions" list for the same
file.

Identify such requests and suppress the duplicates.

Signed-off-by: frank zago <fzago@cray.com>
Change-Id: If83d2855948578b94babca96dc72c33f96ae4f71
Reviewed-on: http://review.whamcloud.com/19635
Tested-by: Jenkins
Reviewed-by: jacques-Charles Lafoucriere <jacques-charles.lafoucriere@cea.fr>
Reviewed-by: John L. Hammond <john.hammond@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/mdt/mdt_hsm.c