Whamcloud - gitweb
LU-7152 hsm: sync volatile file before setting times 41/19441/2
authorJohn L. Hammond <john.hammond@intel.com>
Mon, 11 Apr 2016 14:07:34 +0000 (09:07 -0500)
committerOleg Drokin <oleg.drokin@intel.com>
Sun, 8 May 2016 17:40:34 +0000 (17:40 +0000)
commit048fca4f9f227f57cc353d247b9873b54d12fb88
treed340436376e0fd8a3b0ad02cf8ac8f6b1221bb27
parentc28933602a6971739cb5ec3a1e920409ff19b01e
LU-7152 hsm: sync volatile file before setting times

In the restore case of llapi_hsm_action_end() call fsync() on the
volatile file before updating its timestamps. This prevents spurious
{a,m,c}times from fsync(). Correct a related comment in sanity-hsm
test_24a().

Signed-off-by: John L. Hammond <john.hammond@intel.com>
Change-Id: I982dfd49cbb7d6f9cd7d569e834e4e0581e4bdc9
Reviewed-on: http://review.whamcloud.com/19441
Tested-by: Jenkins
Reviewed-by: Bob Glossman <bob.glossman@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Faccini Bruno <bruno.faccini@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/tests/sanity-hsm.sh
lustre/utils/liblustreapi_hsm.c