summaryrefslogtreecommitdiffstats
path: root/sys/geom
diff options
context:
space:
mode:
authorae <ae@FreeBSD.org>2015-06-08 12:52:41 +0000
committerae <ae@FreeBSD.org>2015-06-08 12:52:41 +0000
commite9042a3e16cf194d2b89ba9b2f61e1f77b4af983 (patch)
tree2a6f44178e9c41171df6d805de6ca9f760fbdd7b /sys/geom
parentec480fe320d4aa3e3de9a2d528d9c3a8bf4ec4cc (diff)
downloadFreeBSD-src-e9042a3e16cf194d2b89ba9b2f61e1f77b4af983.zip
FreeBSD-src-e9042a3e16cf194d2b89ba9b2f61e1f77b4af983.tar.gz
Teach G_PART_GPT class to handle g_resize_provider event.
MFC after: 10 days
Diffstat (limited to 'sys/geom')
-rw-r--r--sys/geom/part/g_part_gpt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/geom/part/g_part_gpt.c b/sys/geom/part/g_part_gpt.c
index 81ddfa2..08a3198 100644
--- a/sys/geom/part/g_part_gpt.c
+++ b/sys/geom/part/g_part_gpt.c
@@ -760,7 +760,7 @@ g_part_gpt_resize(struct g_part_table *basetable,
struct g_part_gpt_entry *entry;
if (baseentry == NULL)
- return (EOPNOTSUPP);
+ return (g_part_gpt_recover(basetable));
entry = (struct g_part_gpt_entry *)baseentry;
baseentry->gpe_end = baseentry->gpe_start + gpp->gpp_size - 1;
OpenPOWER on IntegriCloud