https://bugzilla.novell.com/show_bug.cgi?id=731736
https://bugzilla.novell.com/show_bug.cgi?id=731736#c1
David Sterba changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|Invalid kernel OpCode with |btrfs: crash during mount
|BTRFS |during log recovery
--- Comment #1 from David Sterba 2011-11-22 17:22:06 CET ---
Pasting some details about the crash (for myself):
1302 static noinline int remove_from_bitmap(struct btrfs_free_space_ctl *ctl,
1303 struct btrfs_free_space *bitmap_info,
1304 u64 *offset, u64 *bytes)
1305 {
1306 u64 end;
1307 u64 search_start, search_bytes;
1308 int ret;
1309
1310 again:
1311 end = bitmap_info->offset + (u64)(BITS_PER_BITMAP * ctl->unit) -
1;
1312
..
1323 search_start = *offset;
1324 search_bytes = *bytes;
1325 search_bytes = min(search_bytes, end - search_start + 1);
1326 ret = search_bitmap(ctl, bitmap_info, &search_start,
&search_bytes);
1327 BUG_ON(ret < 0 || search_start != *offset);
crashsite, kernel is 3.1, I've never seen this being reported.
Stacktrace:
[ 28.400146] [<ffffffffa01e28ff>] btrfs_remove_free_space+0x5f/0x320 [btrfs]
[ 28.400146] [<ffffffffa019fcb1>] btrfs_alloc_logged_file_extent+0x1e1/0x200
[btrfs]
[ 28.400146] [<ffffffffa01de42d>] replay_one_extent+0x4ed/0x540 [btrfs]
[ 28.400146] [<ffffffffa01defad>] replay_one_buffer+0x29d/0x360 [btrfs]
[ 28.400146] [<ffffffffa01dbd6d>] walk_down_log_tree+0x20d/0x3e0 [btrfs]
[ 28.400146] [<ffffffffa01dc267>] walk_log_tree+0xc7/0x1f0 [btrfs]
[ 28.400146] [<ffffffffa01e003c>] btrfs_recover_log_trees+0x1ec/0x2d0
[btrfs]
[ 28.400146] [<ffffffffa01ac303>] open_ctree+0x13c3/0x1740 [btrfs]
[ 28.400146] [<ffffffffa018a733>] btrfs_fill_super.isra.36+0x73/0x150
[btrfs]
[ 28.400146] [<ffffffffa018bb29>] btrfs_mount+0x359/0x3e0 [btrfs]
[ 28.400146] [<ffffffff81156465>] mount_fs+0x45/0x1d0
So, it crashes during log replay. Such problems can be "fixed" by running
'btrfs-zero-log' on the device, and this will supposedly make your filesystem
mountable again but there may be some filesystem changes lost (not longer than
last 30 seconds worth).
Thank you for the report, I have passed it upstream, and the fix is being
worked on.
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.