Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 May 2018 14:42:35 +0300
From:      Konstantin Belousov <kostikbel@gmail.com>
To:        Stefan Esser <se@freebsd.org>
Cc:        Bruce Evans <brde@optusnet.com.au>, FreeBSD File-Systems <freebsd-fs@freebsd.org>
Subject:   Re: [Bug 210316] panic after trying to r/w mount msdosfs on write protected media
Message-ID:  <20180517114235.GI6887@kib.kiev.ua>
In-Reply-To: <8c1cb4b3-633a-5b14-0713-727b03f44f4e@freebsd.org>
References:  <bug-210316-3630@https.bugs.freebsd.org/bugzilla/> <bug-210316-3630-eXVbCR5qFd@https.bugs.freebsd.org/bugzilla/> <20180517163709.F1129@besplex.bde.org> <8c1cb4b3-633a-5b14-0713-727b03f44f4e@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, May 17, 2018 at 10:04:01AM +0200, Stefan Esser wrote:
> In case that a media (whether removable or not) was mounted R/W and not
> written to (had no dirty buffers) for more than a few seconds, the mount
> could be downgraded to R/O (in the same way as by a "mount -u -o ro"). A
> flag that recorded the fact, that this partition may be written to could
> then be checked in the "write to R/O partition" error case, and if the
> file system was only temporarily set to R/O, it could be treated like a
> first access to a writable partition (i.e., write a dirty flag into the
> super-block or whatever action the file system performs when mounted R/W).
> 
> In short, the suggestion is to down-grade the mount state of any file-system
> not used for some configurable time to R/O, with an automatic upgrade to R/W
> on the next write attempt.
Downgrade to ro revokes all file descriptors opened for write, otherwise
it is not a downgrade.

This would be a huge mess.



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