As the ocfs2 home page suggests, when building 1.2.x against mainline
2.6.14 and above, specify GENERIC_DELETE_INODE_NOT_TRUNCATES=1.
Peter Larsen wrote:> I'm running 1.2.2 here - compiled from source, and while I can read
> files, trying to delete a file on my OCFS2 volume produces the following:
>
> [root@ora02 orcl]# rm testing
> rm: remove regular file `testing'? yes
> Segmentation fault
> [root@ora02 orcl]#
> Message from syslogd@ora02 at Tue Oct 24 18:45:17 2006 ...
> ora02 kernel: [17180140.004000] ------------[ cut here ]------------
>
> Message from syslogd@ora02 at Tue Oct 24 18:45:17 2006 ...
> ora02 kernel: [17180140.004000] kernel BUG at fs/inode.c:253!
>
> Message from syslogd@ora02 at Tue Oct 24 18:45:17 2006 ...
> ora02 kernel: [17180140.004000] invalid opcode: 0000 [#1]
>
> Message from syslogd@ora02 at Tue Oct 24 18:45:17 2006 ...
> ora02 kernel: [17180140.004000] CPU: 0
>
> Message from syslogd@ora02 at Tue Oct 24 18:45:17 2006 ...
> ora02 kernel: [17180140.004000] EIP is at clear_inode+0x27/0x142
>
> Message from syslogd@ora02 at Tue Oct 24 18:45:17 2006 ...
> ora02 kernel: [17180140.004000] eax: 000009c4 ebx: f5b56bdc ecx:
> 00000000 edx: f5b56d28
>
> Message from syslogd@ora02 at Tue Oct 24 18:45:17 2006 ...
> ora02 kernel: [17180140.004000] esi: fc6d115b edi: f5b56bdc ebp:
> f5ac2f58 esp: f5ac2ebc
>
> Message from syslogd@ora02 at Tue Oct 24 18:45:17 2006 ...
> ora02 kernel: [17180140.004000] ds: 007b es: 007b ss: 0068
>
> Message from syslogd@ora02 at Tue Oct 24 18:45:17 2006 ...
> ora02 kernel: [17180140.004000] Process rm (pid: 5583,
> threadinfo=f5ac2000 task=f77eaab0)
>
> Message from syslogd@ora02 at Tue Oct 24 18:45:17 2006 ...
> ora02 kernel: [17180140.004000] Stack: <0>fc6d115b f5b56bdc fc6d115b
> fc6d11a5 00000001 00000000 00000000 00000000
>
> Message from syslogd@ora02 at Tue Oct 24 18:45:17 2006 ...
> ora02 kernel: [17180140.004000] f1eb9240 00200246 f5b56bdc
> 00000001 f58f8c9c 00000000 00000000 ffffffff
>
> Message from syslogd@ora02 at Tue Oct 24 18:45:17 2006 ...
> ora02 kernel: [17180140.004000] ffffffff f5b56bdc fc6d115b
> c016ea67 f5b56bdc f5b56980 fc6d269d f228a6b8
>
> Message from syslogd@ora02 at Tue Oct 24 18:45:17 2006 ...
> ora02 kernel: [17180140.004000] Call Trace:
>
> Message from syslogd@ora02 at Tue Oct 24 18:45:17 2006 ...
> ora02 kernel: [17180140.004000] [<fc6d115b>]
> ocfs2_delete_inode+0x0/0x56b [ocfs2]
>
> Message from syslogd@ora02 at Tue Oct 24 18:45:17 2006 ...
> ora02 kernel: [17180140.004000] [<fc6d115b>]
> ocfs2_delete_inode+0x0/0x56b [ocfs2]
>
> Message from syslogd@ora02 at Tue Oct 24 18:45:17 2006 ...
> ora02 kernel: [17180140.004000] [<fc6d11a5>]
> ocfs2_delete_inode+0x4a/0x56b [ocfs2]
>
> Message from syslogd@ora02 at Tue Oct 24 18:45:17 2006 ...
> ora02 kernel: [17180140.004000] [<fc6d115b>]
> ocfs2_delete_inode+0x0/0x56b [ocfs2]
>
> Message from syslogd@ora02 at Tue Oct 24 18:45:17 2006 ...
> ora02 kernel: [17180140.004000] [<c016ea67>]
> generic_delete_inode+0x9e/0x13d
>
> Message from syslogd@ora02 at Tue Oct 24 18:45:17 2006 ...
> ora02 kernel: [17180140.004000] [<fc6d269d>]
> ocfs2_drop_inode+0x5d/0x195 [ocfs2]
>
> Message from syslogd@ora02 at Tue Oct 24 18:45:17 2006 ...
> ora02 kernel: [17180140.004000] [<c0306f0b>]
> __mutex_unlock_slowpath+0x93/0x200
>
> Message from syslogd@ora02 at Tue Oct 24 18:45:17 2006 ...
> ora02 kernel: [17180140.004000] [<c01c87b1>]
> _atomic_dec_and_lock+0xd/0x3c
>
> Message from syslogd@ora02 at Tue Oct 24 18:45:17 2006 ...
> ora02 kernel: [17180140.004000] [<c016ecae>] iput+0x53/0x67
>
> Message from syslogd@ora02 at Tue Oct 24 18:45:17 2006 ...
> ora02 kernel: [17180140.004000] [<c0165dca>] do_unlinkat+0xba/0xf6
>
> Message from syslogd@ora02 at Tue Oct 24 18:45:17 2006 ...
> ora02 kernel: [17180140.004000] [<c01041de>] do_IRQ+0x53/0x85
>
> Message from syslogd@ora02 at Tue Oct 24 18:45:17 2006 ...
> ora02 kernel: [17180140.004000] [<c0156434>] filp_close+0x33/0x60
>
> Message from syslogd@ora02 at Tue Oct 24 18:45:17 2006 ...
> ora02 kernel: [17180140.004000] [<c0102c03>]
sysenter_past_esp+0x54/0x75
>
> Message from syslogd@ora02 at Tue Oct 24 18:45:17 2006 ...
> ora02 kernel: [17180140.004000] Code: c0 01 5b c3 56 ba f9 00 00 00 53
> 89 c3 b8 cf 41 32 c0 83 ec 04 e8 21 99 fa ff 89 d8 e8 50 ad fe ff 8b 83
> 28 01 00 00 85 c0 74 08 <0f> 0b fd 00 cf 41 32 c0 8b 83 ac 01 00 00
a8
> 10 75 08 0f 0b ff
>
> This is the module information:
> [root@ora02 orcl]# modinfo ocfs2
> filename: /lib/modules/2.6.16.9/extra/ocfs2/ocfs2.ko
> author: Oracle
> license: GPL
> description: OCFS2 1.2.2 Tue Jul 4 22:18:34 EDT 2006 (build
> 89ef9a0a0785d11d426e7842446d505b)
> version: 1.2.2
> vermagic: 2.6.16.9 PENTIUM4 REGPARM 4KSTACKS gcc-3.4
> depends: ocfs2_nodemanager,ocfs2_dlm,jbd
> srcversion: E4F740AE9E8176169DAB864
>
> I see a 1.2.3 version has been released, and I'll try to see if that
> makes any difference. But in the mean time, is this a known issue?
>
> Btw. I have not recieved any messages on this list for a long time.
>
> Regards
> Peter Larsen
>
>
>
> _______________________________________________
> Ocfs2-users mailing list
> Ocfs2-users@oss.oracle.com
> http://oss.oracle.com/mailman/listinfo/ocfs2-users