svn commit: r232536 - stable/9/sys/geom/part
Andrey V. Elsukov
ae at FreeBSD.org
Mon Mar 5 04:53:49 UTC 2012
Author: ae
Date: Mon Mar 5 04:53:49 2012
New Revision: 232536
URL: http://svn.freebsd.org/changeset/base/232536
Log:
MFC r231929:
If nested scheme allows dump kernel to its partition, we may allow
dump for the parent partition too.
Modified:
stable/9/sys/geom/part/g_part.c
Directory Properties:
stable/9/sys/ (props changed)
Modified: stable/9/sys/geom/part/g_part.c
==============================================================================
--- stable/9/sys/geom/part/g_part.c Mon Mar 5 04:51:22 2012 (r232535)
+++ stable/9/sys/geom/part/g_part.c Mon Mar 5 04:53:49 2012 (r232536)
@@ -2112,9 +2112,12 @@ g_part_start(struct bio *bp)
/*
* Check that the partition is suitable for kernel
* dumps. Typically only swap partitions should be
- * used.
+ * used. If the request comes from the nested scheme
+ * we allow dumping there as well.
*/
- if (!G_PART_DUMPTO(table, entry)) {
+ if ((bp->bio_from == NULL ||
+ bp->bio_from->geom->class != &g_part_class) &&
+ G_PART_DUMPTO(table, entry) == 0) {
g_io_deliver(bp, ENODEV);
printf("GEOM_PART: Partition '%s' not suitable"
" for kernel dumps (wrong type?)\n",
More information about the svn-src-stable-9
mailing list