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.
This commit is contained in:
parent
1c934dae3e
commit
1ba797fb84
@ -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
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user