HAMMER - Stabilize and refactor volume removal
authorMichael Neumann <mneumann@ntecs.de>
Sun, 13 Dec 2009 18:56:55 +0000 (19:56 +0100)
committerMichael Neumann <mneumann@ntecs.de>
Sun, 13 Dec 2009 18:56:55 +0000 (19:56 +0100)
commitc47d84e8a8c736e7c9f793dba11edc6f233a22c5
tree8ede04675ff26d28a99344bcf735e20ff568b4e9
parent747db5d9fb7d7d51bc20d347514b6344211a59b1
HAMMER - Stabilize and refactor volume removal

* Correctly handle already freed layer1 entries.
* Correclty avoid reallocation on the volume to be removed
  during reblocking.
* Erase volume header after removal so that trying to mount it
  afterwards will fail (otherwise mount will silently use it).
sys/vfs/hammer/hammer_blockmap.c
sys/vfs/hammer/hammer_volume.c