Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 03 Apr 2015 21:49:25 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 199152] msdosfs writes on umount to readonly mounted fs
Message-ID:  <bug-199152-8@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=199152

            Bug ID: 199152
           Summary: msdosfs writes on umount to readonly mounted fs
           Product: Base System
           Version: 10.1-STABLE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: kern
          Assignee: freebsd-bugs@FreeBSD.org
          Reporter: longwitz@incore.de

Created attachment 155169
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=155169&action=edit
Patch for msdosfs

In FreeBSD 10.1-STABLE #10 r279940 I see

mount -r /mydosfs
umount /mydosfs
umount: unmount of /mydosfs failed: Operation not permitted
On console: g_vfs_done():ada0p1[WRITE(offset=512, length=512)]error = 1

The next umount works.

This problem was introduced by rev 275638 to head, because in the case of a
readonly mounted msdosfs a call of msdosfs_sync() was introduced which failes
to write in msdos_fsiflush(). This happens because the flag MSDOSFS_FSIMOD is
set on the first call of msdosfs_sync().

The attached patch solves the problem for me and includes also some minor
changes necessary to build the kernel with MSDOS_DEBUG.

-- 
You are receiving this mail because:
You are the assignee for the bug.



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