History log of /freebsd-10.0-release/sbin/fsck_msdosfs/
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
259065 07-Dec-2013 gjb

- Copy stable/10 (r259064) to releng/10.0 as part of the
10.0-RELEASE cycle.
- Update __FreeBSD_version [1]
- Set branch name to -RC1

[1] 10.0-CURRENT __FreeBSD_version value ended at '55', so
start releng/10.0 at '100' so the branch is started with
a value ending in zero.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

256281 10-Oct-2013 gjb

Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation


242511 03-Nov-2012 jh

Print a newline after the error message.

PR: bin/168447
Submitted by: Boris Kochergin


241807 21-Oct-2012 uqs

Make fsck and fsck_msdosfs WARNS=6 clean

- sprinkle const
- add volatile qualifier to avoid vfork clobbering

Inspired by: NetBSD
PR: bin/139802
Reviewed by: ed


241806 21-Oct-2012 uqs

sbin/fsck: s/perror/perr/ to avoid shadowing

- rename some other vars too
- merge NetBSD license changes

Obtained from: NetBSD
PR: bin/139802
Reviewed by: ed


236213 29-May-2012 kevlo

Make sure that each va_start has one and only one matching va_end,
especially in error cases.


227081 04-Nov-2011 ed

Add missing static keywords for global variables to tools in sbin/.

These tools declare global variables without using the static keyword,
even though their use is limited to a single C-file, or without placing
an extern declaration of them in the proper header file.


209364 20-Jun-2010 brian

Fix some style(9), although there's a lot more issues here.
Fix some casting errors.

PR: 142384
Submitted by: giffunip at tutopia dot com
Obtained from: NetBSD
MFC after: 3 weeks


208596 27-May-2010 uqs

mdoc: .Ud has attitude, it takes no argument!


203874 14-Feb-2010 kib

Rename fields to match better the msdosfs headers. This work is still
incomplete as some info doesn't really belong to the structs where it is
defined.

Submitted by: Pedro F. Giffuni <giffunip tutopia com>
Reviewed by: bde
MFC after: 2 weeks


203872 14-Feb-2010 kib

Bug fixes from NetBSD
- fix sign-compare issues.
- ANSIfy a couple of functions.
- Remove more duplicate #includes.
- Memory leak found by Coverity on NetBSD.

Submitted by: Pedro F. Giffuni <giffunip tutopia com>
Reviewed by: bde
MFC after: 2 weeks


203871 14-Feb-2010 kib

License changes from NetBSD.
Move to 2 clause license, approved by Wolfgang Solfrank.

Submitted by: Pedro F. Giffuni <giffunip tutopia com>
MFC after: 2 weeks


193943 10-Jun-2009 avg

fsck_msdosfs: accept no-op -C option for compatibilty with fsck

Submitted by: marck
Reviewed by: current@
Approved by: jhb (mentor)
MFC after: 1 week


175854 31-Jan-2008 yar

Spot two more bugs WRT adherence to the local prompt style.


175853 31-Jan-2008 yar

Use consistent style in user prompts: the question is in a new line
and begins with a capital letter. The rest of pwarn/ask pairs here
follows this style.

Requested by: bde


175287 13-Jan-2008 yar

Prevent the `fix?' question from running together
with the problem description on the terminal: use
conventional punctuation.


143315 09-Mar-2005 stefanf

Prefer the __printflike() macro to GCC's __attribute__ stuff.


141612 10-Feb-2005 ru

Sync program's usage() with manpage's SYNOPSIS.


140415 18-Jan-2005 ru

Sort sections.


129327 17-May-2004 ru

Assorted markup, grammar, and spelling fixes.


128463 20-Apr-2004 tjr

Only compare the interesting part of the bootblock with its backup.
Allow check to proceed with bad backup boot block if we're doing a
readonly check. Various typos in comments.

Obtained from: NetBSD


126178 23-Feb-2004 johan

style.Makefile(5):
Use WARNS?= instead of WARNS=.


125486 05-Feb-2004 bde

Fixed operation of -f to match its documentation and fsck_ffs. It
has now has no effect except in combination with -p, and plain fsck
checks all file systems instead of skipping clean ones for msdosfs
only.

Renamed the force flag to skipclean and inverted its logic as in
fsck_ffs.


125485 05-Feb-2004 bde

Fixed some bugs in checkdirty(). The check for the clean bit was
combined with the the signature check in a wrong way (basically
(dirty:= signature_recognised() && !clean) instead of
(mightbedirty:= !signature_recognized || !clean), so file systems
with unrecognized signatures were considered clean. Many of the
don't-care and reserved bits were not ignored, so some file systems
with valid signatures were unrecognized. One of my FAT32 file systems
has a signature of f8,ff,ff,ff,ff,ff,ff,f7 when dirty, but only
f8,ff,ff,0f,ff,ff,ff,07 was recognised as dirty for FAT32, so the
fail-unsafeness made my file system always considered clean.

Check the i/o non-error bit in checkdirty(). Its absence would give
an unrecognized signature in code that is unaware of it, but we now
mask it out of the signature so we have to check it explicitly. This
combines naturally with the check of the clean bit.

Reviewed by: rnordier (except for final details)


125471 05-Feb-2004 bde

Document the dirty flag and other bits in the first 2 FAT entries
better. There is a related I/O error flag which we don't support in
the kernel but must support here. (Support for bits that we don't
understand here is mostly automatic by fail-safeness, but checkdirty()
has fail-unsafeness.) There are some reserved and don't-care bits
that weren't fully documented and aren't always masked properly. The
comment about the bits in readfat() will be removed when the masking
is fixed.

Submitted by: rnordier


125469 05-Feb-2004 bde

Prepare to fix checkdirty() by moving it from check.c to fat.c. It is
identical to a subset of readfat(), so it belongs near readfat() if not
in it.


123917 28-Dec-2003 bde

Oops, highly non-KNF indentation is normal for large expressions in
this program. Gnu indentation is used for these. Redo the fix for
the large expression at the end of the previous commit to give gnu
indentation. The original version was gnuish but had 9 bogus extra
characters of indentation in its continuation lines, perfect tab
lossage on every line, and other bugs.

The previous commit log should have claimed to fix style bugs in the
previous-1 commit (1.5), not the forced null previous commit (1.6).


123892 27-Dec-2003 bde

Expanded the comment about the -F flag.

Fixed a nearby style bug (unreachable break).


123888 27-Dec-2003 bde

fsck_msdosfs/main.c:
- Don't use errexit() to (mis)implement usage(). Using errexit() just
gave the bogus exit code 8.
- Fixed 3 other style bugs in usage().

fsck/fsutil.[ch]:
- Garbage-collected errexit(). It is essentially just one of NetBSD's
fsck_ext2fs error printing functions, but we don't have fsck_ext2fs
and the function is unsuitable for use there too (since pfatal() is
also used and it printf to a different stream).


123883 27-Dec-2003 bde

Fixed style bugs in previous commit (unsorting of declarations and poor
wording in a comment).


123882 27-Dec-2003 bde

Fixed quoting of `clean'.

Obtained from: fsck_ffs.8


123881 27-Dec-2003 bde

Fixed some style bugs in previous commit (mainly highly non-KNF indentation).


123880 27-Dec-2003 bde

Fixed style bugs in previous commit (unsorting of the global declarations
and addition of a tab to a blank line).


123873 26-Dec-2003 trhodes

Make msdosfs support the dirty flag in FAT16 and FAT32.
Enable lockf support.

PR: 55861
Submitted by: Jun Su <junsu@m-net.arbornet.org> (original version)
Reviewed by: make universe


121726 30-Oct-2003 trhodes

In check.c:
Avoid shadowing declarations.
Avoid compairing signed and unsigned types.


116036 08-Jun-2003 charnier

mount_msdos -> mount_msdosfs


102464 27-Aug-2002 trhodes

Fix some 'SYNOPSIS' and 'usage' messages.


102231 21-Aug-2002 trhodes

s/filesystem/file system/g as discussed on -developers


101791 13-Aug-2002 ru

mdoc(7) police: Use the .Ud macro.


99501 06-Jul-2002 charnier

The .Nm utility


96707 16-May-2002 trhodes

more file system > filesystem


95258 22-Apr-2002 des

Usage style sweep: spell "usage" with a small 'u'.
Also change one case of blatant __progname abuse (several more remain)
This commit does not touch anything in src/{contrib,crypto,gnu}/.


92839 20-Mar-2002 imp

o __P removed
o ansi function prototypes
o unifdef -D__STDC__
o __dead2 on usage prototype
o remove now-bogus main prototype


87325 04-Dec-2001 obrien

Default to WARNS=2.
Binary builds that cannot handle this must explicitly set WARNS=0.

Reviewed by: mike


79978 19-Jul-2001 obrien

Document "-F".


79977 19-Jul-2001 obrien

Change exit return value to better match fsck_ffs(8).


79976 19-Jul-2001 obrien

Recognize the "-F" option which requests whether the filesystem needs to
be cleaned immediately in foreground, or if its cleaning can be deferred
to background.

Submitted by: Maxime Henrion <mux@qualys.com>


79578 11-Jul-2001 ru

mdoc(7) police: fixed markup and program name.


79456 09-Jul-2001 obrien

Style tweaks.


79455 09-Jul-2001 obrien

Add fsck_msdosfs.

Obtained from: NetBSD