diff options
author | Mike Pritchard <mpp@FreeBSD.org> | 1996-02-21 18:40:54 +0000 |
---|---|---|
committer | Mike Pritchard <mpp@FreeBSD.org> | 1996-02-21 18:40:54 +0000 |
commit | 1ba797fb8440a24b7cd6e00c770283b5ae040f4b (patch) | |
tree | 7a3a28c4b2779446bcaeb5f1884651b11b6ba5f5 /sbin | |
parent | 1c934dae3e4ef808477ba3a70a676250dfbeea07 (diff) | |
download | src-1ba797fb8440a24b7cd6e00c770283b5ae040f4b.tar.gz src-1ba797fb8440a24b7cd6e00c770283b5ae040f4b.zip |
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.
Notes
Notes:
svn path=/head/; revision=14169
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/quotacheck/quotacheck.8 | 2 | ||||
-rw-r--r-- | sbin/quotacheck/quotacheck.c | 8 |
2 files changed, 7 insertions, 3 deletions
diff --git a/sbin/quotacheck/quotacheck.8 b/sbin/quotacheck/quotacheck.8 index 41d9fc4b4018..b9bbdad2eafe 100644 --- a/sbin/quotacheck/quotacheck.8 +++ b/sbin/quotacheck/quotacheck.8 @@ -87,7 +87,7 @@ are to be checked. .It Fl v .Nm quotacheck reports discrepancies between the -calculated and recorded disk quotas. +calculated and recorded disk quotas and other additional diagnostic messages. .El .Pp Specifying both diff --git a/sbin/quotacheck/quotacheck.c b/sbin/quotacheck/quotacheck.c index 465aa881f44c..913e381d9560 100644 --- a/sbin/quotacheck/quotacheck.c +++ b/sbin/quotacheck/quotacheck.c @@ -512,8 +512,12 @@ addid(id, type, name) highid[type] = id; if (name) bcopy(name, fup->fu_name, len + 1); - else - (void)sprintf(fup->fu_name, "%u", id); + else { + (void)sprintf(fup->fu_name, "%lu", id); + if (vflag) + printf("unknown %cid: %lu\n", + type == USRQUOTA ? 'u' : 'g', id); + } return (fup); } |