Allow to dump on Solaris swap partitions.

PR:		161764
Submitted by:	Peter Jeremy
This commit is contained in:
marius 2011-10-18 20:16:02 +00:00
parent a2cd889979
commit 081cdfe9e8

View File

@ -274,7 +274,8 @@ g_part_vtoc8_dumpto(struct g_part_table *basetable,
*/
table = (struct g_part_vtoc8_table *)basetable;
tag = be16dec(&table->vtoc.part[entry->gpe_index - 1].tag);
return ((tag == 0 || tag == VTOC_TAG_FREEBSD_SWAP) ? 1 : 0);
return ((tag == 0 || tag == VTOC_TAG_FREEBSD_SWAP ||
tag == VTOC_TAG_SWAP) ? 1 : 0);
}
static int