kernel - Do not allow destroyed namecache entries to be re-resolved
authorMatthew Dillon <dillon@apollo.backplane.com>
Sat, 25 Aug 2012 00:09:58 +0000 (17:09 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Sat, 25 Aug 2012 00:09:58 +0000 (17:09 -0700)
commit81c4868c0a715c2fe5fc2df73541b8d1dbec80a2
treeca56ab8ab44596232d3e2cc81118a1582e99ab84
parent6e0c5aabac8d345557e78062b61bd3c1ed432332
kernel - Do not allow destroyed namecache entries to be re-resolved

* Do not allow a destroyed namecache entry to be re-resolved, as it
  might resolve as a completely different file, or even resolve as
  a file when it was originally a directory and so forth.

* Fixes inconsistencies in the current-dir fields in proc->p_fd.

* Note that most VFS's can't re-resolve a disconnected directory
  anyway but HAMMER1 actually can, so this was causing a problem
  in tests with HAMMER1 (the same tests that originally crashed
  tmpfs were also crashing HAMMER1, but for a different reason).
sys/kern/vfs_cache.c