]> xenbits.xensource.com Git - xen.git/commit
libvhd: use UTC for VHD timestamp
authorWei Liu <wei.liu2@citrix.com>
Fri, 30 Aug 2013 11:33:33 +0000 (12:33 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Tue, 3 Sep 2013 16:00:31 +0000 (17:00 +0100)
commit3fc8cabb8ab704324b4739b6772fcaaa69bbc3b9
treecf2424982e151b8b7de57291f9e9d04d126cfccc
parent0166217103e18368424fbd5ffff01c1ea50d0b17
libvhd: use UTC for VHD timestamp

[ported from xapi-project/blktap a79ac2c05f9 ("XOP-289: use UTC for VHD
timestamps")]

Currently, the local timezone is factored into VHD timestamps due to the
use of mktime(). This breaks "vhd-util check" for VHDs created in one
timezone and then moved westward, which results in "primary footer
invalid: creation time in future" errors.

Signed-off-by: Andrei Lifchits <andrei.lifchits@citrix.com>
Andrei no longer works for Citrix but Germano Percossi (ex-colleague of
Andrei) contacted Andrei and confirmed that
  1) this work was written on Citrix time,
  2) it is OK to have Andrei's SoB.

Remove unused variable "tm".

Signed-off-by: Germano Percossi <germano.percossi@citrix.com>
Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/blktap2/vhd/lib/libvhd.c