aboutsummaryrefslogtreecommitdiff
path: root/sbin/quotacheck/preen.c
Commit message (Collapse)AuthorAgeFilesLines
* General further adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-201-1/+3
| | | | | | | | | | | | | | | | | Mainly focus on files that use BSD 3-Clause license. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. Special thanks to Wind River for providing access to "The Duke of Highlander" tool: an older (2014) run over FreeBSD tree was useful as a starting point. Notes: svn path=/head/; revision=326025
* Renumber copyright clause 4Warner Losh2017-02-281-1/+1
| | | | | | | | | | | | Renumber cluase 4 to 3, per what everybody else did when BSD granted them permission to remove clause 3. My insistance on keeping the same numbering for legal reasons is too pedantic, so give up on that point. Submitted by: Jan Schaumann <jschauma@stevens.edu> Pull Request: https://github.com/freebsd/freebsd/pull/96 Notes: svn path=/head/; revision=314436
* getfsent(3) will return NULL on EOF or error.Marcelo Araujo2016-04-191-1/+1
| | | | | | | MFC after: 2 weeks. Notes: svn path=/head/; revision=298239
* Convert quotacheck to use new quotafile functions in libutil.Kirk McKusick2009-12-271-34/+43
| | | | | | | Still to come, conversion between 64-bit and 32-bit quotafile formats. Notes: svn path=/projects/quota64/; revision=201039
* Drag this code kicking and screaming into the twenty-first century.Dag-Erling Smørgrav2008-07-021-8/+8
| | | | Notes: svn path=/head/; revision=180187
* Sync up quotacheck's preen.c with fsck's. This makes quotacheckMike Pritchard2008-01-261-179/+176
| | | | | | | | | | | | process parallel checks in the same way as fsck, since fsck supports pass numbers other than 0, 1 or 2. Without this, quotacheck would ignore file systems with pass numbers > 2. The -l (maxrun) option is now deprecated and can be tuned with pass numbers in /etc/fstab if needed. Notes: svn path=/head/; revision=175678
* Fix "quotacheck -a" from core dumping on 64 bit systems by correctlyMike Pritchard2007-09-161-9/+10
| | | | | | | | | | | declaring the return value used by the routines in preen.c as a pointer type, instead of "int", which was causing the pointer to be truncated. Tested by: marck Approved by: re (bmah) Notes: svn path=/head/; revision=172193
* Remove advertising clause from University of California Regent's license,Mark Murray2004-04-091-4/+0
| | | | | | | | | per letter dated July 22, 1999. Approved by: core, imp Notes: svn path=/head/; revision=128073
* Use __FBSDID() to quiet GCC 3.3 warnings.David E. O'Brien2003-05-031-4/+4
| | | | Notes: svn path=/head/; revision=114589
* s/filesystem/file system/g as discussed on -developersTom Rhodes2002-08-211-1/+1
| | | | 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
* 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
* SpellingPhilippe Charnier2001-12-111-1/+1
| | | | Notes: svn path=/head/; revision=87667
* 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
* 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
* 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
* $Id$ -> $FreeBSD$Peter Wemm1999-08-281-1/+1
| | | | 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 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
* 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
* 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
* BSD 4.4 Lite sbin SourcesRodney W. Grimes1994-05-261-0/+354
Note: XNSrouted and routed NOT imported here, they shall be imported with usr.sbin. Notes: svn path=/head/; revision=1558