summaryrefslogtreecommitdiffstats
path: root/sbin/quotacheck
Commit message (Collapse)AuthorAgeFilesLines
* MFC r314655:ngie2017-05-301-1/+1
| | | | | | bin: normalize paths using SRCTOP-relative paths or :H when possible This simplifies make logic/output
* For pointers use NULL instead of 0.araujo2016-05-161-1/+1
| | | | MFC after: 2 weeks.
* getfsent(3) will return NULL on EOF or error.araujo2016-04-191-1/+1
| | | | MFC after: 2 weeks.
* Create packages for atm, ccdconfig, devd, ipf, ipfw,gjb2016-02-091-0/+1
| | | | | | | | iscsi, natd, nandfs, pf, quotacheck, and routed. Add ping6 and rtsol to the runtime package. Sponsored by: The FreeBSD Foundation
* Add META_MODE support.sjg2015-06-131-0/+19
|\ | | | | | | | | | | | | | | | | | | | | Off by default, build behaves normally. WITH_META_MODE we get auto objdir creation, the ability to start build from anywhere in the tree. Still need to add real targets under targets/ to build packages. Differential Revision: D2796 Reviewed by: brooks imp
| * dirdeps.mk now sets DEP_RELDIRsjg2015-06-081-2/+0
| |
| * Merge sync of headsjg2015-05-271-2/+1
| |\ | |/ |/|
| * Updated dependenciessjg2014-05-161-1/+0
| |
| * Updated dependenciessjg2014-05-101-0/+2
| |
| * Updated dependenciessjg2013-03-111-0/+1
| |
| * Updated dependenciessjg2013-02-161-2/+0
| |
| *-. Sync from headsjg2012-11-041-4/+6
| |\ \
| * | | Sync FreeBSD's bmake branch with Juniper's internal bmake branch.marcel2012-08-221-0/+20
| | |/ | |/| | | | | | | Requested by: Simon Gerraty <sjg@juniper.net>
* | | Convert sbin/ to LIBADDbapt2014-11-251-2/+1
| |/ |/| | | | | Reduce overlinking
* | Fix sbin/ build with a 64-bit ino_t.mdf2012-09-271-4/+6
|/ | | | Original code by: Gleb Kurtsou
* Remove trailing whitespace per mdoc lint warningeadler2012-03-291-1/+1
| | | | | | | Disussed with: gavin No objection from: doc Approved by: joel MFC after: 3 days
* Update to current version of head.mckusick2010-04-281-1/+1
|\
| * Fix several typos in macros or macro misusage.uqs2010-03-121-1/+1
| | | | | | | | | | | | Found by: make manlint Reviewed by: ru Approved by: philip (mentor)
* | Add the -c option to quotacheck to use the quota_convert(3) function tomckusick2009-12-282-5/+63
| | | | | | | | convert between quota file formats.
* | Convert quotacheck to use new quotafile functions in libutil.mckusick2009-12-274-236/+109
|/ | | | Still to come, conversion between 64-bit and 32-bit quotafile formats.
* Drag this code kicking and screaming into the twenty-first century.des2008-07-022-54/+29
|
* Sync up quotacheck's preen.c with fsck's. This makes quotacheckmpp2008-01-265-199/+237
| | | | | | | | | 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.
* Quotacheck may possibly skip quota accounting for up to 2 filesmpp2008-01-151-3/+14
| | | | | | | | | | on a filesystem if the quota data files reside on a different filesystem (e.g. the userquota=/somepath,groupquota=/somepath2 options are specified in /etc/fstab to place the quota files somewhere other than the default location). Fix quotacheck to only skip accounting if the quota data file actually resides on the filesystem being checked.
* Fix "quotacheck -a" from core dumping on 64 bit systems by correctlympp2007-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)
* Flush stdout at the end of the update phase to prevent possiblempp2007-09-141-0/+1
| | | | | | duplicate output when "quotacheck -a -v" is used. Approved by: re (bmah)
* If two files systems, /a and /b are marked as having quotas enabledmpp2007-02-041-6/+17
| | | | | | | | | | | | | in fstab and they are normally mounted as /a/b, if /b is not mounted, the various quota utilities will incorrectly operate with the quotas on /a (silently) when operations are attemted on /b. Sync up all the hasquota() routines between all the different quota utilities and change it to detect if the file system we are attempting to perform quota operations on is not currently mounted and warn the user accordingly. PR: bin/38918
* Do not touch the block or i-node grace times for id 0.mpp2007-02-031-2/+2
| | | | | These are used to indicate the default grace period for the file system, and should not be touched by quotacheck.
* Fix quotqcheck to correctly use the curinode count, and not thempp2007-02-031-2/+2
| | | | | curblock count when checking if the inode soft limit has been crossed.
* Bump .Dd.mpp2007-01-251-1/+1
|
* Add a BUGS section that shows that ids that appear to bempp2007-01-251-0/+12
| | | | | | | | negative are now ignored by the quota system and that extremely large ids may make quotacheck run for a very long time. Also mention that "options QUOTA" is required for the kernel to provide quota support.
* Use fseeko to seek in the file, instead of fseek to prevent seekmpp2007-01-231-2/+2
| | | | errors for extremely large uids (e.g. in the billions range).
* Make sure that unknown uids/gids that now have non-zero usage andmpp2007-01-231-7/+24
| | | | | had a previously recorded usage of zero are correctly displayed in verbose mode. Generalize the print routine a little too.
* Quota system cleanup.mpp2007-01-201-29/+137
| | | | | | | | | | | | | | | | | | | | | | | 1) Do not account for uids/gids that appear negative to prevent the creation of 131GB+ quota files. This is the same as the kernel now determines which files to provide quota accounting for. Related to PR kern/38156. This should also prevent boots from hanging if a negative uid appears in the file systems. 2) Do not count system files in the usage counts. These currently are file system snapshot and quota data files. This is how the kernel now handles those files. 3) Correctly generate new quota data files if the current files do not exist or are zero length in size. PR kern/30958. It should now be possible to newfs / mount / touch quota.{user,group} and quotaon a file system and have everything work. 4) Change some diagnostics to report the file system and type of id (uid or gid) that is being reported. 5) Truncate the quota data files if possible, instead of letting them grow to a big enough size to hold the largest UID/GID on the system (typically "nobody"). The kernel should now be able to grow the files as needed without deadlocking the system. PR: kern/30958, kern/38156
* Document the -l option.ceri2006-11-072-2/+16
| | | | | Reviewed by: brd Approved by: ru (mentor)
* Sync program's usage() with manpage's SYNOPSIS.ru2005-02-102-10/+5
|
* Remove advertising clause from University of California Regent's license,markm2004-04-093-12/+0
| | | | | | per letter dated July 22, 1999. Approved by: core, imp
* style.Makefile(5):johan2004-02-231-1/+1
| | | | Use WARNS?= instead of WARNS=.
* Userland signed char fixes for PPC build. Problems were using a chargrehan2004-01-221-2/+2
| | | | | | | | | return for getopt() and comparing to -1, ditto with fgetc() and EOF, and using the kg_nice value from <sys/user.h> Submitted by: Stefan Farfeleder <stefan@fafoe.narf.at> Reviewed by: obrien, bde (a while back) Tested lightly on: ppc, i386, make universe
* Prefer PATH_MAX to MAXPATHLEN. Both contain the trailing NUL, soimp2003-08-071-2/+2
| | | | remove the unneeded +1.
* Use __FBSDID() to quiet GCC 3.3 warnings.obrien2003-05-032-8/+8
|
* Create a new 32-bit fs_flags word in the superblock. Add code to movemckusick2002-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.
* Properly handle UFS2 sparsely allocated inodes. Fix bug that causedmckusick2002-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>
* Fix some 'SYNOPSIS' and 'usage' messages.trhodes2002-08-272-2/+2
|
* s/filesystem/file system/g as discussed on -developerstrhodes2002-08-213-18/+18
|
* Fixup preen.c to match its new residence.phk2002-08-091-1/+5
| | | | | The blockcheck() function is still pulled from fsck_ffs, it probably should live in libufs.
* The .Nm utilitycharnier2002-07-061-11/+14
|
* This commit adds basic support for the UFS2 filesystem. The UFS2mckusick2002-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>
* more file system > filesystemtrhodes2002-05-162-2/+2
|
* Sigh, more BBSIZE related breakage.phk2002-05-121-0/+1
| | | | Sponsored by: DARPA & NAI Labs.
* o remove __Pimp2002-03-211-16/+16
| | | | o remove main prototype
OpenPOWER on IntegriCloud