Commit Graph

15 Commits

Author SHA1 Message Date
lukem a2b5923e3e fix sign-compare issues 2009-04-11 06:59:18 +00:00
martin b47f782db6 Move to 2 clause license, approved by Wolfgang Solfrank. 2008-06-13 20:46:09 +00:00
gdt 9da1e4cf5f Change mismatch of bytes 11 to 90 to be a warning, not an error, and
print out the values of the bytes that do not match.
Add comment explaining that there is no documented rationale for the
check.

fsck_msdos checks that several bytes are equal in the primary and
backup bootblock.  There is no documented rationale.  The kernel does
not enforce this when mounting a filesystem.  I have a FAT32
filesystem on my disk (mounted as /share) which fails this check, but
is accepted by both Windows XP and NetBSD.  My volume differs in bytes
71-81.  The primary contains "SHARE " and the backup NUL bytes.

Further, fsck_msdos does not have code to repair the mismatch.  As a
result such filesystems can be used not checked.
2007-03-19 18:30:40 +00:00
hubertf d8a2863966 - removes unused ctype.h header
- correct comment in mount_nfs/getnfsargs.c: s/Nead/Need/

From: Slava Semushin <php-coder@altlinux.ru>
2007-03-10 00:30:36 +00:00
christos 15f3040f9f - don't leak memory on allocation failure.
- s/perror/perr and print how much we were trying to allocate.
2006-06-05 16:51:18 +00:00
xtraeme 65e67723b5 Kill __P(), ANSIfy, remove main() prototype. 2005-01-19 20:00:45 +00:00
ws ebd1f55e89 Only compare the interesting part of the bootblock with its backup. 2003-07-24 19:25:46 +00:00
augustss da3c0f78d9 Allow check to proceed with bad backup boot block if we're doing a readonly
check.
2001-12-22 17:25:20 +00:00
wiz 30b2bf87ed Various typos in comments (neccessary, sceme, choise, ...). 2001-07-26 15:05:07 +00:00
ws ea31d33a4a Since M$ doesn't maintain the FSINFO block correctly,
don't treat errors there as modifications.
1998-10-06 14:31:58 +00:00
ws d445160e23 Add support for FAT32
Support dropping lost cluster chains (on request by Christoph Badura)
While being here, fix some minor bugs, mostly with format strings
1997-10-17 11:19:23 +00:00
lukem 5a94f6748f * cleanup for WARNS=1
* getopt returns -1 not EOF
* cleanup manpage
1997-09-14 14:40:10 +00:00
christos a0c84e7de2 util -> fsutil 1996-09-27 23:22:50 +00:00
christos 442314ab53 - use error printing code from fsck(8)
- remove fstab walking code
- add missing prototypes
- add missing argument in dir.c near "Truncate", where delete() was being
  called with fewer args. I think the missing argument should be a zero,
  but Wolfgang should check...
1996-09-23 16:27:56 +00:00
ws 6ae4c91a82 Add fsck utility for msdosfs 1996-05-14 17:39:21 +00:00