Steven J. Magnani
bc84254457
Attempt to improve clarity of the orphan cluster reclaim code.
...
Minor optimization - remove some unnecessary checking.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
2013-01-23 12:50:55 +01:00
Steven J. Magnani
8054b4a371
Close hole that permitted clusters to link to (invalid) cluster 1.
...
If an orphan chain that linked to cluster 1 was reclaimed to a file,
deletion of the file would result in a filesystem panic.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
2013-01-23 12:50:51 +01:00
Steven J. Magnani
e51af88eed
Fix erroneous report of huge number of clusters in use on big-endian
...
systems when the FSINFO free cluster count is reset.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
2013-01-23 12:50:49 +01:00
Daniel Baumann
16ba63f98a
Releasing version 3.0.5.
...
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
2013-01-23 12:50:48 +01:00
Piotr Kaczuba
28ff9d967c
Signed/unsigned char mismatch in check.c causes false positives
...
in bad_name() and can result in data loss, see Debian bug #538758 .
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
2013-01-23 12:50:46 +01:00
Andrew Tridgell
d42a27373a
Update to new kernel patches that add FAT_NO_83NAME flag.
...
See http://lkml.org/lkml/2009/7/20/425 and
http://lkml.org/lkml/2009/7/20/424 for more information.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
2013-01-23 12:50:45 +01:00
Daniel Baumann
dd0f0b5392
Releasing version 3.0.4.
...
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
2013-01-23 12:50:44 +01:00
Andrew Tridgell
b9f37a61a6
Modify dosfstools to support the dummy 8.3 short filename values
...
used by Linux systems with the VFAT_FS_DUALNAMES option disabled.
See http://lkml.org/lkml/2009/6/26/313 and
http://lkml.org/lkml/2009/6/26/314 for more information.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
2013-01-23 12:50:43 +01:00
Paul Rupe
ecd15e86e8
Fixing "Too many files need repair" error during fsck.
...
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
2013-01-23 12:50:42 +01:00
Daniel Baumann
7c16098be2
Releasing version 3.0.3.
...
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
2013-01-23 12:50:40 +01:00
Daniel Baumann
b396dcfb09
Also declaring arm as an unaligned architecture, see Debian bug #502961 .
...
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
2013-01-23 12:50:39 +01:00
Steven J. Magnani
ff1b24e91d
Adding support for limited-memory embedded systems.
...
This patch reorganizes heap memory usage by dosfsck and mkdosfs
to support limited-memory embedded systems - in particular, those
based on Xilinx's Microblaze processor. It also adds a few comments.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
2013-01-23 12:50:38 +01:00
Mike Frysinger
89f0b727b5
Declaring Blackfin as an unaligned architecture.
...
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
2013-01-23 12:50:37 +01:00
Daniel Baumann
b54a8a46ef
Releasing version 3.0.2.
...
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
2013-01-23 12:50:36 +01:00
Hiroaki Ishizawa
95005294d8
dosfsck corrupts root directory when fs->nfats is 1.
...
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
2013-01-23 12:50:34 +01:00
Stepan Kasal
043f8a8fb1
src/dosfslabel.c (main): After writing the label, exit code should be 0.
...
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
2013-01-23 12:50:33 +01:00
Daniel Baumann
017da27f1a
Also installing ChangeLog in install-doc target of Makefile.
...
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
2013-01-23 12:50:32 +01:00
Stepan Kasal
1c76f0faf8
Makefile: Do not clobber time stamps of doc files.
...
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
2013-01-23 12:50:31 +01:00
Daniel Baumann
df2d2f1789
Releasing version 3.0.1.
...
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
2013-01-23 12:50:30 +01:00
Daniel Baumann
17b269b03d
Applying Fedoras dosfstools-vfat-timingfix.diff from Bill Nottingham
...
<notting@redhat.com> to fix vfat timing issue. See
https://bugzilla.redhat.com/show_bug.cgi?id=448247 for more information.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
2013-01-23 12:50:28 +01:00
Ulrich Mueller
e597cafef4
Patch to check for bad number of clusters in dosfsck:
...
* FAT16 filesystems with 65525 clusters or more will be rejected
(Before, this was not tested for. Up to 65535 clusters were accepted
as good).
* For FAT32 filesystems with less than 65525 a warning message will be
output.
Macro MSDOS_FAT12 is now replaced by FAT12_THRESHOLD to make it
consistent with the definition in mkdosfs and to remove the dependency
on the kernel version.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
2013-01-23 12:50:27 +01:00
Dann Frazier
90102bcd54
Changing some wording to make the indended meaning of "full-disk device"
...
more obvious.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
2013-01-23 12:50:26 +01:00
Daniel Baumann
21e9ba0a43
Releasing version 3.0.0.
...
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
2013-01-23 12:50:25 +01:00
Daniel Baumann
eaf145d51b
Adding GPL headers to all files.
...
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
2013-01-23 12:50:23 +01:00
Daniel Baumann
0826117103
Adding new GPL license file.
...
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
2013-01-23 12:50:22 +01:00
Daniel Baumann
f8d6127d8b
Redoing Makefile from scratch.
...
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
2013-01-23 12:50:21 +01:00
Daniel Baumann
b4feb7319f
Removing whitespaces in all files at EOL and EOF.
...
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
2013-01-23 12:50:20 +01:00
Daniel Baumann
1410138d03
Adding Debians dosfslabel.8 manpage from Francois Wendling
...
<frwendling@free.fr>.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
2013-01-23 12:50:19 +01:00
Daniel Baumann
f62e7f27a7
Updating version.h includes to new location of version.h file.
...
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
2013-01-23 12:50:17 +01:00
Daniel Baumann
32e5952f4f
Removing old lsm file.
...
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
2013-01-23 12:50:16 +01:00
Daniel Baumann
25a433bd3d
Removing old cvsignore files.
...
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
2013-01-23 12:50:15 +01:00
Daniel Baumann
acac13fb85
Removing old build file.
...
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
2013-01-23 12:50:14 +01:00
Daniel Baumann
3ecdd21225
Removing old GPL license files.
...
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
2013-01-23 12:50:13 +01:00
Daniel Baumann
f183d0eaa9
Unifying dosfsck and mkdosfs Makefiles in common src/Makefile.
...
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
2013-01-23 12:50:12 +01:00
Daniel Baumann
61e7466965
Unifying dosfsck and mkdosfs sources in common src directory.
...
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
2013-01-23 12:50:11 +01:00
Daniel Baumann
7552d57527
Unifying dosfsck and mkdosfs manpages in common man directory.
...
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
2013-01-23 12:50:09 +01:00
Daniel Baumann
124598b2bd
Unifying dosfsck and mkdosfs documents in common doc directory.
...
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
2013-01-23 12:50:08 +01:00
Daniel Baumann
fb9c46b59a
Applying Gentoos dosfstools-2.11-preen.patch from Roy Marples
...
<uberlord@gentoo.org> to alias dosfsck -p to -a:
* Map -p to -a for baselayout-2, #177514 .
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
2013-01-23 12:50:07 +01:00
Daniel Baumann
aaa40a9bbc
Applying Gentoos dosfstools-2.11-build.patch from Mike Frysinger
...
<vapier@gentoo.org> to improve Makefile:
* Respect user settings #157785/#157786 by Diego Petteno.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
2013-01-23 12:50:06 +01:00
Daniel Baumann
251626dd60
Applying Gentoos dosfstools-2.11-verify-double-count-fix.patch from
...
Robin H. Johnson <robbat2@gentoo.org> to fix double count of files
during verification:
* Don't double-count n_files during a verification pass.
Bugzilla: http://bugs.gentoo.org/show_bug.cgi?id=99845
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
2013-01-23 12:50:04 +01:00
Daniel Baumann
e670ea82c9
Applying Gentoos dosfstools-2.11-fat32size.patch from Mike Frysinger
...
<vapier@gentoo.org> to fix generation of filesystems on 256meg devices:
* Fix generation of FAT filesystems on devices that are 256meg in size
Patch by Ulrich Mueller and accepted upstream
http://bugs.gentoo.org/112504
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
2013-01-23 12:50:03 +01:00
Daniel Baumann
a6dc6a4d4b
Applying Suses dosfstools-2.11-unsupported-sector-size.patch from Petr
...
Gajdos <pgajdos@suse.cz> to add sector size warning:
* added warning for creation msdos on filesystem with sector size
greater than 4096 [fate#303325]
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
2013-01-23 12:50:02 +01:00
Daniel Baumann
f74695618b
Applying Suses dosfstools-2.11-mkdosfs-geo0.diff from Ludwig Nussel
...
<lnussel@suse.de> to fix handling of zero heads and sectors:
* the HDIO_GETGEO ioctl works on device mapper devices but returns
zero heads and sectors. Therefore let's a) assume dummy values in
that case in mkdosfs and b) don't consider such fat file systems as
invalid in dosfsck. The Linux kernel accepts them anyways.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
2013-01-23 12:50:01 +01:00
Daniel Baumann
cf243e4a84
Applying Suses dosfstools-2.11-linuxfs.patch from Ruediger Oertel
...
<ro@suse.de> to not include linux/fs.h.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
2013-01-23 12:50:00 +01:00
Daniel Baumann
2d4f18457e
Applying Fedoras dosfstools-2.11-assumeKernel26.patch from Peter Vrabec
...
<pvrabec@redhat.com> to remove linux 2.6 conditionals:
* LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 0) does not work with
glibc-kernheaders-2.4-9.1.94
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
2013-01-23 12:49:59 +01:00
Daniel Baumann
739a6fb288
Applying Debians 99-conglomeration.dpatch (no other information
...
available).
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
2013-01-23 12:49:57 +01:00
Daniel Baumann
3b5ed8a4b1
Applying Debians 15-manpage-files.dpatch from Daniel Baumann
...
<daniel@debian.org> to improve dosfsck manpage:
* Lists fsckNNNN.rec files in FILES section (Closes : #444596 ).
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
2013-01-23 12:49:56 +01:00
Daniel Baumann
3b6a8634f4
Applying Debians 13-getopt.dpatch from Adonikam Virgo
...
<adonikam@virgonet.org> to fix mkdosfs getopt:
* Fixes backup sector getopt (Closes : #232387 , #479794 ).
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
2013-01-23 12:49:54 +01:00
Daniel Baumann
1b2c8ca3b4
Applying Debians 12-zero-slot.dpatch by Karl Tomlinson
...
<karlt@karlt.net> to fix dosfsck zero slot crashes:
* Fixes crashes due to zero slot numbers causing a negative offset in
the call to copy_lfn_part in lfn_add_slot. On amd64 this results in
a SIGSEGV in copy_lfn_part. On x86 the result is heap corruption and
thus sometimes a SIGSEGV or double free abort later. (Closes:
#152550 , #353198 , #356377 , #401798 ).
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
2013-01-23 12:49:48 +01:00
Daniel Baumann
eec8585c73
Applying Debians 11-memory-efficiency.dpatch from Eero Tamminen
...
<eero.tamminen@nokia.com> to improve dosfsck memory efficiency:
* Improves memory efficiency when checking filesystems.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
2013-01-23 12:49:45 +01:00