Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Oct 2017 14:39:55 +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-5SzVVJFVKP@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-199152-8@https.bugs.freebsd.org/bugzilla/>
References:  <bug-199152-8@https.bugs.freebsd.org/bugzilla/>

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

--- Comment #8 from longwitz@incore.de ---
Seen in FreeBSD 10.3-STABLE r317782:=20

1. The problem with the first failing umount on a readonly mounted partitio=
n is
solved by commit 281457.

2. There is probably in issue with mount -r /mydosfs, it is a little bit
suprising that the bit FSIMOD is set on a readonly mount. That is the reason
for the failing first umount in absence of the patch mentioned above. The
backtrace for this situation is included in the output of a DTrace script:

  1   4751   msdosfs_mount:entry       called with mnt_flag=3D0x1
  1  18090   mountmsdosfs:entry        called with mnt_flag=3D0x1
  1  15625   fillinusemap:entry        called with pm_flags=3D0x20000000,
pm_maxcluster=3D98305, pm_inusemap=3Dfffffe0003e5b000
  1  18456   usemap_free:entry         called with pm_flags=3D0x20000000,
pm_maxcluster=3D98305 and cn=3D67

              kernel`fillinusemap+0x16d
              kernel`mountmsdosfs+0x9be
              kernel`msdosfs_mount+0x66a
              kernel`vfs_donmount+0xf50
              kernel`sys_nmount+0x71
              kernel`amd64_syscall+0x452
              kernel`0xffffffff807f364b

  1  18457   usemap_free:return       returned with pm_flags=3D0x21000000
  1  15626   fillinusemap:return      returncode=3D0, pm_flags=3D0x21000000,
pm_maxcluster=3D98305, pm_inusemap=3Dfffffe0003e5b000
  1  18091   mountmsdosfs:return      returncode=3D0, mnt_flag=3D0x1001,
pm_flags=3D0xa1000000, pm_inusemap=3Dfffffe0003e5b000
  1   4752   msdosfs_mount:return     returncode=3D0

FSIMOD (=3D0x1000000) is set on call number 67 in usemap_free().

3. To compile the kernel with MSDOSFS_DEBUG some patches are nesessary.

--=20
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-5SzVVJFVKP>