Ignore dataset if the dds_type is DMU_OST_OTHER
authorPrakash Surya <surya1@llnl.gov>
Wed, 18 Jan 2012 23:31:52 +0000 (15:31 -0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 19 Jan 2012 17:29:48 +0000 (09:29 -0800)
commitff998d804ff2fec3adc91fd0e78d25998094aca9
tree986555567c5d3db81e06c3e131b6a3f7010097fb
parentb4b599d2508296a9dac0abe29532fc0884f299b7
Ignore dataset if the dds_type is DMU_OST_OTHER

Since the zpios and potentially other ZFS tests use the
DMU_OST_OTHER type to label their datasets, the zpool and
zfs commands should gracefully handle this type when it is
encountered.  This patch modifies the commands' behavior
to ignore any datasets with a dds_type of DMU_OST_OTHER.

Signed-off-by: Prakash Surya <surya1@llnl.gov>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #536
lib/libzfs/libzfs_dataset.c