Skip to contentSkip to conversation

O_DIRECT

DISCUSSION Stephen C. Tweedie 2 participants 2 messages Jun 27, 2003 2 messages not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

#2 lore raw

Hi Alan,

Quoted 4 lines · Stephen C. Tweedie
Quoted 3 lines · Alan Cox

So its now confirmed with 3 distros, two file systems and several compilers. It certainly seems to be the O_DIRECT patches but I'll pull the back out for the next -ac and check I guess

Ouch ouch ouch, there's nasty merge conflict between the O_DIRECT patch and an existing 64-bit rlimit chunk in -ac3. You really, really want the change below. :-) Marcelo's tree appears OK, and this is a common code path for all filesystems in -ac, so it matches the failure patterns that far.

Cheers,
Stephen

filemap.c renamed from filemap.c.~1~ +2 -2
@@ -2995,8 +2995,8 @@
 		}
 		/* Fix this up when we got to rlimit64 */
 		if (pos > 0xFFFFFFFFULL)
-			count = 0;
-		else if(count > limit - (u32)pos) {
+			*count = 0;
+		else if(*count > limit - (u32)pos) {
 			/* send_sig(SIGXFSZ, current, 0); */
 			*count = limit - (u32)pos;
 		}
#3 lore raw
Quoted 5 lines

Ouch ouch ouch, there's nasty merge conflict between the O_DIRECT patch and an existing 64-bit rlimit chunk in -ac3. You really, really want the change below. :-) Marcelo's tree appears OK, and this is a common code path for all filesystems in -ac, so it matches the failure patterns that far.

Ouch indeed - ok thats good, that means its not the O_DIRECT stuff. Thanks for figuring it out