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
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to