http://oss.sgi.com/bugzilla/show_bug.cgi?id=851
Summary: Assertion failed: ip->i_d.di_nextents == 0, file:
fs/xfs/xfs_inode.c, line: 2155
Product: XFS
Version: unspecified
Platform: All
OS/Version: Linux
Status: NEW
Severity: major
Priority: P5
Component: XFS kernel code
AssignedTo: xfs-masters@xxxxxxxxxxx
ReportedBy: tobias@xxxxxxxxxxxxxxx
Estimated Hours: 0.0
Classification: Unclassified
The filesystem that caused this crash is the same as in bug #850 .
When trying to recover some data of a crashed xfs system I ran into this error
on 2.6.30 as well as 2.6.31.1
XFS is configured as :
CONFIG_XFS_FS=y
CONFIG_XFS_QUOTA=y
CONFIG_XFS_POSIX_ACL=y
CONFIG_XFS_RT=y
CONFIG_XFS_DEBUG=y
CONFIG_VXFS_FS=m
This is after using the following patch :
--- fs/xfs/xfs_dir2_leaf.c 2009-08-16 10:27:36.000000000 +1200
+++ fs/xfs/xfs_dir2_leaf.c.new 2009-09-24 09:12:57.000000000 +1200
@@ -854,6 +854,7 @@
*/
ra_want = howmany(bufsize + mp->m_dirblksize,
mp->m_sb.sb_blocksize) - 1;
+ ASSERT(ra_want >= 0);
/*
* If we don't have as many as we want, and we haven't
@@ -1088,8 +1089,12 @@
*/
ptr += length;
curoff += length;
- bufsize -= length;
- }
+ /* bufsize may have just been a guess; don't go negative */
+ if (bufsize >= length)
+ bufsize -= length;
+ else
+ bufsize = 0;
+ }
/*
* All done. Set output offset value to current offset.
--
Here the dmesg output .
XFS mounting filesystem loop0
Starting XFS recovery on filesystem: loop0 (logdev: internal)
Assertion failed: ip->i_d.di_nextents == 0, file: fs/xfs/xfs_inode.c, line:
2155
------------[ cut here ]------------
kernel BUG at fs/xfs/support/debug.c:109!
invalid opcode: 0000 [#1] PREEMPT SMP
last sysfs file:
/sys/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/block/sda/sda3/uevent
Modules linked in: iptable_filter ip_tables x_tables binfmt_misc vboxdrv ipv6
af_packet aes_i586 fuse sbs sbshc pci_slot snd_hda_codec_analog snd_hda_intel
snd_hda_codec usbhid btusb snd_hwdep bluetooth snd_pcm rfkill i915 snd_timer
drm_kms_helper snd ppdev firewire_ohci firewire_core crc_itu_t parport_pc
joydev pcmcia hp_accel lis3lv02d tg3 psmouse drm ohci1394 yenta_socket ieee1394
tpm_infineon serio_raw rsrc_nonstatic intel_agp tpm uhci_hcd parport evdev
pcspkr pcmcia_core agpgart tpm_bios ehci_hcd input_polldev i2c_algo_bit
rtc_cmos rtc_core rtc_lib soundcore sg wmi snd_page_alloc video output lib80211
fan ac battery button processor thermal container
Pid: 18393, comm: mount Not tainted (2.6.31_yos-65 #1) HP Compaq 6710b
EIP: 0060:[<c126131b>] EFLAGS: 00010296 CPU: 1
EIP is at assfail+0x1b/0x20
EAX: 00000054 EBX: f44b4840 ECX: 00000003 EDX: 00000001
ESI: f4c5bd48 EDI: c430f000 EBP: f4c5bd48 ESP: f4c5bce8
DS: 007b ES: 007b FS: 00d8 GS: 0033 SS: 0068
Process mount (pid: 18393, ti=f4c5a000 task=c3e72480 task.ti=f4c5a000)
Stack:
c165ab78 c163ab78 c163a6db 0000086b c1232ae6 f44b4840 c3b2b400 c4599000
<0> c4599000 f44b4840 00000005 c430f000 c124c788 f44b4840 f4c5bd48 c3b2b400
<0> c430f000 c124ff7d 00000000 00000004 00000002 f44b4aac 00000007 f44b48ec
Call Trace:
[<c1232ae6>] ? xfs_ifree+0x86/0x210
[<c124c788>] ? xfs_trans_ijoin+0xd8/0x120
[<c124ff7d>] ? xfs_inactive+0x30d/0x570
[<c10a7a49>] ? clear_inode+0x59/0xe0
[<c10a7d78>] ? generic_delete_inode+0x118/0x140
[<c10a6ff4>] ? iput+0x44/0x50
[<c1240a89>] ? xlog_recover_process_one_iunlink+0x149/0x170
[<c1240b32>] ? xlog_recover_process_iunlinks+0x82/0x110
[<c1240c59>] ? xlog_recover_finish+0x99/0xf0
[<c124644a>] ? xfs_mountfs+0x55a/0x780
[<c1253d25>] ? kmem_zalloc+0x15/0x50
[<c1246ed3>] ? xfs_mru_cache_create+0xf3/0x130
[<c125fba2>] ? xfs_fs_fill_super+0x1c2/0x2d0
[<c10976ec>] ? get_sb_bdev+0x11c/0x150
[<c1092b4e>] ? pcpu_alloc+0x1ce/0x1f0
[<c125dbc0>] ? xfs_fs_get_sb+0x20/0x30
[<c125f9e0>] ? xfs_fs_fill_super+0x0/0x2d0
[<c1096e45>] ? vfs_kern_mount+0x65/0x120
[<c1096f5d>] ? do_kern_mount+0x3d/0x90
[<c10ac706>] ? do_new_mount+0x86/0xc0
[<c10aca59>] ? do_mount+0x1f9/0x220
[<c10acaf2>] ? sys_mount+0x72/0xb0
[<c1002ec4>] ? sysenter_do_call+0x12/0x26
Code: 00 e8 5a f9 0a 00 83 c4 14 c3 8d b6 00 00 00 00 83 ec 10 89 4c 24 0c 89
54 24 08 89 44 24 04 c7 04 24 78 ab 65 c1 e8 e5 20 dd ff <0f> 0b eb fe 90 55 57
89 cf 56 89 c6 53 b8 40 0d 82 c1 83 ec 0c
EIP: [<c126131b>] assfail+0x1b/0x20 SS:ESP 0068:f4c5bce8
---[ end trace 9fdfbb3d24581a78 ]---
--
Configure bugmail: http://oss.sgi.com/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
|