259065 |
07-Dec-2013 |
gjb |
- Copy stable/10 (r259064) to releng/10.0 as part of the 10.0-RELEASE cycle. - Update __FreeBSD_version [1] - Set branch name to -RC1
[1] 10.0-CURRENT __FreeBSD_version value ended at '55', so start releng/10.0 at '100' so the branch is started with a value ending in zero.
Approved by: re (implicit) Sponsored by: The FreeBSD Foundation |
256281 |
10-Oct-2013 |
gjb |
Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.
Approved by: re (implicit) Sponsored by: The FreeBSD Foundation
|
241013 |
27-Sep-2012 |
mdf |
Fix sbin/ build with a 64-bit ino_t.
Original code by: Gleb Kurtsou
|
233648 |
29-Mar-2012 |
eadler |
Remove trailing whitespace per mdoc lint warning
Disussed with: gavin No objection from: doc Approved by: joel MFC after: 3 days
|
207736 |
07-May-2010 |
mckusick |
Merger of the quota64 project into head.
This joint work of Dag-Erling Smørgrav and myself updates the FFS quota system to support both traditional 32-bit and new 64-bit quotas (for those of you who want to put 2+Tb quotas on your users).
By default quotas are not compiled into the kernel. To include them in your kernel configuration you need to specify:
options QUOTA # Enable FFS quotas
If you are already running with the current 32-bit quotas, they should continue to work just as they have in the past. If you wish to convert to using 64-bit quotas, use `quotacheck -c 64'; if you wish to revert from 64-bit quotas back to 32-bit quotas, use `quotacheck -c 32'.
There is a new library of functions to simplify the use of the quota system, do `man quotafile' for details. If your application is currently using the quotactl(2), it is highly recommended that you convert your application to use the quotafile interface. Note that existing binaries will continue to work.
Special thanks to John Kozubik of rsync.net for getting me interested in pursuing 64-bit quota support and for funding part of my development time on this project.
|
205076 |
12-Mar-2010 |
uqs |
Fix several typos in macros or macro misusage.
Found by: make manlint Reviewed by: ru Approved by: philip (mentor)
|
180187 |
02-Jul-2008 |
des |
Drag this code kicking and screaming into the twenty-first century.
|
175678 |
26-Jan-2008 |
mpp |
Sync up quotacheck's preen.c with fsck's. This makes quotacheck 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.
|
175344 |
15-Jan-2008 |
mpp |
Quotacheck may possibly skip quota accounting for up to 2 files 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.
|
172193 |
16-Sep-2007 |
mpp |
Fix "quotacheck -a" from core dumping on 64 bit systems by correctly 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)
|
172168 |
14-Sep-2007 |
mpp |
Flush stdout at the end of the update phase to prevent possible duplicate output when "quotacheck -a -v" is used.
Approved by: re (bmah)
|
166485 |
04-Feb-2007 |
mpp |
If two files systems, /a and /b are marked as having quotas enabled 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
|
166458 |
03-Feb-2007 |
mpp |
Do not touch the block or i-node grace times for id 0. These are used to indicate the default grace period for the file system, and should not be touched by quotacheck.
|
166457 |
03-Feb-2007 |
mpp |
Fix quotqcheck to correctly use the curinode count, and not the curblock count when checking if the inode soft limit has been crossed.
|
166230 |
25-Jan-2007 |
mpp |
Bump .Dd.
|
166217 |
25-Jan-2007 |
mpp |
Add a BUGS section that shows that ids that appear to be 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.
|
166180 |
23-Jan-2007 |
mpp |
Use fseeko to seek in the file, instead of fseek to prevent seek errors for extremely large uids (e.g. in the billions range).
|
166179 |
23-Jan-2007 |
mpp |
Make sure that unknown uids/gids that now have non-zero usage and had a previously recorded usage of zero are correctly displayed in verbose mode. Generalize the print routine a little too.
|
166143 |
20-Jan-2007 |
mpp |
Quota system cleanup.
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
|
164071 |
07-Nov-2006 |
ceri |
Document the -l option.
Reviewed by: brd Approved by: ru (mentor)
|
141611 |
10-Feb-2005 |
ru |
Sync program's usage() with manpage's SYNOPSIS.
|
128073 |
09-Apr-2004 |
markm |
Remove advertising clause from University of California Regent's license, per letter dated July 22, 1999.
Approved by: core, imp
|
126178 |
23-Feb-2004 |
johan |
style.Makefile(5): Use WARNS?= instead of WARNS=.
|
124830 |
22-Jan-2004 |
grehan |
Userland signed char fixes for PPC build. Problems were using a char 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
|
118582 |
07-Aug-2003 |
imp |
Prefer PATH_MAX to MAXPATHLEN. Both contain the trailing NUL, so remove the unneeded +1.
|
114589 |
03-May-2003 |
obrien |
Use __FBSDID() to quiet GCC 3.3 warnings.
|
107294 |
27-Nov-2002 |
mckusick |
Create a new 32-bit fs_flags word in the superblock. Add code to move 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.
|
107094 |
20-Nov-2002 |
mckusick |
Properly handle UFS2 sparsely allocated inodes. Fix bug that caused 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>
|
102464 |
27-Aug-2002 |
trhodes |
Fix some 'SYNOPSIS' and 'usage' messages.
|
102231 |
21-Aug-2002 |
trhodes |
s/filesystem/file system/g as discussed on -developers
|
101592 |
09-Aug-2002 |
phk |
Fixup preen.c to match its new residence.
The blockcheck() function is still pulled from fsck_ffs, it probably should live in libufs.
|
99501 |
06-Jul-2002 |
charnier |
The .Nm utility
|
98542 |
21-Jun-2002 |
mckusick |
This commit adds basic support for the UFS2 filesystem. The UFS2 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>
|
96707 |
16-May-2002 |
trhodes |
more file system > filesystem
|
96478 |
12-May-2002 |
phk |
Sigh, more BBSIZE related breakage.
Sponsored by: DARPA & NAI Labs.
|
92883 |
21-Mar-2002 |
imp |
o remove __P o remove main prototype
|
92839 |
20-Mar-2002 |
imp |
o __P removed o ansi function prototypes o unifdef -D__STDC__ o __dead2 on usage prototype o remove now-bogus main prototype
|
92806 |
20-Mar-2002 |
obrien |
Remove 'register' keyword. 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?)
|
89797 |
25-Jan-2002 |
phk |
Fix some function prototypes. 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
|
87667 |
11-Dec-2001 |
charnier |
Spelling
|
87325 |
04-Dec-2001 |
obrien |
Default to WARNS=2. Binary builds that cannot handle this must explicitly set WARNS=0.
Reviewed by: mike
|
79754 |
15-Jul-2001 |
dd |
Remove whitespace at EOL.
|
79530 |
10-Jul-2001 |
ru |
mdoc(7) police: removed HISTORY info from the .Os call.
|
74815 |
26-Mar-2001 |
ru |
- Backout botched attempt to introduce MANSECT feature. - MAN[1-9] -> MAN.
|
74556 |
21-Mar-2001 |
mckusick |
Additions to run checks on live filesystems. This change will not 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.
|
74531 |
20-Mar-2001 |
ru |
Set the default manual section for sbin/ to 8.
|
72876 |
22-Feb-2001 |
nik |
Mention the edquota(8) utility when talking about editing quota.user and quota.group.
PR: docs/25124
|
68960 |
20-Nov-2000 |
ru |
mdoc(7) police: use the new features of the Nm macro.
|
66868 |
09-Oct-2000 |
adrian |
Reviewed by: rwatson, bp 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.
|
66861 |
09-Oct-2000 |
adrian |
Reviewed by: rwatson, bp 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.
|
57668 |
01-Mar-2000 |
sheldonh |
Remove single-space hard sentence breaks. These degrade the quality of the typeset output, tend to make diffs harder to read and provide bad examples for new-comers to mdoc.
|
55275 |
30-Dec-1999 |
peter |
Make fsck(8) do a MNT_RELOAD after cleaning for all read-only mounted filesystems, not just for the root fs.
Reviewed by: mckusick Submitted by: Paul Saab <ps@yahoo-inc.com>
|
53781 |
27-Nov-1999 |
phk |
Make fsck even more char/blk dev tolerant.
|
53754 |
27-Nov-1999 |
phk |
Allow root-reloading also for chr devices.
|
51041 |
06-Sep-1999 |
mph |
Indicate that we now control quota checking via an rc.conf variable, instead of putting it in rc.local.
Submitted by: Alex Perel <veers@disturbed.net>
|
50476 |
28-Aug-1999 |
peter |
$Id$ -> $FreeBSD$
|
48935 |
20-Jul-1999 |
phk |
Also check against chardevs when looking for root.
|
41477 |
03-Dec-1998 |
julian |
Cosmetic and documentation changes brought from earlier FreeBSD versions. (e.g. RCS Id:)
|
41474 |
03-Dec-1998 |
julian |
Reviewed by: Don Lewis <Don.Lewis@tsc.tdk.com> 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.
|
37672 |
15-Jul-1998 |
charnier |
Correct use of .Nm. Add rcsid. Remove unused #includes. Use warn(). Errx(1, "malloc failed") is better than err(1, NULL).
|
37239 |
28-Jun-1998 |
bde |
Fixed printf format errors.
|
37000 |
15-Jun-1998 |
charnier |
Correct use of .Nm. Add rcsid. Remove unused #includes. Use err(3).
|
35095 |
07-Apr-1998 |
bde |
Guess the position of the drive number in the device name better so 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.
|
27107 |
30-Jun-1997 |
charnier |
Remove lines inside #ifdef 0/#endif.
|
26675 |
16-Jun-1997 |
charnier |
Use err(3) instead of local err() (a errx() like function).
|
24359 |
29-Mar-1997 |
imp |
compare return value from getopt against -1 rather than EOF, per the final posix standard on the topic.
|
23798 |
12-Mar-1997 |
bde |
Finished (?) merging with Lite2: cleaned up #include mess.
Fixed style bugs in FreeBSD changes.
|
23675 |
11-Mar-1997 |
peter |
Merge from Lite2. Note that Lite2 has it's own filesystem clean check skipping code that overrides ours sooner. One should be eliminated, but for now it works.
|
19212 |
27-Oct-1996 |
phk |
Don't give up just because we cant find the blkdev that corresponds to the name given as a chardev.
|
19185 |
25-Oct-1996 |
joerg |
Allow the specification of a mountpoint, and resolve it s disk device using the fstab.
Closes PR bin/129.
Submitted by: jmg@nike.efn.org (John-Mark Gurney)
|
14280 |
27-Feb-1996 |
mpp |
Silence some cc -Wall warnings in quotacheck.
|
14271 |
27-Feb-1996 |
mpp |
Fix quotacheck to not do a bunch of unneeded fseeks if the quota file information is accurate. This makes it about twice as fast when the uid name space is very large.
|
14169 |
21-Feb-1996 |
mpp |
Print out an informative message if the verbose option is given 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.
|
9273 |
21-Jun-1995 |
dima |
`dev_bsize' must be reset to 1 before the bread() or 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)
|
8871 |
30-May-1995 |
rgrimes |
Remove trailing whitespace.
|
7585 |
02-Apr-1995 |
bde |
Submitted by: phk, added to by bde
Fix all the warnings from `gcc -Wall'.
|
1855 |
05-Aug-1994 |
wollman |
Convert to our man installation style. Also fixed long-standing bug in `fastboot'/`fasthalt' in which the interpreter would hang around after `reboot' or `halt' is run, causing an irritating ``Killed'' message.
|
1559 |
26-May-1994 |
rgrimes |
This commit was generated by cvs2svn to compensate for changes in r1558, which included commits to RCS files with non-trunk default branches.
|
1558 |
26-May-1994 |
rgrimes |
BSD 4.4 Lite sbin Sources
Note: XNSrouted and routed NOT imported here, they shall be imported with usr.sbin.
|