Do not attempt to read the slice table or disk label when accessing a raw
authorMatthew Dillon <dillon@dragonflybsd.org>
Tue, 4 Jul 2006 19:54:08 +0000 (19:54 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Tue, 4 Jul 2006 19:54:08 +0000 (19:54 +0000)
commit77dc851ec8e0f308b1cf9ec7229b1be803c21c19
treebbdf080b83e2280b71f113d6deff9a96617a8897
parenta9cfaf7ce72f185c8b4450485c9415aa0c648bfe
Do not attempt to read the slice table or disk label when accessing a raw
disk device such as /dev/ad0.  Otherwise a read failure of sector 0 during
the open will cause the open to fail and prevent the recovery of other
potentially readable data.
sys/kern/subr_diskslice.c