From beeca17d4cb689ecd83abb0b58ec5fff19b257b9 Mon Sep 17 00:00:00 2001 From: "Andrey V. Elsukov" Date: Thu, 16 Jun 2011 19:42:03 +0000 Subject: [PATCH] Add "alignment" param to the request before calling gpart_autofill(). --- sbin/geom/class/part/geom_part.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sbin/geom/class/part/geom_part.c b/sbin/geom/class/part/geom_part.c index 55a055e1e21a..eaf58450166d 100644 --- a/sbin/geom/class/part/geom_part.c +++ b/sbin/geom/class/part/geom_part.c @@ -927,6 +927,7 @@ gpart_restore(struct gctl_req *req, unsigned int fl __unused) gctl_ro_param(r, "size", -1, argv[3]); if (rl != 0 && label != NULL) gctl_ro_param(r, "label", -1, argv[4]); + gctl_ro_param(r, "alignment", -1, GPART_AUTOFILL); gctl_ro_param(r, "arg0", -1, s); error = gpart_autofill(r); if (error != 0)