Fix parse_dataset error handling
authorBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 3 Jul 2013 16:16:46 +0000 (09:16 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 3 Jul 2013 16:20:52 +0000 (09:20 -0700)
commitc76955eaa5477a71f711e6865a923e7055f8b3cb
tree5a270d939fbd7bb56b4dd852d8f6ba99ed0a98b5
parent294f68063b49c06d3118d51016811063e69cf97a
Fix parse_dataset error handling

A mount failure was accidentally introduced by commit 0c1171d
which reworked the parse_dataset() function to read pool names
from devices.  The error case where a label is read from the
device but the pool name/value pair doesn't exist was not
handled properly.  In this case we should fall back to the
previous behavior.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #1560
cmd/mount_zfs/mount_zfs.c