mount_hammer2 panic on empty disks
This triggered a panic in VM (VirtualBox 5.2.16) on OSX 10.11.6:
dd if=/dev/zero of=/dev/ad1
mount_hammer2 /dev/ad1 /mnt
Updated by dillon over 2 years ago
- Status changed from New to Closed
- Assignee set to dillon
Reported panic fixed in both master and release branch.
The reported panic can occur if the root inode has been blown away by a partial clearing of the filesystem via dd, and then a mount is attempted. H2 may still be able to find a valid volume header due to volume header redundancy, but the root inode is typically located at a low block number and is more easily destroyed. The failure path was not handled properly and resulted in a panic.