Revision tags: v6.2.1, v6.2.0, v6.3.0 |
|
#
1351cfd7 |
| 09-Nov-2021 |
Tomohiro Kusumi <tkusumi@netbsd.org> |
sbin/fsck_msdosfs: truncate directory entry when the head pointer is invalid.
As far as we know, there is no FAT implementation that supported hard links, and our msdosfs driver assumed one cluster
sbin/fsck_msdosfs: truncate directory entry when the head pointer is invalid.
As far as we know, there is no FAT implementation that supported hard links, and our msdosfs driver assumed one cluster chain is only referenced by one directory entry and clears it out when the file is deleted. On the other hand, the current code would proceed with checkchain() when the directory entry's head cluster is a valid numbered cluster without checking if it was a valid head node of a cluster chain.
So if the cluster do not being a chain (e.g. CLUST_FREE, CLUST_BAD), or was already referenced by another directory entry, this would trigger an assertion in check_chain() at a later time.
Fix this by giving the user an option to truncate the directory entry when the head cluster is an invalid cluster, an visited head node, or not a head node.
taken from FreeBSD 890cae197737b463e56d1cc5a3f61f84cb49c807
show more ...
|
Revision tags: v6.0.1, v6.0.0, v6.0.0rc1, v6.1.0 |
|
#
196be7cc |
| 28-Sep-2020 |
Tomohiro Kusumi <tkusumi@netbsd.org> |
sbin/fsck_msdosfs: Use %ju and cast to (uintmax_t) to avoid using PRI* macros
from freebsd/freebsd@51dd232dae465eb3cbe00596ba0583964e0c259f
|
Revision tags: v5.8.3 |
|
#
758b4f00 |
| 23-Sep-2020 |
Tomohiro Kusumi <tkusumi@netbsd.org> |
sbin/fsck_msdosfs: Fix an integer overflow on 32-bit platforms
Likely unrelated to DragonFly, but sync with FreeBSD anyway.
from freebsd/freebsd@4b0089abdf36a27fda364b25e95706a0abfe6c3a from freebs
sbin/fsck_msdosfs: Fix an integer overflow on 32-bit platforms
Likely unrelated to DragonFly, but sync with FreeBSD anyway.
from freebsd/freebsd@4b0089abdf36a27fda364b25e95706a0abfe6c3a from freebsd/freebsd@667eef4ac6396ffe2d705b401a2a09f60ab38fe7
show more ...
|
Revision tags: v5.8.2, v5.8.1, v5.8.0, v5.9.0, v5.8.0rc1, v5.6.3 |
|
#
9e80ebe0 |
| 05-Feb-2020 |
Tomohiro Kusumi <kusumi.tomohiro@gmail.com> |
sbin/fsck_msdosfs: Reduce memory footprint of fsck_msdosfs
See below for details. https://reviews.freebsd.org/D22965
from freebsd/freebsd@41655e1cf1451b788f6437c91ec74bcecd2192b7
|
#
1160c1c3 |
| 13-Jan-2020 |
Tomohiro Kusumi <kusumi.tomohiro@gmail.com> |
sbin/fsck_msdosfs: Avoid mixing cluster numbers and sector numbers
Makes code more readable.
from freebsd/freebsd@643521d9cba4f6b4717f042e6ce8bb0c71e5a3a0
|
#
bb1a345e |
| 26-Sep-2019 |
Sascha Wildner <saw@online.de> |
fsck_msdosfs(8): Add missing free()s.
|
#
dc5edbf2 |
| 14-Sep-2019 |
Tomohiro Kusumi <kusumi.tomohiro@gmail.com> |
sbin/fsck_msdosfs: u_int32_t -> uint32_t
|
#
577f0ddc |
| 14-Sep-2019 |
Tomohiro Kusumi <kusumi.tomohiro@gmail.com> |
sbin/fsck_msdosfs: Bring in freebsd/freebsd@853a3e49 (fix cluster chain check)
|
#
b56b442f |
| 14-Sep-2019 |
Tomohiro Kusumi <kusumi.tomohiro@gmail.com> |
sbin/fsck_msdosfs: Bring in freebsd/freebsd@f4323232 (style(9))
|
#
57f0a230 |
| 14-Sep-2019 |
Tomohiro Kusumi <kusumi.tomohiro@gmail.com> |
sbin/fsck_msdosfs: Bring in freebsd/freebsd@3bf7697a (prevent OOB access when corrupted)
|
#
8485042b |
| 14-Sep-2019 |
Tomohiro Kusumi <kusumi.tomohiro@gmail.com> |
sbin/fsck_msdosfs: Bring in freebsd/freebsd@9d029ca4 (fix build)
|
#
15d4e9c0 |
| 14-Sep-2019 |
Tomohiro Kusumi <kusumi.tomohiro@gmail.com> |
sbin/fsck_msdosfs: Bring in freebsd/freebsd@3b04951c (use MAX())
and remaining bits from freebsd/freebsd@d704245c.
|
#
a0072292 |
| 14-Sep-2019 |
Tomohiro Kusumi <kusumi.tomohiro@gmail.com> |
sbin/fsck_msdosfs: Bring in freebsd/freebsd@e2cfe252 (optimize memsets)
|
#
7878e80e |
| 14-Sep-2019 |
Tomohiro Kusumi <kusumi.tomohiro@gmail.com> |
sbin/fsck_msdosfs: Bring in freebsd/freebsd@89f9bddc (properly restore lfcl)
|
#
448048fd |
| 14-Sep-2019 |
Tomohiro Kusumi <kusumi.tomohiro@gmail.com> |
sbin/fsck_msdosfs: Bring in freebsd/freebsd@375de295 (fixes from other BSDs)
|
#
09fa6c1a |
| 14-Sep-2019 |
Tomohiro Kusumi <kusumi.tomohiro@gmail.com> |
sbin/fsck_msdosfs: Bring in freebsd/freebsd@9503e2d6 (distinguish lseek)
|
#
5ba9daa8 |
| 14-Sep-2019 |
Tomohiro Kusumi <kusumi.tomohiro@gmail.com> |
sbin/fsck_msdosfs: Bring in freebsd/freebsd@f7ba4b24 (assertion)
|
#
7c3df549 |
| 14-Sep-2019 |
Tomohiro Kusumi <kusumi.tomohiro@gmail.com> |
sbin/fsck_msdosfs: Minor fixes/sync with FreeBSD
|
#
49c56759 |
| 14-Sep-2019 |
Tomohiro Kusumi <kusumi.tomohiro@gmail.com> |
sbin/fsck_msdosfs: Bring in freebsd/freebsd@53d879fa (mix of unrelated changes...)
|
#
f2a8e16c |
| 14-Sep-2019 |
Tomohiro Kusumi <kusumi.tomohiro@gmail.com> |
sbin/fsck_msdosfs: Bring in freebsd/freebsd@437a93c1 (test ./.. for dir dirents)
Also bring in freebsd/freebsd@76844b29.
|
#
3c40521a |
| 14-Sep-2019 |
Tomohiro Kusumi <kusumi.tomohiro@gmail.com> |
sbin/fsck_msdosfs: Bring in freebsd/freebsd@d704245c (s/perror/perr/)
Ignore most of sbin/fsck part (not in sync with FreeBSD at all).
|
#
39a3c0aa |
| 14-Sep-2019 |
Tomohiro Kusumi <kusumi.tomohiro@gmail.com> |
sbin/fsck_msdosfs: Bring in freebsd/freebsd@ce3384ad (bsdl changes from NetBSD)
and freebsd/freebsd@7551d83c.
|
#
772d2493 |
| 14-Sep-2019 |
Tomohiro Kusumi <kusumi.tomohiro@gmail.com> |
sbin/fsck_msdosfs: Bring in freebsd/freebsd@1bb580c8 (rename struct fields)
|
#
d892ca3c |
| 12-Sep-2019 |
Tomohiro Kusumi <kusumi.tomohiro@gmail.com> |
sbin/fsck_msdosfs: Bring in FreeBSD/Git 66dd3f2b (don't cast malloc(3))
|
#
fe4630b1 |
| 12-Sep-2019 |
Tomohiro Kusumi <kusumi.tomohiro@gmail.com> |
sbin/fsck_msdosfs: Bring in FreeBSD/Git 0d367b12 (fix LFN check)
|