In the last episode (May 14), Roar Thron?s said:
> On a site with 20k users in the master.passwd, and where NIS is not
> trusted, the master.passwd is distributed to each workstation. The
> pwd.db and spwd.db are sized around 10Mb.
>
> Sometimes, those .db files get corrupt. I suspect it has something to
> do with the machines being reset etc before the sync is finished.
> (The machines are dual-boot, and there are a lot of users around.)
>
> I did some patching, and have not seen corrupted .db-files since.
>
> So how usable is this patch?
> Worth intregrating?
> - 2048 * 1024, /* cachesize */
> + 8192 * 1024, /* cachesize */
Cachsize is already adjustable via the -s commandline switch.
> + /* sync may be wise
> + -roart */
> + sync();
How about an fsync() of only that file? (I don't remember whether
fsync flushes metadata though)
-Dan Nelson
[email protected]
To Unsubscribe: send mail to [email protected]
with "unsubscribe freebsd-hackers" in the body of the message