[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openbsd-bugs
Subject:    Re: removing NTFS USB-pen crashes kernel
From:       "Dipl.-Ing. Markus Wawersich" <wawersich () www-pool ! de>
Date:       2011-11-30 10:45:19
Message-ID: KaQ2JNTtJ1F21ZrqDpV85J6nuXO393NA0qAapKiVqcY () akmail
[Download RAW message or body]

Hi,

great. Thanks. It works.
But I get a lot of kernel messages:

-----------------------------------------------------------------
ntfs_inactive: pushing active: 0xd532c1a4, type VREG, use 2, write 0, hold 0,
flags (VSYSTEM|VXLOCK)
        tag VT_NTFS, ino 6, flag 0x8800, usecount 1, nlink 1
ntfs_reclaim: pushing active: 0xd532c1a4, type VREG, use 2, write 0, hold 0,
flags (VSYSTEM|VXLOCK)
        tag VT_NTFS, ino 6, flag 0x8800, usecount 1, nlink 1
ntfs_inactive: pushing active: 0xd532c108, type VDIR, use 3, write 0, hold 0,
flags (VROOT|VSYSTEM|VXLOCK)
        tag VT_NTFS, ino 5, flag 0x8800, usecount 1, nlink 1
ntfs_reclaim: pushing active: 0xd532c108, type VDIR, use 3, write 0, hold 0,
flags (VROOT|VSYSTEM|VXLOCK)
        tag VT_NTFS, ino 5, flag 0x8800, usecount 1, nlink 1
ntfs_inactive: pushing active: 0xd532c06c, type VREG, use 2, write 0, hold 0,
flags (VSYSTEM|VXLOCK)
        tag VT_NTFS, ino 0, flag 0x8800, usecount 1, nlink 1
ntfs_reclaim: pushing active: 0xd532c06c, type VREG, use 2, write 0, hold 0,
flags (VSYSTEM|VXLOCK)
        tag VT_NTFS, ino 0, flag 0x8800, usecount 1, nlink 1
sd0 detached
scsibus4 detached
umass0 detached
-----------------------------------------------------------------


If I do the same with a FAT32 USP-pen I get only:
-----------------------------------------------------------------
sd0 detached
scsibus4 detached
umass0 detached
-----------------------------------------------------------------

are this only some debug messages of the ntfs-code or is there still something
buggy ?

but thanks for Your work :-)))



> On Tue, Nov 29, 2011 at 16:08 +0100, Dipl.-Ing. Markus Wawersich
> wrote:
>> Hi,
>>
>> I have found a bug. I can reproduce it with 2 PCs an with VMWare.
>> Also testet with two different USB-pens.
>>
>> Here is the description:
>> First You need a USB-pen formated with NTFS.
>> If You have Windows-XP You can do it like here:
>> http://tutzone.org/2009/01/format-usb-pen-drive-with-ntfs-file.html
>> note: the linux mkfs.ntfs don't work (can't mount it in OpenBSD -
>> don't know why)
>>
>>
>> then mount it:  "mount /dev/sd0i /mnt"
>> chdir to the mountpoint: "chdir /mnt"
>> and then remove the usb-pen:
>>
>> => you should see this
>>

> hi,

> this diff fixes the problem for me.  vfs hackers are welcome to
> comment :)

> Index: ntfs/ntfs_vfsops.c
> ===================================================================
> RCS file: /cvs/src/sys/ntfs/ntfs_vfsops.c,v
> retrieving revision 1.27
> diff -u -p -r1.27 ntfs_vfsops.c
> --- ntfs/ntfs_vfsops.c	4 Jul 2011 20:35:35 -0000	1.27
> +++ ntfs/ntfs_vfsops.c	29 Nov 2011 22:09:16 -0000
> @@ -541,7 +541,7 @@ ntfs_unmount(
>  		flags |= FORCECLOSE;

>  	dprintf(("ntfs_unmount: vflushing...\n"));
> -	error = vflush(mp,NULLVP,flags | SKIPSYSTEM);
> +	error = vflush(mp,NULLVP,flags);
>  	if (error) {
>  		dprintf(("ntfs_unmount: vflush failed: %d\n",error));
>  		return (error);

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic