Actions
Bug #3181
closedmount_hammer2 panic on empty disks
Description
This triggered a panic in VM (VirtualBox 5.2.16) on OSX 10.11.6:
mkdir /mnt
dd if=/dev/zero of=/dev/ad1
mount_hammer2 /dev/ad1 /mnt
Files
Updated by admin over 5 years ago
Thanks, I'll track it down and fix the case so it fails the mount properly.
-Matt
Updated by dillon over 5 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.
-Matt
Actions