Re: weird kernel-oopses while deleting files on btrfs

2013-03-07 Thread Michael Schmitt

Am 04.03.2013 00:52, schrieb Chris Mason:

On Sun, Mar 03, 2013 at 06:57:41AM -0700, Michael Schmitt wrote:

Hi list,

some rather unexpected btrfs-oopses for my taste. I use btrfs for some
time now (mostly on external harddisks) and these oopses happened
during some simple file and folder deletion operation on that device. It
is a luks-encrypted 80GB drive. Anything like that known? And the fs was
created just yesterday, how come there is a message like...

[91491.919358] btrfs: mismatching generation and generation_v2 found in root 
item. This root was probably mounted with an older kernel. Resetting all new 
fields.

This may be from first mount after mkfs.  It depends on your tools.
During mkfs, mount and that message the same kernel and tools were used. 
At least I am quite sure about that (but I wouldn't swear on my life).



... but the kernel used (3.7.3 from Debian experimental on Debian sid)
was installed several days ago. What kind of oopses are these? As of now
there is no real data on that device. But if there were, would I need to
be concerned about the integrity of those files?

[93283.762006] WARNING: at 
/build/buildd-linux_3.7.3-1~experimental.1-i386-eX5kUQ/linux-3.7.3/fs/btrfs/extent-tree.c:6297
 btrfs_alloc_free_block+0xcd/0x2a4 [btrfs]()

These are not oopsen but warnings.  It's an ENOSPC warning as we try to
delete the extents.  It did happen sometimes in this kernel, but it is
only a warning.
Ah, 3.7.x had issues there? Do you have by any chance the bug-# or URL 
at hand? Or could you elaborate a bit what issues a user might have 
there and if he should be concerned? I just wonder how important a 
kernel up- or downgrade might be. But as it is only a warning (sorry 
that I did get that wrong), I suppose nothing bad could happen? ENOSPC 
on an almost empty filesystem would be at least somewhat bad. :) But 
fs was almost full and I deleted it completely as the message appeared 
the first time. I copied another batch of files to it (only a few GB, 
maybe 10% of drivespace used) and deleted them again and got the next 
warning-message.


regards
Michael
--
To unsubscribe from this list: send the line unsubscribe linux-btrfs in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


weird kernel-oopses while deleting files on btrfs

2013-03-03 Thread Michael Schmitt

Hi list,

some rather unexpected btrfs-oopses for my taste. I use btrfs for some 
time now (mostly on external harddisks) and these oopses happened 
during some simple file and folder deletion operation on that device. It 
is a luks-encrypted 80GB drive. Anything like that known? And the fs was 
created just yesterday, how come there is a message like...


[91491.919358] btrfs: mismatching generation and generation_v2 found in root 
item. This root was probably mounted with an older kernel. Resetting all new 
fields.

... but the kernel used (3.7.3 from Debian experimental on Debian sid) 
was installed several days ago. What kind of oopses are these? As of now 
there is no real data on that device. But if there were, would I need to 
be concerned about the integrity of those files?


ii  btrfs-tools   0.19+20130131-2 (if 
that matters)


The whole log is at http://paste.debian.net/hidden/6ee00823/ (if a mua 
fails to display the text unwrapped) and a copy right here:


[91491.900736] device label samsung_S0DWJ30L373663 devid 1 transid 10 
/dev/mapper/udisks-luks-uuid-64e6f540-8df0-49b2-af3d-ea18e07355d2-uid1000
[91491.904416] btrfs: disk space caching is enabled
[91491.919358] btrfs: mismatching generation and generation_v2 found in root 
item. This root was probably mounted with an older kernel. Resetting all new 
fields.
[91978.944644] device label seagate_W1E2Z3TA devid 1 transid 439 /dev/dm-8
[91979.320743] device label seagate_W1E2Z3TA devid 1 transid 439 
/dev/mapper/udisks-luks-uuid-24593edd-349c-451f-9b6d-eab1120471f6-uid1000
[91979.31] btrfs: disk space caching is enabled
[93283.761960] btrfs: block rsv returned -28
[93283.761965] [ cut here ]
[93283.762006] WARNING: at 
/build/buildd-linux_3.7.3-1~experimental.1-i386-eX5kUQ/linux-3.7.3/fs/btrfs/extent-tree.c:6297
 btrfs_alloc_free_block+0xcd/0x2a4 [btrfs]()
[93283.762010] Hardware name: System Product Name
[93283.762012] Modules linked in: hid_logitech usbhid ff_memless 
ip6table_filter ip6_tables ebtable_nat ebtables ipt_MASQUERADE iptable_nat 
nf_nat_ipv4 nf_nat nf_conntrack_ipv4 nf_defrag_ipv4 xt_conntrack nf_conntrack 
ipt_REJECT xt_CHECKSUM iptable_mangle xt_tcpudp iptable_filter ip_tables 
x_tables cpufreq_powersave cpufreq_conservative cpufreq_stats cpufreq_userspace 
ppdev lp bnep rfcomm bluetooth rfkill binfmt_misc uinput nfsd auth_rpcgss 
nfs_acl nfs lockd dns_resolver fscache sunrpc bridge stp llc ext4 crc16 jbd2 
hwmon_vid loop fuse snd_hda_codec_analog snd_wavefront snd_cs4236 snd_hda_intel 
btrfs sg snd_opl3_lib sr_mod snd_hda_codec nouveau snd_hwdep cdrom snd_pcm_oss 
crc32c libcrc32c zlib_deflate snd_wss_lib joydev usb_storage hid_generic 
sata_sil snd_mpu401 snd_mixer_oss snd_mpu401_uart coretemp kvm_intel usbled 
snd_pcm snd_page_alloc snd_seq_midi snd_seq_midi_event snd_rawmidi snd_seq 
mxm_wmi wmi video snd_seq_device snd_timer ttm i2c_i801 iTCO_wdt snd ns558 
drm_kms_helper drm i2c_algo_bit soundcore gameport iTCO_vendor_support kvm 
lpc_ich mfd_core rng_core pcspkr i2c_core psmouse evdev acpi_cpufreq mperf 
parport_pc parport processor r8169 mii serio_raw ehci_hcd asus_atk0110 
thermal_sys button ext3 mbcache jbd dm_crypt dm_mod raid1 md_mod sha256_generic 
aes_i586 cbc hid sd_mod crc_t10dif ata_generic microcode ata_piix uhci_hcd 
libata scsi_mod usbcore usb_common [last unloaded: usbhid]
[93283.762149] Pid: 10948, comm: pool Not tainted 3.7-trunk-686-pae #1 Debian 
3.7.3-1~experimental.1
[93283.762151] Call Trace:
[93283.762160]  [c10310a1] ? warn_slowpath_common+0x68/0x79
[93283.762187]  [fbe07206] ? btrfs_alloc_free_block+0xcd/0x2a4 [btrfs]
[93283.762193]  [c10310bf] ? warn_slowpath_null+0xd/0x10
[93283.762219]  [fbe07206] ? btrfs_alloc_free_block+0xcd/0x2a4 [btrfs]
[93283.762226]  [c10b9541] ? page_address+0x1b/0x85
[93283.762254]  [fbe0ed11] ? btrfs_header_generation.isra.75+0xb/0x14 [btrfs]
[93283.762277]  [fbdf929c] ? __btrfs_cow_block+0xfb/0x3b4 [btrfs]
[93283.762301]  [fbdfa8b9] ? read_block_for_search.isra.42+0x91/0x31e [btrfs]
[93283.762325]  [fbdf966d] ? btrfs_cow_block+0xe2/0x11f [btrfs]
[93283.762349]  [fbdfbea3] ? btrfs_search_slot+0x1e6/0x5ab [btrfs]
[93283.762377]  [fbe0c613] ? btrfs_del_csums+0xd7/0x30a [btrfs]
[93283.762402]  [fbe029d7] ? __btrfs_free_extent+0x5f8/0x67f [btrfs]
[93283.762428]  [fbe0654e] ? run_clustered_refs+0x7a7/0x803 [btrfs]
[93283.762435]  [c10a89ec] ? __set_page_dirty_nobuffers+0x11/0xb7
[93283.762462]  [fbe088f2] ? btrfs_run_delayed_refs+0xe7/0x220 [btrfs]
[93283.762491]  [fbe151c4] ? __btrfs_end_transaction+0xfb/0x275 [btrfs]
[93283.762521]  [fbe1df70] ? btrfs_evict_inode+0x277/0x2a1 [btrfs]
[93283.762528]  [c10eae11] ? evict+0x89/0x122
[93283.762533]  [c10e3721] ? do_unlinkat+0xcc/0x108
[93283.762538]  [c10dbc57] ? fput+0xc/0x8a
[93283.762543]  [c10e6b16] ? sys_getdents64+0xaa/0xc4
[93283.762549]  [c12ecd4d] ? sysenter_do_call+0x12/0x28
[93283.762555]  [c12e007b] ? set_cpu_sibling_map+0x2cf/0x2e5
[93283.762560]