[DragonFlyBSD - Bug #3237] (Resolved) msdosfs: can't properly read files longer than couple of kilobytes

bugtracker-admin at leaf.dragonflybsd.org bugtracker-admin at leaf.dragonflybsd.org
Wed Jan 27 17:18:09 PST 2021


Issue #3237 has been updated by dillon.

Status changed from New to Resolved
Assignee set to dillon

Going to push this.  There is clearly something more involved here, probably related to the bmap code or to assumptions made by this older filesystem code with regards to how buffers crossing the file EOF are laid out.  But for now lets just go with this work-around.

-Matt

----------------------------------------
Bug #3237: msdosfs: can't properly read files longer than couple of kilobytes
http://bugs.dragonflybsd.org/issues/3237#change-13955

* Author: piecuch
* Status: Resolved
* Priority: Normal
* Assignee: dillon
* Category: Other
* Target version: master
----------------------------------------
Reading a file from msdosfs reports valid data within the first couple of kilobytes, everything after that is only NULL bytes (or it might be some data from a different sector which is currently zeroed).

I have tested this on the following configurations:
write on Linux - corrupted data on dfly, correct data on Linux
write on dfly - corrupted data on dfly, correct data on Linux

I am running latest version from master.

I will see if this bug can be reproduced on freebsd and try to fix that/port stuff from freebsd. Hints welcome.

---Files--------------------------------
first-ununiq.svg (1.01 MB)
second-ununiq.svg (1.03 MB)
third-ununiq.svg (1010 KB)
0001-msdosfs-fix-3237-where-reading-the-last-sector-of-a-.patch (1.49 KB)


-- 
You have received this notification because you have either subscribed to it, or are involved in it.
To change your notification preferences, please click here: http://bugs.dragonflybsd.org/my/account


More information about the Bugs mailing list