[OpenAFS-devel] files open with O_SYNC

Pavel Semerad semerad@ss1000.ms.mff.cuni.cz
Wed, 19 Dec 2001 14:58:17 +0100


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