Allow regular files as GC roots
Allow regular files as GC roots

If a root is a regular file, then its name must denote a store
path. For instance, the existence of the file

  /nix/var/nix/gcroots/per-user/eelco/hydra-roots/wzc3cy1wwwd6d0dgxpa77ijr1yp50s6v-libxml2-2.7.7

would cause

  /nix/store/wzc3cy1wwwd6d0dgxpa77ijr1yp50s6v-libxml2-2.7.7

to be a root.

This is useful because it involves less I/O (no need for a readlink()
call) and takes up less disk space (the symlink target typically takes
up a full disk block, while directory entries are packed more
efficiently). This is particularly important for hydra.nixos.org,
which has hundreds of thousands of roots, and where reading the roots
can take 25 minutes.

ehmry/nix,garbas/nix,ehmry/nix,NixOS/nix,garbas/nix,offlinehacker/nix,NixOS/nix,layus/nix,dtzWill/nix,bjornfor/nix,vizanto/nix,rycee/nix,peti/nix,gebner/nix,NixOS/nix,ttuegel/nix,ehmry/nix,bjornfor/nix,offlinehacker/nix,rycee/nix,dezgeg/nix,acowley/nix,ttuegel/nix,rowhit/nix,joelmo/nix,aucampia/nix,jcumming/nix,puffnfresh/nix,layus/nix,garbas/nix,jcumming/nix,peti/nix,ehmry/nix,ehmry/nix,puffnfresh/nix,joelmo/nix,NixOS/nix,rowhit/nix,vizanto/nix,nbp/nix,dtzWill/nix,joelmo/nix,gridaphobe/nix,wmertens/nix,nbp/nix,dtzWill/nix,peti/nix,rycee/nix,tchajed/nix,vizanto/nix,ysangkok/nix,jcumming/nix,rycee/nix,ehmry/nix,gridaphobe/nix,vizanto/nix,aucampia/nix,NixOS/nix,pikajude/nix,rycee/nix,offlinehacker/nix,vcunat/nix,dezgeg/nix,tchajed/nix,vcunat/nix,zimbatm/nix,garbas/nix,aucampia/nix,nbp/nix,gridaphobe/nix,layus/nix,zimbatm/nix,wmertens/nix,nbp/nix,jcumming/nix,garbas/nix,ysangkok/nix,puffnfresh/nix,offlinehacker/nix,aucampia/nix,shlevy/nix,tchajed/nix,bennofs/nix,joelmo/nix,tchajed/nix,dezgeg/nix,vcunat/nix,shlevy/nix,rowhit/nix,dtzWill/nix,bjornfor/nix,ttuegel/nix,shlevy/nix,acowley/nix,gebner/nix,shlevy/nix,bennofs/nix,puffnfresh/nix,bennofs/nix,shlevy/nix,wmertens/nix,layus/nix,pikajude/nix,bennofs/nix,acowley/nix,dtzWill/nix,zimbatm/nix,gridaphobe/nix,dezgeg/nix,ysangkok/nix,gebner/nix,vcunat/nix,acowley/nix,bjornfor/nix,gebner/nix,ttuegel/nix,rowhit/nix,peti/nix,pikajude/nix,wmertens/nix,zimbatm/nix,peti/nix,layus/nix,dezgeg/nix