> On 9. Jul 2017, at 12:09, BERTRAND Joël <[email protected]> wrote:
> 
> J. Hannken-Illjes a écrit :
>> Is the /usr file system UFS1 or UFS2, output of dumpfs could help.
> 
>       FFSv2 with log (and async flag).

Ok, UFS2 with dynamic inode initialisation.  Did your machine ever
crash since this file system got newfs'd?

The tail of ffs_nodealloccg() looks bogus, we first write the cg
synchronous so the new value of cg_initediblk gets to disk and then
write the initialised inodes asynchronously to disk.  If the machine
crashes before this async write completes we just created a bunch of
garbage inodes.

Maybe this should become:

        if (ibp != NULL) {
                bwrite(ibp);
                bwrite(bp);
        } else

--
J. Hannken-Illjes - [email protected] - TU Braunschweig (Germany)

Reply via email to