[Bug 471249] New: mount hangs trying to loopback an image on a fuse mouted NTFS partition
https://bugzilla.novell.com/show_bug.cgi?id=471249 Summary: mount hangs trying to loopback an image on a fuse mouted NTFS partition Classification: openSUSE Product: openSUSE 11.1 Version: Final Platform: x86-64 OS/Version: openSUSE 11.1 Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: contact@philipashmore.com QAContact: qa@suse.de Found By: --- User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-GB; rv:1.9.0.5) Gecko/2008121300 SUSE/3.0.5-1.1 Firefox/3.0.5 In Vista I reduced the two NTFS partitons to their minimum to make space for a GNU/Linux install. Now I can dual boot OpenSuse and Vista. As it turned out, Vista still has over 20GB of free space, so I created a 15GB file using a small C++ program that calls truncate() on the specified file. I could be wrong but I think that by calling truncate, I'm creating a sparse file. It's thousands of times faster than "dd if=/dev/zero ..." which I think also creates a sparse file. # touch /windows/C/Users/me/Desktop/Linux/15G.img # truncate /windows/C/Users/me/Desktop/Linux/15G.img 15G # mkfs -t ext2 /windows/C/Users/me/Desktop/Linux/15G.img Finally I mounted the filesystem using a loopback device. # mount -o,loop,exec /windows/C/Users/me/Desktop/Linux/15G.img /home/butthaed/WinPart I've used this loopback partition intensively and it works fine. Recently, however, I'm getting a kerneloops... http://www.kerneloops.org/submitresult.php?number=205350 ..and the mount never completes. Shutdown also doesn't complete (5 seconds on the power off button solves this) and I get the "recovering journal" and "orphaned inodes" when the machine boots up. Reproducible: Always Steps to Reproduce: 1. Install OpenSuse on a Vista machine dual boot. 2. Create a block file on an NTFS partition. 3. Create an ext2 filesystem on the block file. 4. Mount it and use it. Actual Results: Worked great for a while. Now it kerneloops'es. Expected Results: No kerneloops'es. -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=471249 User devzero@web.de added comment https://bugzilla.novell.com/show_bug.cgi?id=471249#c1 roland kletzing <devzero@web.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |devzero@web.de --- Comment #1 from roland kletzing <devzero@web.de> 2009-01-31 03:37:30 MST --- that could either be a fuse or ntfs-3g problem. here is a probably similar one: http://forums.opensuse.org/applications/402160-truecrypt-6-1a-opensuse-11-1-... it can also be a suse specific problem, as googling for "kernel BUG at fs/fuse/dir.c:1162" gives exactly ONE hit. (that one above) i`d try upgrading to the latest ntfs-3g first and if that doesn`t help, also upgrade to latest fuse. -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=471249 User contact@philipashmore.com added comment https://bugzilla.novell.com/show_bug.cgi?id=471249#c2 --- Comment #2 from Philip Ashmore <contact@philipashmore.com> 2009-01-31 15:15:48 MST ---
i`d try upgrading to the latest ntfs-3g first The only version available is the one on the DVD - ntfs-3g-1.5012-2.15 and if that doesn`t help, also upgrade to latest fuse. The only version available is the one on the DVD - fuse-2.7.2-61.16
-- 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.
https://bugzilla.novell.com/show_bug.cgi?id=471249 User contact@philipashmore.com added comment https://bugzilla.novell.com/show_bug.cgi?id=471249#c3 --- Comment #3 from Philip Ashmore <contact@philipashmore.com> 2009-02-01 04:59:58 MST --- I found a (testing?) repository for the kernel... http://download.opensuse.org/repositories/Kernel:/SL111_BRANCH/openSUSE_11.1... ..and updated the kernel to us it. The graphics performance is a LOT better (must be the intel driver) :) Unfortunately I've still got the mount-hang problem. Could you point me at a repository for fuse/ntfs-3g updates? -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=471249 User contact@philipashmore.com added comment https://bugzilla.novell.com/show_bug.cgi?id=471249#c4 --- Comment #4 from Philip Ashmore <contact@philipashmore.com> 2009-02-03 04:08:38 MST --- I tried doing the same thing from Fedora 10. It refused to mount the block device saying that it basically couldn't identify it. so I ran... # e2fsck -f <block file on ntfs partition> ..and I can mount this loopback from Fedora 10 just fine, although I did notice that F10 is using a later kernel. -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=471249 User mszeredi@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=471249#c5 Miklos Szeredi <mszeredi@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mszeredi@novell.com Component|Basesystem |Kernel --- Comment #5 from Miklos Szeredi <mszeredi@novell.com> 2009-03-05 08:56:04 MST --- Looks like this BUG is caused by the loop driver calling the filesystem's fsync method without holding i_mutex. The responsible SUSE specific patch is 'patches.fixes/loop-barriers2'. Seems to affect SLE10 and SLE11 as well. -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=471249 Cyril Hrubis <chrubis@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team-screening@forge.pr |kernel-maintainers@forge.pr |ovo.novell.com |ovo.novell.com -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=471249 User mszeredi@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=471249#c6 --- Comment #6 from Miklos Szeredi <mszeredi@novell.com> 2009-03-05 09:20:56 MST --- Created an attachment (id=277405) --> (https://bugzilla.novell.com/attachment.cgi?id=277405) proposed fix I'm not sure what the original 'loop-barrier2' patch does or if it is really needed. It hasn't been pushed to mainline, which is a sign that it isn't so important. But in case it's a needed feature, this patch should fix the unlocked fsync calls. -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=471249 User devzero@web.de added comment https://bugzilla.novell.com/show_bug.cgi?id=471249#c7 --- Comment #7 from roland kletzing <devzero@web.de> 2009-03-05 09:58:40 MST ---
I'm not sure what the original 'loop-barrier2' patch does or if it is really needed.
cat loop-barriers |head -n 15 From: Jeff Mahoney <jeffm@suse.com> Subject: [PATCH] loop: add support for O_SYNC References: 189051 Patch-mainline: never - this is a temporary band-aid for SLES10 This patch adds support for O_SYNC to the block loop device. When the backing file is opened with O_SYNC, the loop device will sync writes before returning successful. Signed-off-by: Jeff Mahoney <jeffm@suse.com> cat loop-barriers2 |head -n 15 From: kraxel@suse.de Subject: Make the loop driver handle barrier requests. Patch-mainline: no Make the loop driver handle sync and barrier requests correctly. Depends on loop-barrier patch.
It hasn't been pushed to mainline, which is a sign that it isn't so important.
oh,i think there is MUCH important kernel stuff around which is NOT in mainline. -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=471249 User archie@dellroad.org added comment https://bugzilla.novell.com/show_bug.cgi?id=471249#c8 Archie Cobbs <archie@dellroad.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |archie@dellroad.org --- Comment #8 from Archie Cobbs <archie@dellroad.org> 2009-03-13 12:37:50 MST --- I am seeing this same problem. I'm not using NTFS, but rather a custom FUSE filesystem (s3backer) on openSUSE 11.1. Kernel: 2.6.27.19-3.2-trace ------------[ cut here ]------------ kernel BUG at fs/fuse/dir.c:1162! invalid opcode: 0000 [1] SMP last sysfs file: /sys/devices/pci0000:00/0000:00:18.3/modalias CPU 0 Modules linked in: cbc crypto_blkcipher serpent cryptoloop binfmt_misc af_packet wctc4xxp(N) dahdi_transcode(N) wcfxo(N) wctdm24xxp(N) dahdi(N) crc_ccitt cpufreq_conservative cpufreq_userspace cpufreq_powersave powernow_k8 fuse nls_utf8 loop dm_mod dcdbas(X) container rtc_cmos rtc_core button rtc_lib shpchp pci_hotplug sr_mod cdrom i2c_nforce2 pcspkr i2c_core serio_raw tg3 libphy sg usbhid hid ff_memless raid456 async_xor async_memcpy async_tx xor raid0 sd_mod crc_t10dif ohci_hcd ehci_hcd usbcore edd raid1 reiserfs fan ide_pci_generic ide_core ata_generic sata_nv libata scsi_mod dock thermal processor thermal_sys hwmon Supported: No Pid: 15802, comm: loop1 Tainted: G 2.6.27.19-3.2-trace #1 RIP: 0010:[<ffffffffa02384a9>] [<ffffffffa02384a9>] fuse_set_nowrite+0x22/0xc6 [fuse] RSP: 0018:ffff880059c95d40 EFLAGS: 00010246 RAX: ffff880059d88c00 RBX: ffff880059c57800 RCX: 0000000000000000 RDX: ffff880059d8fa50 RSI: ffff880059d8fb48 RDI: ffff880059d8f940 RBP: ffff880059d8f940 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000001 R11: 00000000c09611c5 R12: 0000000000000000 R13: ffff880059c57800 R14: 0000000000000000 R15: ffff88006d5fa300 FS: 00007fa4a5d1a780(0000) GS:ffffffff80a3c080(0000) knlGS:00000000b7295970 CS: 0010 DS: 0018 ES: 0018 CR0: 000000008005003b CR2: 00000000007da1a8 CR3: 0000000059c61000 CR4: 00000000000006e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400 Process loop1 (pid: 15802, threadinfo ffff880059c94000, task ffff880059c5a540) Stack: 0000000000000000 7fffffffffffffff 0000000000000000 0000000000000000 7fffffffffffffff 0000000000000000 0000000000000000 ffff880059d8f940 0000000000000000 ffffffffa023aabe ffff88007e185a00 00000001802871b8 Call Trace: [<ffffffffa023aabe>] fuse_fsync_common+0x79/0x149 [fuse] [<ffffffffa0230176>] sync_file+0x4d/0x6d [loop] [<ffffffffa02301cd>] do_bio_filebacked+0x37/0x226 [loop] [<ffffffffa0230594>] loop_thread+0x1d8/0x20e [loop] [<ffffffff8024f9fb>] kthread+0x47/0x73 [<ffffffff8020cec9>] child_rip+0xa/0x11 Code: 66 ff 45 00 41 5a 5b 5d c3 41 54 55 48 89 fd 53 48 83 ec 30 83 bf b8 00 00 00 01 48 8b 87 f8 00 00 00 48 8b 98 90 02 00 00 75 04 <0f> 0b eb fe 48 89 df e8 ed 0b 26 e0 8b 85 80 02 00 00 85 c0 79 RIP [<ffffffffa02384a9>] fuse_set_nowrite+0x22/0xc6 [fuse] RSP <ffff880059c95d40> ---[ end trace 22f62985c27a0788 ]--- -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=471249 User knikanth@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=471249#c9 Nikanth K <knikanth@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |knikanth@novell.com --- Comment #9 from Nikanth K <knikanth@novell.com> 2009-03-17 01:05:08 MST --- Both the loop-barriers patch and loop-barriers2 patch has been removed now. -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=471249 User knikanth@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=471249#c10 Nikanth K <knikanth@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #10 from Nikanth K <knikanth@novell.com> 2009-03-26 03:17:25 MST --- As the offending patches are removed, I am marking this as fixed. Please reopen if it does not fix the issue -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=471249 User archie@dellroad.org added comment https://bugzilla.novell.com/show_bug.cgi?id=471249#c11 --- Comment #11 from Archie Cobbs <archie@dellroad.org> 2009-03-26 07:56:47 MST --- Can you indicate which kernel version contains the fix and when it will be available? I still see the latest version in the openSUSE 11.1-update repo as 2.6.27.7-19.3.2.1, which was built on Feb. 25. Thanks. -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=471249 User coolo@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=471249#c12 --- Comment #12 from Stephan Kulow <coolo@novell.com> 2009-03-26 11:28:57 MST --- http://download.opensuse.org/repositories/Kernel:/SL111_BRANCH/openSUSE_11.1... should have it -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=471249 User archie@dellroad.org added comment https://bugzilla.novell.com/show_bug.cgi?id=471249#c13 --- Comment #13 from Archie Cobbs <archie@dellroad.org> 2009-03-27 08:09:28 MST --- Thanks, that kernel does work for me with FUSE now. Unfortunately I'm still stuck for another reason... This machine not only uses FUSE but also runs Asterisk (PBX software), which in turn requires a kernel module (dahdi-linux-kmp-trace) built in the network:telephony:asterisk OBS project. This kernel module is built against the standard openSUSE 11.1 kernel (currently 2.6.27.19-3.2.1), not the SL111_BRANCH version. So is this patch going to be merged into the standard openSUSE 11.1 kernel (and thus appear in the 11.1-updates repo), so that I can use it on my Asterisk box? Thanks. -- 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.
participants (1)
-
bugzilla_noreply@novell.com