Here is another problem I got, maybe related to previous one (it also
involves renaming and reiserfs).
This happened on a different machine with SuSE 2.6.13-15.8-default and
unionfs 1.1.4
May 2 15:42:37 powerbuild kernel: ------------[ cut here ]------------
May 2 15:42:37 powerbuild kernel: kernel BUG at fs/reiserfs/prints.c:362!
May 2 15:42:37 powerbuild kernel: invalid operand: 0000 [#1]
May 2 15:42:37 powerbuild kernel: SMP
May 2 15:42:37 powerbuild kernel: Modules linked in: unionfs hfsplus
vfat fat subfs ipv6 button edd tg3 i2c_i801 i2c_core ehci_hcd generic
uhci_hcd usbcore intel_agp agpgart parport_pc lp parport dm_mod fan
thermal processor sg ata_piix libata ide_cd cdrom piix sd_mod scsi_mod
ide_disk ide_core
May 2 15:42:37 powerbuild kernel: CPU: 0
May 2 15:42:37 powerbuild kernel: EIP: 0060:[<c01acb40>]
Tainted: GF U VLI
May 2 15:42:37 powerbuild kernel: EFLAGS: 00010296 (2.6.13-15.8-default)
May 2 15:42:37 powerbuild kernel: EIP is at reiserfs_panic+0x45/0x6a
May 2 15:42:37 powerbuild kernel: eax: 00000067 ebx: c032b92b
ecx: c0368e10 edx: 00000286
May 2 15:42:37 powerbuild kernel: esi: 00000000 edi: 00000158
ebp: d2cfdd24 esp: d2cfdad8
May 2 15:42:37 powerbuild kernel: ds: 007b es: 007b ss: 0068
May 2 15:42:37 powerbuild kernel: Process mcedit (pid: 24883,
threadinfo=d2cfc000 task=f34eba40)
May 2 15:42:37 powerbuild kernel: Stack: c0330da4 c032b92b c045fcc0
d2cfdb00 d2cfdb8c f0eb1c68 d2cfdb8c c019c49e
May 2 15:42:37 powerbuild kernel: 00000000 c032f55c d2cfdd3c
e7f4b07c c019c7bb f0eb1c68 d2cfdb8c 00000000
May 2 15:42:37 powerbuild kernel: 00000069 00000000 c1e8e000
eed20598 dbd39398 eed20598 00008000 f0eb1c68
May 2 15:42:37 powerbuild kernel: Call Trace:
May 2 15:42:37 powerbuild kernel: [<c019c49e>] set_ino_in_dir_entry+0x0/0x24
May 2 15:42:37 powerbuild kernel: [<c019c7bb>] reiserfs_rename+0x2f9/0x945
May 2 15:42:37 powerbuild kernel: [<c015bf70>] __find_get_block+0xe0/0x11f
May 2 15:42:37 powerbuild kernel: [<f911097a>]
.text.lock.print+0x43/0x55 [unionfs]
May 2 15:42:37 powerbuild kernel: [<c0168bbf>] vfs_rename_other+0x73/0xa5
May 2 15:42:37 powerbuild kernel: [<c0169024>] vfs_rename+0x433/0x461
May 2 15:42:37 powerbuild kernel: [<f910e3da>]
fist_dprint_internal+0xe/0x6a [unionfs]
May 2 15:42:37 powerbuild kernel: [<c016e997>] dput+0x1e2/0x1f2
May 2 15:42:37 powerbuild kernel: [<f90f90e9>]
do_rename+0x1299/0x164d [unionfs]
May 2 15:42:37 powerbuild kernel: [<f90f97e3>]
unionfs_rename_whiteout+0x346/0x2a0c [unionfs]
May 2 15:42:37 powerbuild kernel: [<c016e89f>] dput+0xea/0x1f2
May 2 15:42:37 powerbuild kernel: [<f90fcc92>]
unionfs_rename+0x424/0x4fe [unionfs]
May 2 15:42:37 powerbuild kernel: [<c0168bbf>] vfs_rename_other+0x73/0xa5
May 2 15:42:37 powerbuild kernel: [<c0169024>] vfs_rename+0x433/0x461
May 2 15:42:37 powerbuild kernel: [<c016721f>] __lookup_hash+0x48/0x8f
May 2 15:42:37 powerbuild kernel: [<c01691dd>] sys_rename+0x18b/0x1b8
May 2 15:42:37 powerbuild kernel: [<c014d902>] unmap_region+0x138/0x147
May 2 15:42:37 powerbuild kernel: [<c014bfd1>] remove_vm_struct+0x53/0x63
May 2 15:42:37 powerbuild kernel: [<c014dbbb>] sys_munmap+0x39/0x55
May 2 15:42:37 powerbuild kernel: [<c0102ae9>] syscall_call+0x7/0xb
May 2 15:42:37 powerbuild kernel: Code: ff 8d be 58 01 00 00 bb 2b b9
32 c0 85 f6 89 d8 0f 45 c7 c7 44 24 08 c0 fc 45 c0 89 44 24 04 c7 04
24 a4 0d 33 c0 e8 6d ea f6 ff <0f> 0b 6a 01 ef bc 32 c0 85 f6 0f 45 df
c7 44 24 08 c0 fc 45 c0
May 2 15:42:37 powerbuild kernel: Badness in do_exit at kernel/exit.c:790
May 2 15:42:37 powerbuild kernel: [<c011da50>] do_exit+0x3c5/0x3ca
May 2 15:42:37 powerbuild kernel: [<c0103e2e>] do_trap+0x0/0xb4
May 2 15:42:37 powerbuild kernel: [<c01040e6>] do_invalid_op+0x0/0xab
May 2 15:42:37 powerbuild kernel: [<c0104188>] do_invalid_op+0xa2/0xab
May 2 15:42:37 powerbuild kernel: [<c01acb40>] reiserfs_panic+0x45/0x6a
May 2 15:42:37 powerbuild kernel: [<c011758c>] __wake_up+0x32/0x43
May 2 15:42:37 powerbuild kernel: [<c011b975>] release_console_sem+0xac/0xb4
May 2 15:42:37 powerbuild kernel: [<c011b7f8>] vprintk+0x22c/0x28c
May 2 15:42:37 powerbuild kernel: [<c010367f>] error_code+0x4f/0x54
May 2 15:42:37 powerbuild kernel: [<c01acb40>] reiserfs_panic+0x45/0x6a
May 2 15:42:37 powerbuild kernel: [<c019c49e>] set_ino_in_dir_entry+0x0/0x24
May 2 15:42:37 powerbuild kernel: [<c019c7bb>] reiserfs_rename+0x2f9/0x945
May 2 15:42:37 powerbuild kernel: [<c015bf70>] __find_get_block+0xe0/0x11f
May 2 15:42:37 powerbuild kernel: [<f911097a>]
.text.lock.print+0x43/0x55 [unionfs]
May 2 15:42:37 powerbuild kernel: [<c0168bbf>] vfs_rename_other+0x73/0xa5
May 2 15:42:37 powerbuild kernel: [<c0169024>] vfs_rename+0x433/0x461
May 2 15:42:37 powerbuild kernel: [<f910e3da>]
fist_dprint_internal+0xe/0x6a [unionfs]
May 2 15:42:37 powerbuild kernel: [<c016e997>] dput+0x1e2/0x1f2
May 2 15:42:37 powerbuild kernel: [<f90f90e9>]
do_rename+0x1299/0x164d [unionfs]
May 2 15:42:37 powerbuild kernel: [<f90f97e3>]
unionfs_rename_whiteout+0x346/0x2a0c [unionfs]
May 2 15:42:37 powerbuild kernel: [<c016e89f>] dput+0xea/0x1f2
May 2 15:42:37 powerbuild kernel: [<f90fcc92>]
unionfs_rename+0x424/0x4fe [unionfs]
May 2 15:42:37 powerbuild kernel: [<c0168bbf>] vfs_rename_other+0x73/0xa5
May 2 15:42:37 powerbuild kernel: [<c0169024>] vfs_rename+0x433/0x461
May 2 15:42:37 powerbuild kernel: [<c016721f>] __lookup_hash+0x48/0x8f
May 2 15:42:37 powerbuild kernel: [<c01691dd>] sys_rename+0x18b/0x1b8
May 2 15:42:37 powerbuild kernel: [<c014d902>] unmap_region+0x138/0x147
May 2 15:42:37 powerbuild kernel: [<c014bfd1>] remove_vm_struct+0x53/0x63
May 2 15:42:37 powerbuild kernel: [<c014dbbb>] sys_munmap+0x39/0x55
May 2 15:42:37 powerbuild kernel: [<c0102ae9>] syscall_call+0x7/0xb
Valentin Zagura
On 5/1/06, Valentin Zagura <[EMAIL PROTECTED]> wrote:
Hello,
I am trying to create a gentoo system into a chroot unionfs filesystem.
I have the following configuration:
Latest unionfs snapshot from ftp:20060423-1600
localhost ~ # uname -a
Linux localhost 2.6.16-gentoo-r4 #1 SMP Sun Apr 30 04:46:31 EEST 2006
i686 AMD Athlon(tm) XP 2200+ AuthenticAMD GNU/Linux
level1 folder which contains the gentoo stage2 and portage snapshot (RO)
level2 folder on top of it (RW)
mount -t unionfs -o dirs=${LEVEL2PATH}:${LEVEL1PATH}=ro: unionfs ${IMAGE}
Both level1 and level2 are on reiserfs.
The first problem I encountered is a infinite loop in the kernel modules.
It only happened after emerging gcc, when it tried to strip the executables.
When this happened any ls in the executables path both in mounted
image or even in
level2 would freeze.
Here are some consecutive sysrq showRegs output:
i686-pc-linux-g is in fact i686-pc-linux-gnu-strip
----------------------------------------------------------------------------
Apr 30 19:48:30 localhost Pid: 12312, comm: i686-pc-linux-g
Apr 30 19:48:30 localhost EIP: 0060:[<c0154e11>] CPU: 0
Apr 30 19:48:30 localhost EIP is at lookup_bh_lru+0x80/0x86
Apr 30 19:48:30 localhost EFLAGS: 00000206 Tainted: P
(2.6.16-gentoo-r4 #1)
Apr 30 19:48:30 localhost EAX: dfad447c EBX: 00000000 ECX: dfad447c
EDX: 00000000
Apr 30 19:48:30 localhost ESI: c1407280 EDI: 00470233 EBP: 00000000
DS: 007b ES: 007b
Apr 30 19:48:30 localhost CR0: 8005003b CR2: 080e7e3c CR3: 120d9000
CR4: 000006d0
Apr 30 19:48:30 localhost [<c0154e33>] __find_get_block+0x1c/0x4c
Apr 30 19:48:30 localhost [<c0154e80>] __getblk+0x1d/0x35
Apr 30 19:48:30 localhost [<c019f9a2>] search_by_key+0x73/0xac8
Apr 30 19:48:30 localhost [<c0104eef>] do_IRQ+0x4b/0x54
Apr 30 19:48:30 localhost [<c010377a>] common_interrupt+0x1a/0x20
Apr 30 19:48:30 localhost [<c018b778>] reiserfs_match+0x1e/0x47
Apr 30 19:48:30 localhost [<c018d179>] de_still_valid+0xaf/0xc7
Apr 30 19:48:30 localhost [<c018b5ac>] search_by_entry_key+0x1e/0x17a
Apr 30 19:48:30 localhost [<c018d52d>] reiserfs_rename+0x301/0x8fa
Apr 30 19:48:30 localhost [<c01a81ed>] reiserfs_resize+0x139/0x60c
Apr 30 19:48:30 localhost [<c0154e33>] __find_get_block+0x1c/0x4c
Apr 30 19:48:30 localhost [<c0154e5c>] __find_get_block+0x45/0x4c
Apr 30 19:48:30 localhost [<e20662db>] fist_dprint_internal+0xb/0x60 [unionfs]
Apr 30 19:48:30 localhost [<e20662db>] fist_dprint_internal+0xb/0x60 [unionfs]
Apr 30 19:48:30 localhost [<c0160b44>] vfs_rename_other+0x54/0x93
Apr 30 19:48:30 localhost [<c0160ccd>] vfs_rename+0x14a/0x246
Apr 30 19:48:30 localhost [<e20540a7>] do_rename+0xb07/0x1280 [unionfs]
Apr 30 19:48:30 localhost [<e2054c23>]
unionfs_rename_whiteout+0x403/0x20f0 [unionfs]
Apr 30 19:48:30 localhost [<e20572d4>] unionfs_rename+0x1a4/0x48f [unionfs]
Apr 30 19:48:30 localhost [<c0160b44>] vfs_rename_other+0x54/0x93
Apr 30 19:48:30 localhost [<c0160ccd>] vfs_rename+0x14a/0x246
Apr 30 19:48:30 localhost [<c015f397>] __lookup_hash+0x49/0x90
Apr 30 19:48:30 localhost [<c0160ef3>] do_rename+0x12a/0x16c
Apr 30 19:48:30 localhost [<c015dc3b>] do_getname+0x3f/0x5a
Apr 30 19:48:30 localhost [<c0160f70>] sys_renameat+0x3b/0x53
Apr 30 19:48:30 localhost [<c0160f99>] sys_rename+0x11/0x15
Apr 30 19:48:30 localhost [<c01026bb>] sysenter_past_esp+0x54/0x79
Apr 30 19:50:21 localhost SysRq : Show Regs
Apr 30 19:50:21 localhost
Apr 30 19:50:21 localhost Pid: 12312, comm: i686-pc-linux-g
Apr 30 19:50:21 localhost EIP: 0060:[<c019f836>] CPU: 0
Apr 30 19:50:21 localhost EIP is at is_internal+0x3f/0x7b
Apr 30 19:50:21 localhost EFLAGS: 00000212 Tainted: P
(2.6.16-gentoo-r4 #1)
Apr 30 19:50:21 localhost EAX: 000000a9 EBX: 00001000 ECX: 000000a0
EDX: 00000008
Apr 30 19:50:21 localhost ESI: cfde0000 EDI: ca1cd1a4 EBP: 00000018
DS: 007b ES: 007b
Apr 30 19:50:21 localhost CR0: 8005003b CR2: 080e7e3c CR3: 120d9000
CR4: 000006d0
Apr 30 19:50:21 localhost [<c019f8b6>] is_tree_node+0x44/0x49
Apr 30 19:50:21 localhost [<c01a000f>] search_by_key+0x6e0/0xac8
Apr 30 19:50:21 localhost [<c019f8aa>] is_tree_node+0x38/0x49
Apr 30 19:50:21 localhost [<c01a000f>] search_by_key+0x6e0/0xac8
Apr 30 19:50:21 localhost [<c010377a>] common_interrupt+0x1a/0x20
Apr 30 19:50:21 localhost [<c018b778>] reiserfs_match+0x1e/0x47
Apr 30 19:50:21 localhost [<c018b5ac>] search_by_entry_key+0x1e/0x17a
Apr 30 19:50:21 localhost [<c018ba36>] reiserfs_find_entry+0x95/0xf7
Apr 30 19:50:21 localhost [<c018d5af>] reiserfs_rename+0x383/0x8fa
Apr 30 19:50:21 localhost [<c01a81ed>] reiserfs_resize+0x139/0x60c
Apr 30 19:50:21 localhost [<c0154e33>] __find_get_block+0x1c/0x4c
Apr 30 19:50:21 localhost [<c0154e5c>] __find_get_block+0x45/0x4c
Apr 30 19:50:21 localhost [<e20662db>] fist_dprint_internal+0xb/0x60 [unionfs]
Apr 30 19:50:21 localhost [<e20662db>] fist_dprint_internal+0xb/0x60 [unionfs]
Apr 30 19:50:21 localhost [<c0160b44>] vfs_rename_other+0x54/0x93
Apr 30 19:50:21 localhost [<c0160ccd>] vfs_rename+0x14a/0x246
Apr 30 19:50:21 localhost [<e20540a7>] do_rename+0xb07/0x1280 [unionfs]
Apr 30 19:50:21 localhost [<e2054c23>]
unionfs_rename_whiteout+0x403/0x20f0 [unionfs]
Apr 30 19:50:21 localhost [<e20572d4>] unionfs_rename+0x1a4/0x48f [unionfs]
Apr 30 19:50:21 localhost [<c0160b44>] vfs_rename_other+0x54/0x93
Apr 30 19:50:21 localhost [<c0160ccd>] vfs_rename+0x14a/0x246
Apr 30 19:50:21 localhost [<c015f397>] __lookup_hash+0x49/0x90
Apr 30 19:50:21 localhost [<c0160ef3>] do_rename+0x12a/0x16c
Apr 30 19:50:21 localhost [<c015dc3b>] do_getname+0x3f/0x5a
Apr 30 19:50:21 localhost [<c0160f70>] sys_renameat+0x3b/0x53
Apr 30 19:50:21 localhost [<c0160f99>] sys_rename+0x11/0x15
Apr 30 19:50:21 localhost [<c01026bb>] sysenter_past_esp+0x54/0x79
Apr 30 19:55:30 localhost SysRq : Show Regs
Apr 30 19:55:30 localhost
Apr 30 19:55:30 localhost Pid: 12312, comm: i686-pc-linux-g
Apr 30 19:55:30 localhost EIP: 0060:[<c01a030f>] CPU: 0
Apr 30 19:55:30 localhost EIP is at search_by_key+0x9e0/0xac8
Apr 30 19:55:30 localhost EFLAGS: 00000212 Tainted: P
(2.6.16-gentoo-r4 #1)
Apr 30 19:55:30 localhost EAX: 0000009e EBX: 00000002 ECX: 0000013d
EDX: 00000001
Apr 30 19:55:30 localhost ESI: 0000009f EDI: c1d48a40 EBP: cfde09e8
DS: 007b ES: 007b
Apr 30 19:55:30 localhost CR0: 8005003b CR2: 080fd5cc CR3: 120d9000
CR4: 000006d0
Apr 30 19:55:30 localhost [<c019f8aa>] is_tree_node+0x38/0x49
Apr 30 19:55:30 localhost [<c01a000f>] search_by_key+0x6e0/0xac8
Apr 30 19:55:30 localhost [<c0263228>] memcmp+0x17/0x2b
Apr 30 19:55:30 localhost [<c018b778>] reiserfs_match+0x1e/0x47
Apr 30 19:55:30 localhost [<c018b5ac>] search_by_entry_key+0x1e/0x17a
Apr 30 19:55:30 localhost [<c018ba36>] reiserfs_find_entry+0x95/0xf7
Apr 30 19:55:30 localhost [<c018d5af>] reiserfs_rename+0x383/0x8fa
Apr 30 19:55:30 localhost [<c01a81ed>] reiserfs_resize+0x139/0x60c
Apr 30 19:55:30 localhost [<c0154e33>] __find_get_block+0x1c/0x4c
Apr 30 19:55:30 localhost [<c0154e5c>] __find_get_block+0x45/0x4c
Apr 30 19:55:30 localhost [<e20662db>] fist_dprint_internal+0xb/0x60 [unionfs]
Apr 30 19:55:30 localhost [<e20662db>] fist_dprint_internal+0xb/0x60 [unionfs]
Apr 30 19:55:30 localhost [<c0160b44>] vfs_rename_other+0x54/0x93
Apr 30 19:55:30 localhost [<c0160ccd>] vfs_rename+0x14a/0x246
Apr 30 19:55:30 localhost [<e20540a7>] do_rename+0xb07/0x1280 [unionfs]
Apr 30 19:55:30 localhost [<e2054c23>]
unionfs_rename_whiteout+0x403/0x20f0 [unionfs]
Apr 30 19:55:30 localhost [<e20572d4>] unionfs_rename+0x1a4/0x48f [unionfs]
Apr 30 19:55:30 localhost [<c0160b44>] vfs_rename_other+0x54/0x93
Apr 30 19:55:30 localhost [<c0160ccd>] vfs_rename+0x14a/0x246
Apr 30 19:55:30 localhost [<c015f397>] __lookup_hash+0x49/0x90
Apr 30 19:55:30 localhost [<c0160ef3>] do_rename+0x12a/0x16c
Apr 30 19:55:30 localhost [<c015dc3b>] do_getname+0x3f/0x5a
Apr 30 19:55:30 localhost [<c0160f70>] sys_renameat+0x3b/0x53
Apr 30 19:55:30 localhost [<c0160f99>] sys_rename+0x11/0x15
Apr 30 19:55:30 localhost [<c01026bb>] sysenter_past_esp+0x54/0x79
----------------------------------------------------------------------------
When i changed the filesystem from reiserfs to ext3 the problem went away.
The second problem(?) I encountered is that the /tmp folder in level2
gets a lot of .(13000+ and conting) .wh.* files even if in the /tmp
folder in level1 is empty. Is this normal?
Valentin Zagura
_______________________________________________
unionfs mailing list
[email protected]
http://www.fsl.cs.sunysb.edu/mailman/listinfo/unionfs