From owner-freebsd-usb@FreeBSD.ORG Wed Feb 16 19:20:10 2011 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5834E1065694 for ; Wed, 16 Feb 2011 19:20:10 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 1638E8FC20 for ; Wed, 16 Feb 2011 19:20:10 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p1GJK997006304 for ; Wed, 16 Feb 2011 19:20:09 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p1GJK9Kr006303; Wed, 16 Feb 2011 19:20:09 GMT (envelope-from gnats) Resent-Date: Wed, 16 Feb 2011 19:20:09 GMT Resent-Message-Id: <201102161920.p1GJK9Kr006303@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-usb@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Frank Scheckenbach Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 146E0106564A for ; Wed, 16 Feb 2011 19:10:39 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id EB34A8FC16 for ; Wed, 16 Feb 2011 19:10:38 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.4/8.14.4) with ESMTP id p1GJAc0Q066804 for ; Wed, 16 Feb 2011 19:10:38 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.4/8.14.4/Submit) id p1GJAcm8066803; Wed, 16 Feb 2011 19:10:38 GMT (envelope-from nobody) Message-Id: <201102161910.p1GJAcm8066803@red.freebsd.org> Date: Wed, 16 Feb 2011 19:10:38 GMT From: Frank Scheckenbach To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: usb/154828: Unable to create directories on external USB HDD with large msdosfs (g_vfs_done():da0s1[WRITE(offset=- ... , length=16384)]error = 5) X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Feb 2011 19:20:10 -0000 >Number: 154828 >Category: usb >Synopsis: Unable to create directories on external USB HDD with large msdosfs (g_vfs_done():da0s1[WRITE(offset=- ... , length=16384)]error = 5) >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-usb >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Feb 16 19:20:09 UTC 2011 >Closed-Date: >Last-Modified: >Originator: Frank Scheckenbach >Release: 8.2-RC3 >Organization: >Environment: FreeBSD FreeBSD.fritz.box 8.2-RC3 FreeBSD 8.2-RC3 #0: Sun Jan 30 06:28:31 UTC 2011 root@mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64 >Description: After a binary update from 8.2-RC2 to 8.2-RC3 I can no longer create directories on my external USB HDD. The filesystem is fat32 and the drive is manually mounted using "mount_msdosfs -o large". Writing, editing and deleting files is still possible. But even when I write files to the HDD, dmesg reports errors "g_vfs_done():da0s1[WRITE(offset=- ... , length=16384)]error = 5", although, the files are correctly written. It is even possible to delete directories but creating directories is impossible. The error does not occur on any fat16/fat32 USB flash disk, nor did it occur before updating to 8.2-RC3. Once the systems starts reporting these errors, it is impossible to unmount the HDD, and if I force it to unmount the HDD using "unmount -f" the systems freezes. Furthermore, these errors are reported continuously, after writing once to the HDD, and do never stop. The drive is working fine with other OSs and "fsck_msdosfs" reported a clean filesystem. ################################################# dmesg ################################################# Copyright (c) 1992-2011 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 8.2-RC2 #0: Wed Jan 12 17:02:35 UTC 2011 root@mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64 Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: Genuine Intel(R) CPU U2300 @ 1.20GHz (1197.01-MHz K8-class CPU) Origin = "GenuineIntel" Id = 0x1067a Family = 6 Model = 17 Stepping = 10 Features=0xbfebfbff Features2=0x400e3bd AMD Features=0x20100800 AMD Features2=0x1 TSC: P-state invariant real memory = 2147483648 (2048 MB) avail memory = 2012815360 (1919 MB) ACPI APIC Table: FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs FreeBSD/SMP: 1 package(s) x 2 core(s) cpu0 (BSP): APIC ID: 0 cpu1 (AP): APIC ID: 1 ioapic0 irqs 0-23 on motherboard kbd1 at kbdmux0 acpi0: on motherboard acpi0: [ITHREAD] acpi0: Power Button (fixed) acpi_hpet0: iomem 0xfed00000-0xfed003ff on acpi0 Timecounter "HPET" frequency 14318180 Hz quality 900 Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 acpi_timer0: <24-bit timer at 3.579545MHz> port 0x408-0x40b on acpi0 cpu0: on acpi0 cpu1: on acpi0 acpi_ec0: port 0x62,0x66 on acpi0 acpi_lid0: on acpi0 acpi_button0: on acpi0 acpi_button1: on acpi0 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 vgapci0: port 0x1800-0x1807 mem 0xf0000000-0xf03fffff,0xd0000000-0xdfffffff irq 16 at device 2.0 on pci0 agp0: on vgapci0 agp0: detected 32764k stolen memory agp0: aperture size is 256M vgapci1: mem 0xf0400000-0xf04fffff at device 2.1 on pci0 uhci0: port 0x1820-0x183f irq 21 at device 26.0 on pci0 uhci0: [ITHREAD] usbus0: on uhci0 uhci1: port 0x1840-0x185f irq 21 at device 26.1 on pci0 uhci1: [ITHREAD] usbus1: on uhci1 ehci0: mem 0xf0805800-0xf0805bff irq 20 at device 26.7 on pci0 ehci0: [ITHREAD] usbus2: EHCI version 1.0 usbus2: on ehci0 hdac0: mem 0xf0800000-0xf0803fff irq 22 at device 27.0 on pci0 hdac0: HDA Driver Revision: 20100226_0142 hdac0: [ITHREAD] pcib1: irq 17 at device 28.0 on pci0 pci2: on pcib1 re0: port 0x2000-0x20ff mem 0xf0904000-0xf0904fff,0xf0900000-0xf0903fff irq 16 at device 0.0 on pci2 re0: Using 1 MSI messages re0: Chip rev. 0x28000000 re0: MAC rev. 0x00000000 miibus0: on re0 rgephy0: PHY 1 on miibus0 rgephy0: 10baseT, 10baseT-FDX, 10baseT-FDX-flow, 100baseTX, 100baseTX-FDX, 100baseTX-FDX-flow, 1000baseT, 1000baseT-master, 1000baseT-FDX, 1000baseT-FDX-master, 1000baseT-FDX-flow, 1000baseT-FDX-flow-master, auto, auto-flow re0: Ethernet address: 70:5a:b6:54:09:cb re0: [FILTER] pcib2: irq 16 at device 28.1 on pci0 pci3: on pcib2 pci3: at device 0.0 (no driver attached) uhci2: port 0x1860-0x187f irq 23 at device 29.0 on pci0 uhci2: [ITHREAD] usbus3: on uhci2 uhci3: port 0x1880-0x189f irq 19 at device 29.1 on pci0 uhci3: [ITHREAD] usbus4: on uhci3 uhci4: port 0x18a0-0x18bf irq 18 at device 29.2 on pci0 uhci4: [ITHREAD] usbus5: on uhci4 ehci1: mem 0xf0805c00-0xf0805fff irq 23 at device 29.7 on pci0 ehci1: [ITHREAD] usbus6: EHCI version 1.0 usbus6: on ehci1 pcib3: at device 30.0 on pci0 pci4: on pcib3 isab0: at device 31.0 on pci0 isa0: on isab0 atapci0: port 0x1818-0x181f,0x180c-0x180f,0x1810-0x1817,0x1808-0x180b,0x18c0-0x18df mem 0xf0805000-0xf08057ff irq 19 at device 31.2 on pci0 atapci0: [ITHREAD] atapci0: AHCI v1.20 controller with 4 3Gbps ports, PM not supported ata2: on atapci0 ata2: [ITHREAD] ata3: on atapci0 ata3: [ITHREAD] ata4: on atapci0 ata4: [ITHREAD] pci0: at device 31.3 (no driver attached) pci0: at device 31.6 (no driver attached) acpi_tz0: on acpi0 atrtc0: port 0x70-0x77 irq 8 on acpi0 atrtc0: Warning: Couldn't map I/O. battery0: on acpi0 acpi_acad0: on acpi0 atkbdc0: port 0x60,0x64 irq 1 on acpi0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] atkbd0: [ITHREAD] psm0: irq 12 on atkbdc0 psm0: [GIANT-LOCKED] psm0: [ITHREAD] psm0: model IntelliMouse, device ID 3 orm0: at iomem 0xd0000-0xd0fff,0xdc000-0xdffff,0xe0000-0xe17ff on isa0 sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 ppc0: cannot reserve I/O port range est0: on cpu0 p4tcc0: on cpu0 est1: on cpu1 p4tcc1: on cpu1 Timecounters tick every 1.000 msec usbus0: 12Mbps Full Speed USB v1.0 usbus1: 12Mbps Full Speed USB v1.0 usbus2: 480Mbps High Speed USB v2.0 usbus3: 12Mbps Full Speed USB v1.0 usbus4: 12Mbps Full Speed USB v1.0 usbus5: 12Mbps Full Speed USB v1.0 usbus6: 480Mbps High Speed USB v2.0 ad4: 238475MB at ata2-master UDMA100 SATA 1.5Gb/s ugen0.1: at usbus0 uhub0: on usbus0 ugen1.1: at usbus1 uhub1: on usbus1 ugen2.1: at usbus2 uhub2: on usbus2 ugen3.1: at usbus3 uhub3: on usbus3 ugen4.1: at usbus4 uhub4: on usbus4 ugen5.1: at usbus5 uhub5: on usbus5 ugen6.1: at usbus6 uhub6: on usbus6 hdac0: HDA Codec #0: Realtek ALC272 hdac0: HDA Codec #2: Intel G45 HDMI pcm0: at cad 0 nid 1 on hdac0 pcm1: at cad 2 nid 1 on hdac0 SMP: AP CPU #1 Launched! GEOM: ad4: partition 4 does not start on a track boundary. GEOM: ad4: partition 4 does not end on a track boundary. uhub0: 2 ports with 2 removable, self powered uhub1: 2 ports with 2 removable, self powered uhub3: 2 ports with 2 removable, self powered uhub4: 2 ports with 2 removable, self powered uhub5: 2 ports with 2 removable, self powered Root mount waiting for: usbus6 usbus2 Root mount waiting for: usbus6 usbus2 uhub2: 4 ports with 4 removable, self powered Root mount waiting for: usbus6 usbus2 uhub6: 6 ports with 6 removable, self powered ugen2.2: at usbus2 Root mount waiting for: usbus6 usbus2 ugen6.2: at usbus6 uhub7: on usbus6 ugen0.2: at usbus0 uhub7: 4 ports with 4 removable, self powered ugen2.3: at usbus2 uhub8: on usbus2 Root mount waiting for: usbus6 usbus2 ugen6.3: at usbus6 ukbd0: on usbus6 kbd2 at ukbd0 uhub8: 4 ports with 4 removable, self powered uhid0: on usbus6 Root mount waiting for: usbus6 usbus2 ugen2.4: at usbus2 umass0: on usbus2 umass0: SCSI over Bulk-Only; quirks = 0x0000 ugen6.4: at usbus6 ums0: on usbus6 ums0: 8 buttons and [XYZT] coordinates ID=0 umass0:1:0:-1: Attached to scbus1 Trying to mount root from ufs:/dev/ad4s4a da0 at umass-sim0 bus 0 scbus1 target 0 lun 0 da0: Fixed Direct Access SCSI-4 device da0: 40.000MB/s transfers da0: 1430799MB (2930277168 512 byte sectors: 255H 63S/T 182401C) ugen3.2: at usbus3 ipfw2 (+ipv6) initialized, divert loadable, nat loadable, rule-based forwarding disabled, default to deny, logging disabled re0: link state changed to UP re0: promiscuous mode enabled re0: promiscuous mode disabled re0: promiscuous mode enabled drm0: on vgapci0 info: [drm] MSI enabled 1 message(s) vgapci0: child drm0 requested pci_enable_busmaster info: [drm] AGP at 0xd0000000 256MB info: [drm] Initialized i915 1.6.0 20080730 drm0: [ITHREAD] >How-To-Repeat: Simply by writing to the HDD or trying to create a directory. >Fix: >Release-Note: >Audit-Trail: >Unformatted: