Bug 159191

Summary: [fusefs-ntfs] write on fusefs-ntfs mounted partition returns random errors EIO, ENOENT
Product: Base System Reporter: Mikhail.Kupchik
Component: usbAssignee: freebsd-usb (Nobody) <usb>
Status: Closed Feedback Timeout    
Severity: Affects Only Me CC: miwi
Priority: Normal    
Version: 8.2-RELEASE   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
smime.p7s none

Description Mikhail.Kupchik 2011-07-25 20:30:12 UTC
Writing large (200MB+) files into ntfs partition managed by fuse + ntfs-3g + libublio (on umass device) yields random write errors, usually EIO or ENOENT.

Versions of the software:
1) Kernel: FreeBSD-8.2-RELEASE, i386, generic
2) NTFS-3G: 2011.4.12 external FUSE 27
3) FUSE kernel module: fusefs-kmod-0.3.9.p1.20080208_7
4) FUSE userspace libs: fusefs-libs-2.7.4
5) UBLIO library (userspace cache for block devices): libublio-20070103

How-To-Repeat: 1) Get USB flash thumbdrive, 1Gb in my case
2) Quickformat it in Windows ("format I: /FS:NTFS /Q") and unplug via tray icon as usually
3) Plug USB flash thumbdrive to FreeBSD box
4) kldload /usr/local/modules/fuse.ko
5) ntfs-3g /dev/da0s1 /mnt/usb
6) dd if=/dev/random of=/usr/rndfile.bin bs=1M count=300
7) cp /usr/rndfile.bin /mnt/usb/rndfile.bin
8) After some time, cp exits with error message
cp: /mnt/usb/rndfile.bin: No such file or directory
Comment 1 Remko Lodder 2011-07-26 16:43:10 UTC
> 


NTFS writing through a third party application. Is there a way you can confirm that our USB subsystem is to blame instead of the
various additional things that are not from us?

HPS: I added you as a CC, you might be able to assist in case this is indeed our subsystem. The user reports that there are write
problems when using third party applications and kernel modules to write to NTFS.

-- 
/"\   Best regards,				| remko@FreeBSD.org
\ /   Remko Lodder			|
X    http://www.evilcoder.org/	| Quis custodiet ipsos custodes
/ \   ASCII Ribbon Campaign	| Against HTML Mail and News




Comment 2 Remko Lodder freebsd_committer freebsd_triage 2011-07-26 16:44:50 UTC
State Changed
From-To: open->feedback

I asked for feedback 


Comment 3 Remko Lodder freebsd_committer freebsd_triage 2011-07-26 16:44:50 UTC
Responsible Changed
From-To: freebsd-i386->freebsd-usb

Assign to USB team