disk - add flag to use underlying psize
authorAlex Hornung <ahornung@gmail.com>
Mon, 27 Feb 2012 21:54:09 +0000 (21:54 +0000)
committerAlex Hornung <ahornung@gmail.com>
Mon, 27 Feb 2012 22:02:59 +0000 (22:02 +0000)
commitc6bbf777a7a31be27ec52711c50e15bbb88f0e6b
tree163fc39c14e93ed4ad8112d9c4befcdbcc05f147
parent963fe5f3c4cdced236bd1a8581c5c1460905c631
disk - add flag to use underlying psize

 * If the top (disk subsystem) psize fails, try again with the
   underlying raw device psize if the DSO_RAWPSIZE flag is set for the
   disk.

 * This allows for disk devices and slices without a proper disklabel to
   return a correct psize, which in turn allows the device to be used
   for swap.

 * Previously that behaviour was integrated with the DSO_DEVICEMAPPER
   flag.
sys/dev/disk/dm/device-mapper.c
sys/kern/subr_disk.c
sys/sys/disk.h