login
Header Space

 
 

Re: [PATCH] "sleep 1" sleeps too little on cygwin

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Alex Riesen <raa.lkml@...>
Cc: Johannes Schindelin <Johannes.Schindelin@...>, <git@...>
Date: Wednesday, January 18, 2006 - 9:18 pm

Alex Riesen <raa.lkml@gmail.com> writes:


Hmph.  I thought that breakage was about struct dirent, not what
we read from struct stat; d_ino is XSI extension so that may
have been the reason cygwin folks removed it, but st_ino is in
BASE --- did they remove that as well?

But you are right.  Among "struct stat" members, only S_IFMT
part from st_mode and st_size are meaningful for symlinks after
lstat() and other members are unspecified.  Which means that, in
the strictest sense, the original test that tried to see if the
timestamp change makes the entry for the symlink cache-dirty,
was pointless.

HOWEVER.

We live in the real world, not in a strict POSIX world.  We (the
index file) relies on lstat() to update st_mtime and/or st_ino,
and I think it is OK (IOW, we declare that platforms on which we
cannot rely on these members are not worth supporting).


By the way, if you have an access to git on cygwin with FAT,
could you test your patch ($SECONDS) and then i-num patch (the
machine with cygwin I can borrow has only NTFS) please?

-
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
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH] "sleep 1" sleeps too little on cygwin, Junio C Hamano, (Wed Jan 18, 1:00 pm)
Re: [PATCH] "sleep 1" sleeps too little on cygwin, Alex Riesen, (Wed Jan 18, 2:52 pm)
Re: [PATCH] "sleep 1" sleeps too little on cygwin, Junio C Hamano, (Wed Jan 18, 9:18 pm)
Re: [PATCH] "sleep 1" sleeps too little on cygwin, Alex Riesen, (Thu Jan 19, 11:01 am)
Re: [PATCH] "sleep 1" sleeps too little on cygwin, Christopher Faylor, (Thu Jan 19, 2:28 pm)
Re: [PATCH] "sleep 1" sleeps too little on cygwin, Alex Riesen, (Thu Jan 19, 6:12 pm)
Re: [PATCH] "sleep 1" sleeps too little on cygwin, Christopher Faylor, (Thu Jan 19, 6:25 pm)
Re: [PATCH] "sleep 1" sleeps too little on cygwin, Christopher Faylor, (Thu Jan 19, 1:20 am)
speck-geostationary