Subject: Re: Changes to reference count directories
To: Johnny C. Lam <>
From: Greg Troxel <>
List: tech-pkg
Date: 01/26/2005 09:16:39
It would be really nice to have

  pkg_admin check-dirs

be able to grovel over /var/db/pkg, and for each dir count how many
packages require it, compare that to the refcount, and fix the
refcount.  This will enable both recovery and checking the recount
invariant.  I'm pessimistic enough that I believe unless invariants
are checked there will be bugs that lead to them being violated.

        Greg Troxel <>