Date: Wed, 03 Apr 2019 12:37:55 +0000 From: bugzilla-noreply@freebsd.org To: fs@FreeBSD.org Subject: [Bug 236977] [msdosfs] returns cached truncated data Message-ID: <bug-236977-3630-OIGke4Cakd@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-236977-3630@https.bugs.freebsd.org/bugzilla/> References: <bug-236977-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=236977 Konstantin Belousov <kib@FreeBSD.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |kib@FreeBSD.org --- Comment #1 from Konstantin Belousov <kib@FreeBSD.org> --- (In reply to Alan Somers from comment #0) This is somewhat strange. What is the block size on your testing file system ? Call sequence is msdosfs_setattr()->detrunc()->vtruncbuf()->vnode_pager_setsize(), and the last call zeroes the invalid portion of the partially valid last page. I suspect that in your test case block size is greater than the page size, and lingering pages from the last block after the new EOF are not cleared. If I am right, then the attached patch might fix it to you: -- 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-236977-3630-OIGke4Cakd>
