Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 May 2018 16:29:10 +0000
From:      bugzilla-noreply@freebsd.org
To:        fs@FreeBSD.org
Subject:   [Bug 210316] panic after trying to r/w mount msdosfs on write protected media
Message-ID:  <bug-210316-3630-qsaXCpYUXF@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-210316-3630@https.bugs.freebsd.org/bugzilla/>
References:  <bug-210316-3630@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=3D210316

--- Comment #16 from Warner Losh <imp@FreeBSD.org> ---
(In reply to Andriy Gapon from comment #14)
    bp =3D getblk(...)
    bp->b_flags |=3D B_INVAL | B_RELBUF | B_NOCACHE;
    bp->b_flags &=3D ~(B_ASYNC | B_CACHE);
    brelse(bp);

maybe we need a bfinval(bp) that does that. "Forced" is the 'f' but I'm ope=
n to
any other name. Basically "Throw away this buffer I know is dirty." We have=
 a
'flush' operation but no 'invalidate' or 'throw away' operation for these c=
ache
entries. If we centralize it, we'll have fewer gross hacks like this in the
system that "should work" but gradually drift away from working because of =
some
subtle change in what B_NOCACHE means 5 years from now...

--=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-210316-3630-qsaXCpYUXF>