| Summary: | QUOTA with 0 bytes in quota.user hangs up the system in boot | ||
|---|---|---|---|
| Product: | Base System | Reporter: | Minas <bigbrother> |
| Component: | kern | Assignee: | mpp |
| Status: | Closed FIXED | ||
| Severity: | Affects Only Me | ||
| Priority: | Normal | ||
| Version: | 4.4-RELEASE | ||
| Hardware: | Any | ||
| OS: | Any | ||
|
Description
Minas
2001-10-01 15:40:00 UTC
# uname -a FreeBSD bogus.nn 4.9-PRERELEASE FreeBSD 4.9-PRERELEASE #0: Sun Sep 14 11:11:50 CEST 2003 root@bogus.nn:/usr/src/sys/compile/BOGUS i386 The same problem here. Jarek Granat Responsible Changed From-To: freebsd-bugs->rwatson Grab ownership of this item since I've done some digging in the quota code before. Responsible Changed From-To: rwatson->kib Assign to kib since he's been working with quotas lately. mpp 2007-01-20 12:28:15 UTC
FreeBSD src repository
Modified files:
sbin/quotacheck quotacheck.c
Log:
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
Revision Changes Path
1.27 +137 -29 src/sbin/quotacheck/quotacheck.c
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
State Changed From-To: open->patched Fixed in -current. A -stable patch will be committed after more stress testing in -current. Responsible Changed From-To: kib->mpp Fixed in -current. A -stable patch will be committed after more stress testing in -current. State Changed From-To: patched->closed This should now be fixed in 6.2-stable and 7.0-current. |