In DragonFly, gpt partitions look like slices in /dev, and we match the
authorMatthew Dillon <dillon@dragonflybsd.org>
Thu, 17 Jul 2008 01:15:59 +0000 (01:15 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Thu, 17 Jul 2008 01:15:59 +0000 (01:15 +0000)
commit31fb1991f208bb8ba44d31cf6e3006abe8463709
tree71aa1839305bc967c98792a81346c1375961128e
parentf9f627d28d4a2f86bd11ac1ba23749eaaf8748c4
In DragonFly, gpt partitions look like slices in /dev, and we match the
slice number to the GPT index to avoid confusion.

Fix the reporting of the slice in 'gpt add' (it was off by 1).
sbin/gpt/add.c