kernel diskmbr handling - Detect maxed out slice ds_size field.
authorMatthew Dillon <dillon@apollo.backplane.com>
Tue, 23 Jun 2009 23:08:26 +0000 (16:08 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Tue, 23 Jun 2009 23:08:26 +0000 (16:08 -0700)
commit34ea800dbdcdb6e8fae3085636939170d37c78a9
tree16ea949bd88814a68be13a4267301b8a7a8ea890
parentcc298a1386f63852a7600744fd6ed196c91bac4b
kernel diskmbr handling - Detect maxed out slice ds_size field.

If the DOS slice field is found to be maxed out (0xFFFFFFFFU), use the
actual media size for calculations instead of ds_size.  This allows
disks > 2TB to have a conventional slice table and still contain a
disklabel64 which covers the actual size of the media.
sys/kern/subr_diskmbr.c