com32/chain: index -1 partiter adjustment
commitb5849a4d28bec1616ac4d2aa67b4ca5b3de55144
authorMichal Soltys <soltys@ziu.info>
Thu, 14 Feb 2013 15:51:46 +0000 (14 16:51 +0100)
committerMichal Soltys <soltys@ziu.info>
Thu, 14 Feb 2013 15:53:05 +0000 (14 16:53 +0100)
treebd550a0e89c42a80791a52c4ec71f3f941645919
parentd9976c5f4230aa0bcc6f6572091bd2732bf35db9
com32/chain: index -1 partiter adjustment

Currently, the only situation when index could be set to -1 was empty
logical partition (with stepall flag active). To keep things consistent
(and with index0 already providing "full" info), adjust the partiter to
also set -1 on empty main partition.

This change also allows simple index check to see whether we're are at
the empty partition or not, without digging into disk_dos_part_entry
data and retesting ostype field. We rely on it now in manglepe_hide().

Also some retab! changes in partiter.h and one variable rename.

Signed-off-by: Michal Soltys <soltys@ziu.info>
com32/chain/mangle.c
com32/chain/partiter.c
com32/chain/partiter.h