Commit Graph

59 Commits

Author SHA1 Message Date
christos 4ea9e53dee From Edgar: fix ino computation; allocate space for the superblock after
we know how big it is.
2007-02-15 19:00:11 +00:00
christos c4ee9f6d2e 64 bit inode changes 2005-08-19 02:07:18 +00:00
christos 31c88148c1 PR/23971: Greg A. Woods: Fix quotacheck infinite loop with uid == UINT32_MAX.
While I am there, pass WARNS=3
2004-12-12 05:57:03 +00:00
dsl c89c679638 fffv2 might not have FS_FLAGS_UPDATED set 2004-03-27 13:11:47 +00:00
dsl a78ca7231d When searching for the superblock, don't pick an ffsv1 superblock from the
location where we expect to find an ffsv2 superblock.
It could be the first alternate for a ffsv1 filesystem with 64k blocks.
Fixes part of PR kern/24809
2004-03-21 22:07:22 +00:00
jmmv b635f565e7 Homogenize usage messages: make the 'usage' word all lowercase, as this seems
to be the most common practice in our tree.
2004-01-05 23:23:32 +00:00
wiz 6cd16c1552 New sentence, new line; sort options. 2004-01-05 18:46:44 +00:00
wiz e055b80b2e Add -l to usage. 2004-01-05 18:46:33 +00:00
christos f3e0632950 document -l, bump date, thanks wiz 2004-01-05 17:43:44 +00:00
christos f2563a1a34 don't allow -l without -a 2004-01-05 17:43:25 +00:00
wiz 64b5cffc26 Collapse single letter options. Sort option descriptions. 2004-01-05 17:27:17 +00:00
wiz d8ca651179 Add -q to usage. 2004-01-05 17:26:57 +00:00
christos 43c0378045 PR/23971: Robert Elz: Quotacheck fails when max uid is present and takes
forever if there are large gaps in the uid space. It also does not work
properly with the fsck preen code it uses.
2004-01-05 00:17:07 +00:00
agc 326b2259b7 Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22366, verified by myself.
2003-08-07 11:25:11 +00:00
itojun 7bb0ef551c use bounded string op 2003-07-13 12:18:55 +00:00
fvdl 4589db98fb Skip over inodes <= ROOTINO for getnextinode(). PR 21208 by Geoff Wing. 2003-04-17 09:21:01 +00:00
fvdl 42614ed3f3 Add support for UFS2. UFS2 is an enhanced FFS, adding support for
64 bit block pointers, extended attribute storage, and a few
other things.

This commit does not yet include the code to manipulate the extended
storage (for e.g. ACLs), this will be done later.

Originally written by Kirk McKusick and Network Associates Laboratories for
FreeBSD.
2003-04-02 10:39:19 +00:00
wiz 990562bfef .Nm does not need a dummy argument ("") before punctuation or
for correct formatting of the SYNOPSIS any longer.
2003-02-25 10:34:36 +00:00
fvdl a3ff3a3038 Bump daddr_t to 64 bits. Replace it with int32_t in all places where
it was used on-disk, so that on-disk formats remain the same.
Remove ufs_daddr_t and ufs_lbn_t for the time being.
2003-01-24 21:55:02 +00:00
wiz 46dd4805d4 Drop trailing whitespace. 2002-12-18 19:37:26 +00:00
bouyer c841e4e679 Add SIGINFO support. 2002-12-10 22:42:00 +00:00
lukem 17d72c8a6b use NETBSDSRCDIR as appropriate 2002-09-18 03:54:26 +00:00
wiz a2d753e3ef Whitespace nits. 2002-01-19 11:44:57 +00:00
lukem 1b81d6353d remove third argument (`int ns') from ffs_sb_swap(), and let ffs_sb_swap()
determine the endianness of the `struct fs *o' superblock from o->fs_magic
and set needswap as necessary, rather than trusting the caller to get
it right.  invariably, almost every caller of ffs_sb_swap() was calling it
with ns set to the wrong value for ns anyway!
ansi KNF ffs_bswap.c declarations whilst here.

this fixes all sorts of problems when trying to use other-endian file systems,
notably the kernel trying to access memory *way* off, possibly corrupting or
panicing, and userland programs SEGVing and/or corrupting things (e.g,
"fsck_ffs -B"  to swap a file system endianness).

whilst the previous rev of ffs_bswap.c (1.10, 2000/12/23) made this problem
worse, i suspect that the problem was always there and previous versions
just happened not to trash things at the wrong time.

FFS_EI should now be a lot more stable.
2001-08-17 02:18:46 +00:00
cgd 25bdbb661e convert to use getprogname() 2001-02-19 23:22:40 +00:00
abs 542d17320b Update - quotacheck is run from rc, not rc.local 1999-03-30 23:58:46 +00:00
abs 4bd70a584f If -a, we do not want to pay the cost of processing every group and password
entry if there are no filesystems with quotas. Speeds up boot on a large YP
site without quotas considerably. If a filesystem has quotas we process
/etc/fstab twice, which is very cheap in relative terms.
1999-03-30 23:56:26 +00:00
garbled d1407362ba More and more .Os cleanups. .Os is defined in the tmac.doc-common file,
so we shouldn't override it with versions in the manpages.  Many more to
come.
1999-03-22 18:43:46 +00:00
ross b1934d6034 {} fixes from Erik Bertelsen <erik@erik-be.uni-c.dk> (PR 6047) to shut up egcs. 1998-08-27 20:31:00 +00:00
mycroft 1f86e5830d const poisoning. 1998-07-27 00:52:00 +00:00
lukem 58c55f6451 add missing "${.CURDIR}/" 1998-03-20 07:43:22 +00:00
bouyer 67010392f2 Add support for non-native byteorder FFS.
The quota file is still in host byteorder. quotacheck needs to be re-run
when a FS has been moved to an architecture to another. Running quota
on a non-native byteorder ffs is considered a marginal case.
1998-03-18 17:22:38 +00:00
lukem 0a94f4f077 use CPPFLAGS instead of CFLAGS 1997-10-25 06:57:53 +00:00
lukem f5bf267d90 enable WARNS=1 by default, but disable in unclean 3rd party code 1997-10-18 06:42:25 +00:00
lukem 756f7931f0 minor .Nm cleanup 1997-10-17 12:36:36 +00:00
christos 6807fc37b2 Fix uninitialized variable 1997-09-19 21:22:38 +00:00
lukem a9c0a86a3c fix .Nm usage 1997-09-16 13:10:29 +00:00
lukem 375567dca2 * resolve conflicts from lite-2 merge
* cleanup for WARNS=1
1997-09-16 13:07:59 +00:00
veego 10042202c7 Use ../sbin/ to get the right path after quotacheck has moved to usr.sbin. 1997-06-21 19:16:19 +00:00
gwr 10e180cc49 Back out the .PATH.c changes. The .depend problem (and others)
will be fixed using the new .NOPATH make feature instead.
1997-05-08 21:11:01 +00:00
gwr 012e528f2e Use .PATH.c: ... 1997-05-06 20:44:56 +00:00
christos 4df3bfced1 Update for newer preen interface. 1996-09-28 19:20:44 +00:00
christos c1a92bcb82 This broke when preen.c moved from fsck_ffs to fsck. Update and cleanup. 1996-09-27 23:25:34 +00:00
cgd 9b70f26fe8 deal with the fact that fsck has moved 1996-04-05 04:17:54 +00:00
mark 036d834ee8 Use an integer instead of a char for the getopt() return value in order
to work with compilers that use unsigned chars.
Compare the getopt() return value with -1 instead of EOF.
1996-03-30 22:34:25 +00:00
jtc 0a1e7de7b6 merge in changes from 1.1 release branch 1995-11-28 05:25:28 +00:00
cgd 0114e805ce convert to new RCS Id conventions; reduce my headache 1995-03-18 14:54:19 +00:00
cgd f24d9135d1 <sys/queue.h> is no longer needed. 1995-01-03 02:06:24 +00:00
cgd 06e2955ff1 specify man pages the new way. 1994-12-22 10:44:04 +00:00
cgd a2fc49f975 compile against new headers 1994-12-18 16:01:13 +00:00