1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-24 11:29:10 +00:00
freebsd/sys
Mike Pritchard db9b81eabc Quota system cleanup.
1) Do not do quota accounting for the actual quota data files
   or for file system snapshot files ("system" files).  This
   prevents a deadlock descibed in PR kern/30958 if the kernel
   ever has to grow the quota file.  Snapshot files were already
   exempt from the quota checks, but this change generalized the check.
2) Fix a cast that caused extremely large uids/gids to incorrectly
   write the quota information to the data file at a truncated
   value for a uint_t32 id value.  The incorrect cast caused quota
   files in this case to be around 4GB in size, with the correct cast
   they can now be 131GB in size.  Also related to PR kern/30958.
3) Check for what appear to be negative UIDs/GIDs and not account
   for them.  This prevents the quota files from becoming 131GB in
   size and causing quotacheck to run forever at bootup.  This could
   also cause the kernel to try and expand the quota file, which might
   deadlock due to the issue in #1.  kern/30958 and kern/38156
   (and some much older closed PR's).
4) With the deadlock problems gone, the kernel can now expand the
   size of the quota database files if it needs to.
5) Pass in the i-node count change value to chkiq and chkiqchg as an
   int, like it used to be before the common routine was split up
   into 2 different routines to increase / decrease the i-node in-use
   count.  Prevents an underflow on the i-node count.  Related
   to PR kern/89247.
6) Prevent the block usage from growing slowly if a file system is
   full and the write was denied due to that fact.  PR kern/89247.

Some of these changes require an updated quotacheck to prevent
the creation of huge (131GB) quota data files (item #3).

#1/#4 probably fixes a lot of the random hangs when quotas are enabled,
possibly some of the jail hangs.
2007-01-20 11:58:32 +00:00
..
amd64 Revert previous change. 2007-01-18 05:46:32 +00:00
arm - Add a uart_rxready() and corresponding device-specific implementations 2007-01-18 22:01:19 +00:00
boot o Wrap long lines. 2007-01-14 13:55:43 +00:00
bsm
cam
coda
compat Ooops, fix the ratelimit. 2007-01-20 11:31:14 +00:00
conf Remove remnants from the sparc64 origin of this file and which are 2007-01-19 12:22:50 +00:00
contrib
crypto
ddb Use FOREACH_PROC_IN_SYSTEM instead of using its unrolled form. 2007-01-17 15:05:52 +00:00
dev For setting the port PCnet chips must be powered down or stopped and 2007-01-20 10:47:16 +00:00
fs Add a 3rd entry in the cache, which keeps the end position 2007-01-16 23:43:14 +00:00
gdb
geom
gnu
i4b
i386 Use FOREACH_PROC_IN_SYSTEM instead of using its unrolled form. 2007-01-17 15:05:52 +00:00
ia64 Remove 3rd clause, renumber, ok per email 2007-01-12 07:26:21 +00:00
isa
isofs/cd9660
kern - In tdq_transfer() always set NEEDRESCHED when necessary regardless of 2007-01-20 09:03:43 +00:00
libkern
modules
net Set topology change propagation on all ports _except_ the caller. 2007-01-18 07:13:01 +00:00
net80211 Add initial support for 900MHz cards like the Ubiquiti SR9: 2007-01-15 01:12:28 +00:00
netatalk Clean up DDP layer netatalk code: 2007-01-12 15:07:51 +00:00
netatm
netgraph A less draconian fix to the build. 2007-01-18 19:41:39 +00:00
netinet - most all includes (#include <>) migrate to the sctp_os_bsd.h file 2007-01-18 09:58:43 +00:00
netinet6 - most all includes (#include <>) migrate to the sctp_os_bsd.h file 2007-01-18 09:58:43 +00:00
netipsec
netipx
netkey
netnatm
netncp
netsmb
nfs
nfs4client
nfsclient
nfsserver
opencrypto
pc98
pccard
pci o In re_newbuf() and re_encap() if re_dma_map_desc() aborts the mapping 2007-01-16 20:35:23 +00:00
powerpc Propagate the CPU model to the hw.model sysctl. 2007-01-14 21:45:05 +00:00
rpc
security
sparc64 Convert the remainder of the low hanging fruits regarding including 2007-01-19 11:15:34 +00:00
sun4v Convert the remainder of the low hanging fruits regarding including 2007-01-19 11:15:34 +00:00
sys Reviewed by: rwatson 2007-01-15 15:06:28 +00:00
tools
ufs Quota system cleanup. 2007-01-20 11:58:32 +00:00
vm Use FOREACH_PROC_IN_SYSTEM instead of using its unrolled form. 2007-01-17 15:05:52 +00:00
Makefile