[prev in list] [next in list] [prev in thread] [next in thread]
List: git
Subject: Re: [PATCH] Add a new lstat implementation based on Win32 API, and
From: Johannes Sixt <j.sixt () eudaptics ! com>
Date: 2007-09-03 7:47:42
Message-ID: 46DBBC1E.4010407 () eudaptics ! com
[Download RAW message or body]
Marius Storm-Olsen schrieb:
> This gives us a significant speedup when adding, committing and stat'ing files.
> (Also, since Windows doesn't really handle symlinks, it's fine that stat just uses lstat)
Unfortunately, the patch fails t0010-racy-git.sh. I suspect the filetime
conversion:
> -int lstat(const char *file_name, struct stat *buf)
> +static inline time_t filetime_to_time_t(const FILETIME *ft)
> +{
> + long long winTime = ((long long)ft->dwHighDateTime << 32) + ft->dwLowDateTime;
> + winTime -= 116444736000000000LL; /* Windows to Unix Epoch conversion */
> + winTime /= 10000000; /* Nano to seconds resolution */
Shouldn't this be 1000000000 according to your comment? However, even if
I make that change, the test still fails. Could you please look into this?
> + return (time_t)winTime;
> +}
-- Hannes
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic