Enhanced do_mounts_dm to handle multiple devices
authorPaul Taysom <taysom@chromium.org>
Thu, 12 Jul 2012 18:27:24 +0000 (11:27 -0700)
committerGerrit <chrome-bot@google.com>
Tue, 7 Aug 2012 17:26:33 +0000 (10:26 -0700)
commit041ab2587059c419778b0dc3813671b017f40be1
tree7f0439650d03dd14353cb428f0451e9953781f08
parent06362507f0faff2a861dbbbd311cf7a0c8fd33c9
Enhanced do_mounts_dm to handle multiple devices

Handling mutliple device-mappers is preperation for adding
the boot cache.

The change to optionally accept <num> fields is a temporary
measure until all scripts supply the <num> fields, then the
code will be changed to make it required.

BUG=chromium-os:25441
TEST=booted stumpy and ran code with a number of tests in a mock
test environment.

Change-Id: I10b9c21d2b76763872a91053db94a8354429f33d
Signed-off-by: Paul Taysom <taysom@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/27311
Reviewed-by: Kees Cook <keescook@chromium.org>
init/do_mounts_dm.c