Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 22 Mar 2009 00:29:48 +0000 (UTC)
From:      Ivan Voras <ivoras@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r190232 - head/sys/geom/part
Message-ID:  <200903220029.n2M0Tmkt051680@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ivoras
Date: Sun Mar 22 00:29:48 2009
New Revision: 190232
URL: http://svn.freebsd.org/changeset/base/190232

Log:
  Be more explicit and complain if kernel dumps are perfomed on unsupported
  partition types. This is to help users used to the old behaviour.
  
  Reviewed by:	marcel
  Approved by:	gnn (mentor)

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

Modified: head/sys/geom/part/g_part.c
==============================================================================
--- head/sys/geom/part/g_part.c	Sun Mar 22 00:18:48 2009	(r190231)
+++ head/sys/geom/part/g_part.c	Sun Mar 22 00:29:48 2009	(r190232)
@@ -1726,7 +1726,10 @@ g_part_start(struct bio *bp)
 			 * used.
 			 */
 			if (!G_PART_DUMPTO(table, entry)) {
-				g_io_deliver(bp, ENXIO);
+				g_io_deliver(bp, ENODEV);
+				printf("GEOM_PART: Partition '%s' not suitable"
+				    " for kernel dumps (wrong type?)\n",
+				    pp->name);
 				return;
 			}
 			gkd = (struct g_kerneldump *)bp->bio_data;



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