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);

Reply via email to