If nested scheme allows dump kernel to its partition, we may allow
dump for the parent partition too. MFC after: 2 weeks
This commit is contained in:
@@ -2113,9 +2113,12 @@ g_part_start(struct bio *bp)
|
|||||||
/*
|
/*
|
||||||
* Check that the partition is suitable for kernel
|
* Check that the partition is suitable for kernel
|
||||||
* dumps. Typically only swap partitions should be
|
* 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);
|
g_io_deliver(bp, ENODEV);
|
||||||
printf("GEOM_PART: Partition '%s' not suitable"
|
printf("GEOM_PART: Partition '%s' not suitable"
|
||||||
" for kernel dumps (wrong type?)\n",
|
" for kernel dumps (wrong type?)\n",
|
||||||
|
|||||||
Reference in New Issue
Block a user