svn commit: r226936 - stable/7/sys/geom/part
Marius Strobl
marius at FreeBSD.org
Sun Oct 30 12:23:07 UTC 2011
Author: marius
Date: Sun Oct 30 12:23:06 2011
New Revision: 226936
URL: http://svn.freebsd.org/changeset/base/226936
Log:
MFC: r226522
Allow to dump on Solaris swap partitions.
PR: 161764
Submitted by: Peter Jeremy
Modified:
stable/7/sys/geom/part/g_part_vtoc8.c
Directory Properties:
stable/7/sys/ (props changed)
stable/7/sys/cddl/contrib/opensolaris/ (props changed)
stable/7/sys/contrib/dev/acpica/ (props changed)
stable/7/sys/contrib/pf/ (props changed)
Modified: stable/7/sys/geom/part/g_part_vtoc8.c
==============================================================================
--- stable/7/sys/geom/part/g_part_vtoc8.c Sun Oct 30 12:23:04 2011 (r226935)
+++ stable/7/sys/geom/part/g_part_vtoc8.c Sun Oct 30 12:23:06 2011 (r226936)
@@ -272,7 +272,8 @@ g_part_vtoc8_dumpto(struct g_part_table
*/
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
More information about the svn-src-stable
mailing list