Re: git 1.5.3.5 error over NFS

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Alex Riesen
Date: Monday, November 12, 2007 - 4:33 pm

This is the almost same message I cced to lk and nfs, but with
Git-interasting parts added.

Bill Lear, Mon, Nov 12, 2007 16:39:15 +0100:

It is a really old kernel... Maybe you could try with some of the
recent ones?


Yes, this is the file.

I extend the part you quoted. The file is opened here:

open(".git/objects/pack_awOTNW", O_RDWR|O_CREAT|O_EXCL, 0600) = 3
write(3, "PACK\0\0\0\2\0\0\3r", 12)     = 12
... lots of data. Counted writes: 488538...
write(3, "v\351\247V\325\362\327/\240\265\211\211\322,\261\210\301"..., 4096) = 4096
write(3, "\202\202g\232Bf\211Bf\261Bb\36X\22\4\364\365\25\22\223"..., 1114) = 1114
write(3, "M", 1)                        = 1


That's the problem.

"Git-interesting parts"


This is strange. The current git should not produce anything like
this (and does not, here). The code in question is:

	do {
		ssize_t n = pread(pack_fd, data + rdy, len - rdy, from + rdy);
		if (n <= 0)
			die("cannot pread pack file: %s", strerror(errno));
		rdy += n;
	} while (rdy < len);

Either your strace or that kernel seem to have clobbered errno, too.


Interesing. What in git index-pack can read mtab and what for?
Is it vanilla Git or have you instrumented it somehow?


Is it your strace?
Do you have anything unusual in syslog?

BTW, you could try defining NO_PREAD in config.mak, and see if it
works the problem around for you.


-
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:
git 1.5.3.5 error over NFS, Bill Lear, (Fri Nov 9, 8:31 am)
Re: git 1.5.3.5 error over NFS, Alex Riesen, (Fri Nov 9, 4:21 pm)
Re: git 1.5.3.5 error over NFS, Bill Lear, (Mon Nov 12, 8:39 am)
Re: git 1.5.3.5 error over NFS, Alex Riesen, (Mon Nov 12, 4:31 pm)
Re: git 1.5.3.5 error over NFS, Alex Riesen, (Mon Nov 12, 4:33 pm)
Re: git 1.5.3.5 error over NFS, Bill Lear, (Tue Nov 13, 7:49 am)
Re: git 1.5.3.5 error over NFS (pack data corruption), Alex Riesen, (Tue Nov 13, 2:48 pm)
Re: git 1.5.3.5 error over NFS (pack data corruption), Alex Riesen, (Tue Nov 13, 5:02 pm)
Re: git 1.5.3.5 error over NFS (pack data corruption), Nicolas Pitre, (Tue Nov 13, 6:28 pm)
Re: git 1.5.3.5 error over NFS (pack data corruption), Junio C Hamano, (Tue Nov 13, 6:32 pm)
Re: git 1.5.3.5 error over NFS, Nicolas Pitre, (Tue Nov 13, 6:38 pm)
Re: git 1.5.3.5 error over NFS (pack data corruption), Alex Riesen, (Wed Nov 14, 12:54 pm)