login
Header Space

 
 

Re: [PATCH] Don't call fstat() on stdin in index-pack.

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Simon 'corecode' Schubert <corecode@...>
Cc: Bart Trojanowski <bart@...>, <git@...>
Date: Saturday, January 20, 2007 - 11:35 am

On Fri, 19 Jan 2007 04:02:42 +0100 Simon 'corecode' Schubert wrote:


Most likely it is the st_ino field - the kernel assigns unique inode
numbers for pipes from an "unsigned long" counter, which is 64-bit in
this case, and *stat() calls must fail with EOVERFLOW if the inode
number does not fit into ino_t, which is 32-bit here.  This problem is
known for some time, and there is even a kernel patch proposed as a
workaround (which makes the counter 32-bit):

http://permalink.gmane.org/gmane.linux.file-systems/12526

AFAIK, that patch is not upstream yet - so upgrading the kernel did
not really fix the issue, it will appear again once the system will
use more than 4G of pipe inodes.

Compiling git with -D_FILE_OFFSET_BITS=64 will make ino_t 64-bit and
therefore will fix the problem (however, I'm not sure whether the git
code is ready for this).
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
git push problem with v1.5.0-rc1, Bart Trojanowski, (Thu Jan 18, 5:26 pm)
Re: git push problem with v1.5.0-rc1, Bart Trojanowski, (Thu Jan 18, 11:16 pm)
[PATCH] Don't call fstat() on stdin in index-pack., Bart Trojanowski, (Thu Jan 18, 10:44 pm)
Re: [PATCH] Don't call fstat() on stdin in index-pack., Simon 'corecode' Schubert..., (Thu Jan 18, 11:02 pm)
Re: [PATCH] Don't call fstat() on stdin in index-pack., Sergey Vlasov, (Sat Jan 20, 11:35 am)
Re: [PATCH] Don't call fstat() on stdin in index-pack., Simon 'corecode' Schubert..., (Sat Jan 20, 2:00 pm)
speck-geostationary