aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/quot
Commit message (Collapse)AuthorAgeFilesLines
* Fix usr.bin/ and usr.sbin/ build with a 64-bit ino_t.Matthew D Fleming2012-09-271-3/+3
| | | | | | | Original code by: Gleb Kurtsou Notes: svn path=/head/; revision=241015
* The dump, fsck_ffs, fsdb, fsirand, newfs, makefs, and quot utilitiesKirk McKusick2011-01-241-1/+1
| | | | | | | | | | | | | | | | | include sys/time.h instead of time.h. This include is incorrect as per the manpages for the APIs and the POSIX definitions. This commit replaces sys/time.h where necessary with time.h. The commit also includes some minor style(9) header fixup in newfs. This commit is part of a larger effort by Garrett Cooper started in //depot/user/gcooper/posix-conformance-work/ -- to make FreeBSD more POSIX compliant. Submitted by: Garrett Cooper yanegomi at gmail dot com Notes: svn path=/head/; revision=217769
* Make `quot -a' work when we've got slashes in the device name.Ed Schouten2008-09-141-10/+2
| | | | | | | | | | | | | | | | A very long time ago we had raw device nodes. quot(8) was supposed to use these when running `quot -a'. For some reason the code got once changed to strip the device name until it reaches the last slash. This is not reliable, because this means /dev/mirror/foo will be stripped to /dev/foo. This bug also exists on RELENG_7 and RELENG_6, but I think I'll just merge them back somewhere after the upcoming releases. There's no rush. MFC after: 2 months Notes: svn path=/head/; revision=183018
* Drag this code kicking and screaming into the twenty-first century.Dag-Erling Smørgrav2008-07-021-75/+51
| | | | Notes: svn path=/head/; revision=180187
* o Check we have a non-NULL pointer to a super block before dereference it.Maxim Konovalov2006-09-301-1/+1
| | | | | | | | | PR: misc/103822 Submitted by: Dmitry Stefankov MFC after: 2 weeks Notes: svn path=/head/; revision=162831
* The quot command expected all inodes contents to be valid, howeverDavid Malone2006-02-251-3/+31
| | | | | | | | | | | | | | | | | | | | on UFS2 inodes are initialised as they are needed, rather than at newfs time. When quot encountered these inodes it could produce crazy results. Now, on UFS2 filesystems, quot's get_inode function will bzero unallicated inodes before passing them back to a caller. This is how UFS2 initialises new inodes, so this should work OK. Also, while I'm here, make quot exit with an error if it finds inodes of an unknown type. This should help catch future problems of this type. Reviewed by: iedowse MFC after: 1 week Notes: svn path=/head/; revision=156015
* Remove unused variables.Stefan Farfeleder2005-04-091-3/+1
| | | | Notes: svn path=/head/; revision=144841
* Sort sections.Ruslan Ermilov2005-01-181-7/+7
| | | | Notes: svn path=/head/; revision=140442
* Mechanically kill hard sentence breaks.Ruslan Ermilov2004-07-021-1/+2
| | | | Notes: svn path=/head/; revision=131500
* Use __FBSDID over rcsid[]. Protect copyright[] where needed.David E. O'Brien2003-05-031-4/+2
| | | | Notes: svn path=/head/; revision=114601
* Repair the UFS2 superblock location consistency check so that it succeedsTim J. Robbins2003-04-251-1/+1
| | | | | | | | | | on valid superblocks instead of issuing the error "not a BSD filesystem". fs_sblockloc is a byte offset, not a fragment number. This change makes quot work properly on UFS2 filesystems, which is important now that UFS2 is the default. Notes: svn path=/head/; revision=114009
* style.Makefile(5)David E. O'Brien2003-04-041-1/+2
| | | | Notes: svn path=/head/; revision=113091
* Remove contractions.Tom Rhodes2003-02-181-3/+3
| | | | | | | Use `Force' in place of `Cause' which sounds better. Notes: svn path=/head/; revision=111067
* Back out rev 1.19; getbsize(3)'s original interface has been restored.Mike Barcroft2002-12-301-1/+1
| | | | Notes: svn path=/head/; revision=108458
* Uniformly refer to a file system as "file system".Ruslan Ermilov2002-12-121-1/+1
| | | | | | | Approved by: re Notes: svn path=/head/; revision=107788
* another int * to size_t * change for getbsize() to make it compileAndrew Gallatin2002-10-241-1/+1
| | | | | | | on LP64 hosts Notes: svn path=/head/; revision=105883
* Use POSIX-style sort syntax in exampleAndrey A. Chernov2002-09-241-1/+1
| | | | Notes: svn path=/head/; revision=103912
* The .Nm utilityPhilippe Charnier2002-07-141-1/+3
| | | | Notes: svn path=/head/; revision=99968
* This commit adds basic support for the UFS2 filesystem. The UFS2Kirk McKusick2002-06-211-53/+87
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Unbreak Alpha build.Dag-Erling Smørgrav2002-05-151-2/+4
| | | | Notes: svn path=/head/; revision=96638
* Sigh... Yet a BBSIZE breakage.Poul-Henning Kamp2002-05-121-0/+1
| | | | Notes: svn path=/head/; revision=96479
* Reorder WARNS line for style.Mike Heffner2001-12-101-2/+1
| | | | | | | Pointed out by: bde Notes: svn path=/head/; revision=87629
* WARNS=2 cleanup.Mike Heffner2001-12-092-15/+41
| | | | | | | | PR: bin/32567 MFC after: 2 weeks Notes: svn path=/head/; revision=87554
* mdoc(7) police: removed HISTORY info from the .Os call.Ruslan Ermilov2001-07-101-1/+1
| | | | Notes: svn path=/head/; revision=79537
* mdoc(7) police: cosmetics.Ruslan Ermilov2001-07-051-1/+3
| | | | Notes: svn path=/head/; revision=79303
* Remove ncheck in an example; FreeBSD does not have it.Jens Schweikhardt2001-06-161-1/+3
| | | | | | | | | PR: 10158 Submitted by: Remy Card <card@ens.uvsq.fr> MFC after: 2 weeks Notes: svn path=/head/; revision=78349
* - Backout botched attempt to introduce MANSECT feature.Ruslan Ermilov2001-03-261-0/+1
| | | | | | | - MAN[1-9] -> MAN. Notes: svn path=/head/; revision=74816
* Set the default manual section for usr.sbin/ to 8.Ruslan Ermilov2001-03-201-1/+0
| | | | Notes: svn path=/head/; revision=74532
* Allow for the last arugment to be the mountpoint of a filesystem,Paul Saab2001-03-101-2/+9
| | | | | | | not just the device. Notes: svn path=/head/; revision=74071
* Add `_PATH_DEVZERO'.David E. O'Brien2000-12-091-1/+2
| | | | | | | Use _PATH_* where where possible. Notes: svn path=/head/; revision=69793
* mdoc(7) police: use the new features of the Nm macro.Ruslan Ermilov2000-11-201-1/+1
| | | | Notes: svn path=/head/; revision=68965
* /dev/rXXX -> /dev/XXXMike Smith2000-05-311-1/+1
| | | | Notes: svn path=/head/; revision=61106
* Fix various man pages to stop abusing the .Bx macro to generateMike Pritchard2000-01-231-1/+1
| | | | | | | the string "FreeBSD". Use the .Fx macro instead. Notes: svn path=/head/; revision=56416
* Do not repeat the name of the flag. Change alloc to allocate for betterPhilippe Charnier1999-11-272-8/+8
| | | | | | | spelling of printed messages. Notes: svn path=/head/; revision=53764
* $Id$ -> $FreeBSD$Peter Wemm1999-08-283-3/+3
| | | | Notes: svn path=/head/; revision=50479
* PR: bin/8624Matthew Dillon1998-12-131-2/+5
| | | | | | | | Fixed intermediate calculation overflow when reporting users with > 2GB of disk space. Notes: svn path=/head/; revision=41727
* .Sh ENVIRONMENT VARIABLES -> .Sh ENVIRONMENTPoul-Henning Kamp1998-05-131-2/+2
| | | | | | | | | PR: 6599 Reviewed by: phk Submitted by: Josh Gilliam <josh@quick.net> Notes: svn path=/head/; revision=36014
* Started getting rid of the compatibility cruft for the Lite1 mount()Bruce Evans1998-01-171-6/+2
| | | | | | | | | | | | and the pre-Lite2 vfsconf interfaces. For quot, just back out revs. 1.1 and 1.2 and change MNT_FFS to "ufs", so that vfsconf isn't used at all. Revs. 1.1 and 1.2 were hacks to get around f_fstypename not being in `struct statfs' in Lite1. Notes: svn path=/head/; revision=32595
* Use err(3). Silent -Wall.Philippe Charnier1997-10-102-77/+74
| | | | Notes: svn path=/head/; revision=30262
* environmental -> environment.Philippe Charnier1997-09-181-3/+3
| | | | Notes: svn path=/head/; revision=29563
* Cast argument to lseek() properly to off_t.Jordan K. Hubbard1997-08-131-2/+2
| | | | | | | | PR: 4246 Obtained from: review of PR and NetBSD sources. Notes: svn path=/head/; revision=28160
* Revert $FreeBSD$ to $Id$Peter Wemm1997-02-223-3/+3
| | | | Notes: svn path=/head/; revision=22997
* Make the long-awaited change from $Id$ to $FreeBSD$Jordan K. Hubbard1997-01-143-3/+3
| | | | | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise. Notes: svn path=/head/; revision=21673
* comma typosWolfram Schneider1996-12-231-2/+2
| | | | Notes: svn path=/head/; revision=20888
* Fix a bunch of spelling errors in a bunch of man pages.Mike Pritchard1996-01-301-2/+2
| | | | Notes: svn path=/head/; revision=13744
* No need to go back quite _that_ far to the MOUNT_UFS constant when we havePeter Wemm1995-11-031-2/+8
| | | | | | | | | a perfectly good getvfsbyname("ufs").. :-) Pointed out by: wollman and bde Notes: svn path=/head/; revision=12038
* Minor tweaks to get quot to compile on FreeBSD..Peter Wemm1995-11-033-6/+11
| | | | | | | Basically back-port the dynamic fsname strings back to static constants. Notes: svn path=/head/; revision=12036
* Import NetBSD's quot command, filling the gap in our sourcesPeter Wemm1995-11-033-0/+685
(We only have the man page...) Obtained from: NetBSD; Wolfgang Solfrank / TooLs GmbH. Notes: svn path=/vendor/NetBSD/dist/; revision=12032