aboutsummaryrefslogtreecommitdiff
path: root/sbin/quotacheck
Commit message (Collapse)AuthorAgeFilesLines
* Create a new 32-bit fs_flags word in the superblock. Add code to moveKirk McKusick2002-11-271-2/+1
| | | | | | | | | | | | | | | | | | | | the old 8-bit fs_old_flags to the new location the first time that the filesystem is mounted by a new kernel. One of the unused flags in fs_old_flags is used to indicate that the flags have been moved. Leave the fs_old_flags word intact so that it will work properly if used on an old kernel. Change the fs_sblockloc superblock location field to be in units of bytes instead of in units of filesystem fragments. The old units did not work properly when the fragment size exceeeded the superblock size (8192). Update old fs_sblockloc values at the same time that the flags are moved. Suggested by: BOUWSMA Barry <freebsd-misuser@netscum.dyndns.dk> Sponsored by: DARPA & NAI Labs. Notes: svn path=/head/; revision=107294
* Properly handle UFS2 sparsely allocated inodes. Fix bug that causedKirk McKusick2002-11-201-24/+59
| | | | | | | | | | the error "quotacheck: bad inode number 1 to nextinode". Sponsored by: DARPA & NAI Labs. Reported-by: Franky <franky@jasna.tarnow.pl> and Matthew Kolb <muk@msu.edu> Notes: svn path=/head/; revision=107094
* Fix some 'SYNOPSIS' and 'usage' messages.Tom Rhodes2002-08-272-2/+2
| | | | Notes: svn path=/head/; revision=102464
* s/filesystem/file system/g as discussed on -developersTom Rhodes2002-08-213-18/+18
| | | | Notes: svn path=/head/; revision=102231
* Fixup preen.c to match its new residence.Poul-Henning Kamp2002-08-091-1/+5
| | | | | | | | The blockcheck() function is still pulled from fsck_ffs, it probably should live in libufs. Notes: svn path=/head/; revision=101592
* The .Nm utilityPhilippe Charnier2002-07-061-11/+14
| | | | Notes: svn path=/head/; revision=99501
* This commit adds basic support for the UFS2 filesystem. The UFS2Kirk McKusick2002-06-211-21/+59
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | filesystem expands the inode to 256 bytes to make space for 64-bit block pointers. It also adds a file-creation time field, an ability to use jumbo blocks per inode to allow extent like pointer density, and space for extended attributes (up to twice the filesystem block size worth of attributes, e.g., on a 16K filesystem, there is space for 32K of attributes). UFS2 fully supports and runs existing UFS1 filesystems. New filesystems built using newfs can be built in either UFS1 or UFS2 format using the -O option. In this commit UFS1 is the default format, so if you want to build UFS2 format filesystems, you must specify -O 2. This default will be changed to UFS2 when UFS2 proves itself to be stable. In this commit the boot code for reading UFS2 filesystems is not compiled (see /sys/boot/common/ufsread.c) as there is insufficient space in the boot block. Once the size of the boot block is increased, this code can be defined. Things to note: the definition of SBSIZE has changed to SBLOCKSIZE. The header file <ufs/ufs/dinode.h> must be included before <ufs/ffs/fs.h> so as to get the definitions of ufs2_daddr_t and ufs_lbn_t. Still TODO: Verify that the first level bootstraps work for all the architectures. Convert the utility ffsinfo to understand UFS2 and test growfs. Add support for the extended attribute storage. Update soft updates to ensure integrity of extended attribute storage. Switch the current extended attribute interfaces to use the extended attribute storage. Add the extent like functionality (framework is there, but is currently never used). Sponsored by: DARPA & NAI Labs. Reviewed by: Poul-Henning Kamp <phk@freebsd.org> Notes: svn path=/head/; revision=98542
* more file system > filesystemTom Rhodes2002-05-162-2/+2
| | | | Notes: svn path=/head/; revision=96707
* Sigh, more BBSIZE related breakage.Poul-Henning Kamp2002-05-121-0/+1
| | | | | | | Sponsored by: DARPA & NAI Labs. Notes: svn path=/head/; revision=96478
* o remove __PWarner Losh2002-03-211-16/+16
| | | | | | | o remove main prototype Notes: svn path=/head/; revision=92883
* o __P removedWarner Losh2002-03-201-17/+8
| | | | | | | | | | o ansi function prototypes o unifdef -D__STDC__ o __dead2 on usage prototype o remove now-bogus main prototype Notes: svn path=/head/; revision=92839
* Remove 'register' keyword.David E. O'Brien2002-03-201-8/+8
| | | | | | | | | It does not help modern compilers, and some may take some hit from it. (I also found several functions that listed *every* of its 10 local vars with "register" -- just how many free registers do people think machines have?) Notes: svn path=/head/; revision=92806
* Fix some function prototypes.Poul-Henning Kamp2002-01-252-24/+24
| | | | | | | | | | | | | Cure the "lets put everything in registers" ailment. Set WARNS=2 Fix two problems where casting messed up large quotafiles. PR: 34108 Submitted by: Maxim Katargin <kmv@asplinux.ru> MFC after: 3 weeks Notes: svn path=/head/; revision=89797
* SpellingPhilippe Charnier2001-12-111-1/+1
| | | | Notes: svn path=/head/; revision=87667
* Default to WARNS=2.David E. O'Brien2001-12-041-0/+2
| | | | | | | | | Binary builds that cannot handle this must explicitly set WARNS=0. Reviewed by: mike Notes: svn path=/head/; revision=87325
* Remove whitespace at EOL.Dima Dorfman2001-07-151-7/+7
| | | | Notes: svn path=/head/; revision=79754
* mdoc(7) police: removed HISTORY info from the .Os call.Ruslan Ermilov2001-07-101-1/+1
| | | | Notes: svn path=/head/; revision=79530
* - Backout botched attempt to introduce MANSECT feature.Ruslan Ermilov2001-03-261-0/+1
| | | | | | | - MAN[1-9] -> MAN. Notes: svn path=/head/; revision=74815
* Additions to run checks on live filesystems. This change will notKirk McKusick2001-03-211-0/+1
| | | | | | | | | | | | affect current systems until fsck is modified to use these new facilities. To try out this change, set the fsck passno to zero in /etc/fstab to cause the filesystem to be mounted without running fsck, then run `fsck_ffs -p -B <filesystem>' after the system has been brought up multiuser to run a background cleanup on <filesystem>. Note that the <filesystem> in question must have soft updates enabled. Notes: svn path=/head/; revision=74556
* Set the default manual section for sbin/ to 8.Ruslan Ermilov2001-03-201-1/+0
| | | | Notes: svn path=/head/; revision=74531
* Mention the edquota(8) utility when talking about editing quota.userNik Clayton2001-02-221-0/+3
| | | | | | | | | and quota.group. PR: docs/25124 Notes: svn path=/head/; revision=72876
* mdoc(7) police: use the new features of the Nm macro.Ruslan Ermilov2000-11-201-2/+2
| | | | Notes: svn path=/head/; revision=68960
* Reviewed by: rwatson, bpAdrian Chadd2000-10-091-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Approved by: rwatson Obtained from: NetBSD source tree Second part of the fsck wrappers commit. This commit enables the new fsck code (removing the fsck/* code and replacing it with the netbsd fsck wrapper code), and enabling some FFS-based utilities to compile. Details: * quotacheck, fsdb required modification to use the fsck_ffs/ code rather than fsck/ . This might change later since quotacheck requires preen.c which should exist in fsck/ rather than fsck_ffs/ * src/Makefile has fsck_ffs added to it so it it built as part of the tree now * share/doc/smm/03.fsck/ uses the SMM.doc/ stuff from fsck_ffs, not fsck. I've tested this, and it shouldn't require any changes on your machine. The fsck wrapper reads /etc/fsck and is command-line-compatible enough to not require rc changes (well, most changes unless you want to do anything nifty by specifying the fs types explicityly, read the man page if you want further details on what it can do.) This now allows us to support multiple filesystem types during bootup. Notes: svn path=/head/; revision=66868
* Reviewed by: rwatson, bpAdrian Chadd2000-10-091-42/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Approved by: rwatson Obtained from: NetBSD-current source tree The beginnings of the fsck wrappers stuff from NetBSD. This particular commit brings a newly repo-copied sbin/fsck_ffs/ (from sbin/fsck/) into fsck wrappers mode. A quick overview (the code reflects this): * Documentation changed to reflect fsck_ffs instead of fsck * Simply acts on a single filesystem, doesn't try to do any multiple filesystem magic - this is done by the fsck wrappers now And then specific to fsck_ffs: * link to /sbin/fsck_4.2bsd and /sbin/fsck_ufs. This is because right now the filesystem is of type ufs not ffs, and that during autodetection the labeltype rather than the VFS type is used - this is because when doing an autodetection of filesystem type in the fsck wrapper program, it does not have any link between label type (4.2bsd, vinum, etc) and VFS string. Note that this shouldn't break a build since the required buildworld Makefile magic and import of the fsck wrapper code into src/sbin/fsck/ will happen in a seperate commit. Notes: svn path=/head/; revision=66861
* Remove single-space hard sentence breaks. These degrade the qualitySheldon Hearn2000-03-011-1/+2
| | | | | | | | of the typeset output, tend to make diffs harder to read and provide bad examples for new-comers to mdoc. Notes: svn path=/head/; revision=57668
* Make fsck(8) do a MNT_RELOAD after cleaning for all read-only mountedPeter Wemm1999-12-301-8/+0
| | | | | | | | | | filesystems, not just for the root fs. Reviewed by: mckusick Submitted by: Paul Saab <ps@yahoo-inc.com> Notes: svn path=/head/; revision=55275
* Make fsck even more char/blk dev tolerant.Poul-Henning Kamp1999-11-271-16/+8
| | | | Notes: svn path=/head/; revision=53781
* Allow root-reloading also for chr devices.Poul-Henning Kamp1999-11-271-44/+3
| | | | Notes: svn path=/head/; revision=53754
* Indicate that we now control quota checking via an rc.conf variable,Matthew Hunt1999-09-061-5/+12
| | | | | | | | | instead of putting it in rc.local. Submitted by: Alex Perel <veers@disturbed.net> Notes: svn path=/head/; revision=51041
* $Id$ -> $FreeBSD$Peter Wemm1999-08-283-3/+3
| | | | Notes: svn path=/head/; revision=50476
* Also check against chardevs when looking for root.Poul-Henning Kamp1999-07-201-1/+3
| | | | Notes: svn path=/head/; revision=48935
* Cosmetic and documentation changes brought from earlier FreeBSD versions.Julian Elischer1998-12-031-0/+4
| | | | | | | (e.g. RCS Id:) Notes: svn path=/head/; revision=41477
* Reviewed by: Don Lewis <Don.Lewis@tsc.tdk.com>Julian Elischer1998-12-031-29/+33
| | | | | | | | | | | | | | | Submitted by: Kirk McKusick <mckusick@McKusick.COM> Obtained from: Mckusick, BSDI and a host of others This exactly matches Kirks sources imported under the Tag MCKUSICK2. These are as supplied by kirk with one small change needed to compile under freeBSD. Some FreeBSD patches will be added back, though many have been added to Kirk's sources already. Notes: svn path=/head/; revision=41474
* Correct use of .Nm. Add rcsid. Remove unused #includes. Use warn().Philippe Charnier1998-07-152-24/+27
| | | | | | | Errx(1, "malloc failed") is better than err(1, NULL). Notes: svn path=/head/; revision=37672
* Fixed printf format errors.Bruce Evans1998-06-281-6/+8
| | | | Notes: svn path=/head/; revision=37239
* Correct use of .Nm. Add rcsid. Remove unused #includes. Use err(3).Philippe Charnier1998-06-151-26/+20
| | | | Notes: svn path=/head/; revision=37000
* Guess the position of the drive number in the device name better soBruce Evans1998-04-071-6/+7
| | | | | | | | | | | | | | that `fsck -p' doesn't check multiple slices on the same drive concurrently. Don't invoke undefined behaviour when searching for the drive number in strange device names. PR: 6129 Reviewed by: phk Submitted by: Yuichi MATSUTAKA <matutaka@osa.att.ne.jp>, but rewritten by me. Notes: svn path=/head/; revision=35095
* Remove lines inside #ifdef 0/#endif.Philippe Charnier1997-06-301-32/+1
| | | | Notes: svn path=/head/; revision=27107
* Use err(3) instead of local err() (a errx() like function).Philippe Charnier1997-06-161-21/+19
| | | | Notes: svn path=/head/; revision=26675
* compare return value from getopt against -1 rather than EOF, per the finalWarner Losh1997-03-291-1/+1
| | | | | | | posix standard on the topic. Notes: svn path=/head/; revision=24359
* Finished (?) merging with Lite2: cleaned up #include mess.Bruce Evans1997-03-121-11/+9
| | | | | | | Fixed style bugs in FreeBSD changes. Notes: svn path=/head/; revision=23798
* Merge from Lite2. Note that Lite2 has it's own filesystem clean checkPeter Wemm1997-03-111-48/+51
| | | | | | | | skipping code that overrides ours sooner. One should be eliminated, but for now it works. Notes: svn path=/head/; revision=23675
* Don't give up just because we cant find the blkdev that correspondsPoul-Henning Kamp1996-10-271-2/+3
| | | | | | | to the name given as a chardev. Notes: svn path=/head/; revision=19212
* Allow the specification of a mountpoint, and resolve it s disk deviceJoerg Wunsch1996-10-251-1/+16
| | | | | | | | | | | using the fstab. Closes PR bin/129. Submitted by: jmg@nike.efn.org (John-Mark Gurney) Notes: svn path=/head/; revision=19185
* Silence some cc -Wall warnings in quotacheck.Mike Pritchard1996-02-271-8/+10
| | | | Notes: svn path=/head/; revision=14280
* Fix quotacheck to not do a bunch of unneeded fseeks if theMike Pritchard1996-02-271-2/+9
| | | | | | | | quota file information is accurate. This makes it about twice as fast when the uid name space is very large. Notes: svn path=/head/; revision=14271
* Print out an informative message if the verbose option is givenMike Pritchard1996-02-212-3/+7
| | | | | | | | | | | | | | and an unknown uid/gid is found in the file system. This is useful if you wind up with a file in your file system that has a uid that is extremely large, since quotacheck will wind up running a very very long time due to it not handling large gaps in uids very well (this is a problem that should be addressed some day). Update the man page to reflect that fact the the -v flag now prints some additional diagnostic messages. Notes: svn path=/head/; revision=14169
* `dev_bsize' must be reset to 1 before the bread() orDima Ruban1995-06-211-0/+1
| | | | | | | | | | | quotacheck -a will fail after the first partition (because dev_bsize is 512 and is messes up the superblock read of the second partition) Submitted by: dillon@best.com (Mattew Dillon) Notes: svn path=/head/; revision=9273
* Remove trailing whitespace.Rodney W. Grimes1995-05-301-1/+1
| | | | Notes: svn path=/head/; revision=8871
* Submitted by: phk, added to by bdeBruce Evans1995-04-021-13/+26
| | | | | | | Fix all the warnings from `gcc -Wall'. Notes: svn path=/head/; revision=7585