[OpenAFS-devel] files open with O_SYNC

Derek Atkins warlord@MIT.EDU
19 Dec 2001 11:32:27 -0500


What Linux disitrbution are you using?
Are you using your distribution's kernel or did you grab it from
kernel.org?

-derek

semerad@ss1000.ms.mff.cuni.cz (Pavel Semerad) writes:

> Hi,
> I have problem with files opened with O_SYNC. It causes
> segfault in kernel function fsync_inode_data_buffers(
> i_dirty_data_buffers.next contains NULL, which is wrong).
> 
> Problems are with kernels 2.4.10 and laters, 2.4.9 is OK.
> It seems that changes in memory management causes it (as
> I remember, from 2.4.10 there is another MM). I am using
> openafs cvs version checked out last week.
> 
> Here is code, which causes segfault:
> 
>   fd = open("aaa", O_CREAT|O_WRONLY|O_TRUNC|O_SYNC, 0777);
>   write(fd, "qwerty", 6);
> 
> 
> Any ideas ? I looked at the code, but I found nothing, didn't
> understand it.
> 
>   Pavel Semerad
> _______________________________________________
> OpenAFS-devel mailing list
> OpenAFS-devel@openafs.org
> https://lists.openafs.org/mailman/listinfo/openafs-devel

-- 
       Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
       Member, MIT Student Information Processing Board  (SIPB)
       URL: http://web.mit.edu/warlord/    PP-ASEL-IA     N1NWH
       warlord@MIT.EDU                        PGP key available