Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Oct 2011 20:16:02 +0000 (UTC)
From:      Marius Strobl <marius@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r226522 - head/sys/geom/part
Message-ID:  <201110182016.p9IKG2Wp088851@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: marius
Date: Tue Oct 18 20:16:02 2011
New Revision: 226522
URL: http://svn.freebsd.org/changeset/base/226522

Log:
  Allow to dump on Solaris swap partitions.
  
  PR:		161764
  Submitted by:	Peter Jeremy

Modified:
  head/sys/geom/part/g_part_vtoc8.c

Modified: head/sys/geom/part/g_part_vtoc8.c
==============================================================================
--- head/sys/geom/part/g_part_vtoc8.c	Tue Oct 18 18:52:22 2011	(r226521)
+++ head/sys/geom/part/g_part_vtoc8.c	Tue Oct 18 20:16:02 2011	(r226522)
@@ -274,7 +274,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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201110182016.p9IKG2Wp088851>