diff options
author | ivoras <ivoras@FreeBSD.org> | 2009-03-22 00:29:48 +0000 |
---|---|---|
committer | ivoras <ivoras@FreeBSD.org> | 2009-03-22 00:29:48 +0000 |
commit | 47ec0506fb9b2a109368d81837a7ce365feddc19 (patch) | |
tree | ec81f07c6272f3dea92f8a0d919ffb725ee18166 /sys/geom/part | |
parent | 14452111d6ba8fbe36780415ac673c294627af99 (diff) | |
download | FreeBSD-src-47ec0506fb9b2a109368d81837a7ce365feddc19.zip FreeBSD-src-47ec0506fb9b2a109368d81837a7ce365feddc19.tar.gz |
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)
Diffstat (limited to 'sys/geom/part')
-rw-r--r-- | sys/geom/part/g_part.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/geom/part/g_part.c b/sys/geom/part/g_part.c index b76d7f6..447221a 100644 --- a/sys/geom/part/g_part.c +++ b/sys/geom/part/g_part.c @@ -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; |