Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Apr 2012 07:00:11 GMT
From:      Yuri <yuri@tsoft.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   kern/167260: msdosfs disk was mounted the second time when the first umount was not clean and mount record still exists
Message-ID:  <201204240700.q3O70B6A089838@red.freebsd.org>
Resent-Message-ID: <201204240710.q3O7A9vm071776@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         167260
>Category:       kern
>Synopsis:       msdosfs disk was mounted the second time when the first umount was not clean and mount record still exists
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Apr 24 07:10:08 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Yuri
>Release:        9.0 amd64
>Organization:
n/a
>Environment:
>Description:
I had the broken flash disk, and few write operations failed. And umount operation hanged. So I had to pull the USB drive out.

After checking, I mounted it again, and it works now.

However, mount command shows it mounted twice (!!!):

Filesystem   1K-blocks       Used     Avail Capacity  Mounted on
/dev/da0s1      7753672   7039040    714632    91%    /mnt/fat1
/dev/da0s1      7753672   7608888    144784    98%    /mnt/fat1

=== log of the failed disk operations ===
ugen3.3: <vendor 0xffee> at usbus3
umass0: <vendor 0xffee product 0x0100, class 0/0, rev 2.00/1.00, addr 3> on usbus3
umass0:  SCSI over Bulk-Only; quirks = 0x4100
umass0:7:0:-1: Attached to scbus7
da0 at umass-sim0 bus 0 scbus7 target 0 lun 0
da0: <FNK TECH USB CARD READER 2.33> Removable Direct Access SCSI-2 device 
da0: 40.000MB/s transfers
da0: 7580MB (15523840 512 byte sectors: 255H 63S/T 966C)
g_vfs_done():da0s1[WRITE(offset=7208050688, length=8192)]error = 5
g_vfs_done():da0s1[WRITE(offset=7208050688, length=8192)]error = 5
g_vfs_done():da0s1[WRITE(offset=7208050688, length=8192)]error = 5
g_vfs_done():da0s1[WRITE(offset=7208050688, length=8192)]error = 5
fsync: giving up on dirty
0xfffffe02a583b000: tag devfs, type VCHR
    usecount 1, writecount 0, refcount 989 mountedhere 0xfffffe01378d9c00
    flags ()
    v_object 0xfffffe024d34c658 ref 0 pages 1025
    lock type devfs: EXCL by thread 0xfffffe020d2a78c0 (pid 8156)
        dev da0s1
g_vfs_done():da0s1[WRITE(offset=7208050688, length=8192)]error = 5
fsync: giving up on dirty
0xfffffe02a583b000: tag devfs, type VCHR
    usecount 1, writecount 0, refcount 989 mountedhere 0xfffffe01378d9c00
    flags ()
    v_object 0xfffffe024d34c658 ref 0 pages 1025
    lock type devfs: EXCL by thread 0xfffffe0042809460 (pid 8168)
        dev da0s1
ugen3.3: <vendor 0xffee> at usbus3 (disconnected)
umass0: at uhub3, port 3, addr 3 (disconnected)
(da0:umass-sim0:0:0:0): lost device - 0 outstanding, 1 refs
(da0:umass-sim0:0:0:0): removing device entry
Device da0s1 went missing before all of the data could be written to it; expect data loss.
<!!! Here device mount record was left !!!>

>How-To-Repeat:

>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201204240700.q3O70B6A089838>