summaryrefslogtreecommitdiffstats
path: root/sbin/fsck_msdosfs
Commit message (Collapse)AuthorAgeFilesLines
* Assorted markup, grammar, and spelling fixes.ru2004-05-171-2/+2
|
* Only compare the interesting part of the bootblock with its backup.tjr2004-04-201-4/+8
| | | | | | | Allow check to proceed with bad backup boot block if we're doing a readonly check. Various typos in comments. Obtained from: NetBSD
* style.Makefile(5):johan2004-02-231-1/+1
| | | | Use WARNS?= instead of WARNS=.
* Fixed operation of -f to match its documentation and fsck_ffs. Itbde2004-02-053-7/+6
| | | | | | | | | 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.
* Fixed some bugs in checkdirty(). The check for the clean bit wasbde2004-02-051-9/+27
| | | | | | | | | | | | | | | | | | | 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)
* Document the dirty flag and other bits in the first 2 FAT entriesbde2004-02-051-0/+18
| | | | | | | | | | | | 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
* Prepare to fix checkdirty() by moving it from check.c to fat.c. It isbde2004-02-052-43/+43
| | | | | identical to a subset of readfat(), so it belongs near readfat() if not in it.
* Oops, highly non-KNF indentation is normal for large expressions inbde2003-12-281-6/+5
| | | | | | | | | | | 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).
* Expanded the comment about the -F flag.bde2003-12-271-2/+8
| | | | Fixed a nearby style bug (unreachable break).
* fsck_msdosfs/main.c:bde2003-12-271-2/+4
| | | | | | | | | | | | - 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).
* Fixed style bugs in previous commit (unsorting of declarations and poorbde2003-12-271-7/+8
| | | | wording in a comment).
* Fixed quoting of `clean'.bde2003-12-271-1/+3
| | | | Obtained from: fsck_ffs.8
* Fixed some style bugs in previous commit (mainly highly non-KNF indentation).bde2003-12-271-15/+15
|
* Fixed style bugs in previous commit (unsorting of the global declarationsbde2003-12-271-2/+2
| | | | and addition of a tab to a blank line).
* Make msdosfs support the dirty flag in FAT16 and FAT32.trhodes2003-12-264-10/+66
| | | | | | | | Enable lockf support. PR: 55861 Submitted by: Jun Su <junsu@m-net.arbornet.org> (original version) Reviewed by: make universe
* In check.c:trhodes2003-10-302-5/+2
| | | | | Avoid shadowing declarations. Avoid compairing signed and unsigned types.
* mount_msdos -> mount_msdosfscharnier2003-06-081-1/+1
|
* Fix some 'SYNOPSIS' and 'usage' messages.trhodes2002-08-272-3/+3
|
* s/filesystem/file system/g as discussed on -developerstrhodes2002-08-217-21/+21
|
* mdoc(7) police: Use the .Ud macro.ru2002-08-131-1/+2
|
* The .Nm utilitycharnier2002-07-061-2/+3
|
* more file system > filesystemtrhodes2002-05-163-6/+6
|
* Usage style sweep: spell "usage" with a small 'u'.des2002-04-221-1/+1
| | | | | Also change one case of blatant __progname abuse (several more remain) This commit does not touch anything in src/{contrib,crypto,gnu}/.
* o __P removedimp2002-03-204-156/+67
| | | | | | | o ansi function prototypes o unifdef -D__STDC__ o __dead2 on usage prototype o remove now-bogus main prototype
* Default to WARNS=2.obrien2001-12-041-0/+1
| | | | | | Binary builds that cannot handle this must explicitly set WARNS=0. Reviewed by: mike
* Document "-F".obrien2001-07-191-0/+7
|
* Change exit return value to better match fsck_ffs(8).obrien2001-07-191-1/+1
|
* Recognize the "-F" option which requests whether the filesystem needs toobrien2001-07-191-1/+5
| | | | | | | be cleaned immediately in foreground, or if its cleaning can be deferred to background. Submitted by: Maxime Henrion <mux@qualys.com>
* mdoc(7) police: fixed markup and program name.ru2001-07-111-13/+16
|
* Style tweaks.obrien2001-07-091-2/+4
|
* Add fsck_msdosfs.obrien2001-07-099-0/+2716
Obtained from: NetBSD
OpenPOWER on IntegriCloud