OSDN Git Service

acp: Ensure dst mtime always greater or equal to src mtime
authorKan-Ru Chen <kanru@0xlab.org>
Mon, 5 Jul 2010 09:04:37 +0000 (17:04 +0800)
committerKan-Ru Chen <kanru@0xlab.org>
Mon, 5 Jul 2010 09:43:51 +0000 (17:43 +0800)
commita67bc11058f47eeba1f8bb30173c73ec0af8fcce
tree651a77ce21c3ede98aa8978fa6aeebae2ebe3e6d
parent45038e062dc20c4684b293875841b9e638d2df5c
acp: Ensure dst mtime always greater or equal to src mtime

When copying files from file systems that support high resolution
mtime, we should not truncating the nsec part. Instead we should
increase the dst mtime by one sec to prevent dst mtime to become less
than src mtime.

Change-Id: I5cab1edd4b9783ec0e3ceb04ed833d8bbba00b19
libs/host/CopyFile.c