Add "alignment" param to the request before calling gpart_autofill().
This commit is contained in:
parent
d996b98bea
commit
beeca17d4c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=223158
@ -927,6 +927,7 @@ gpart_restore(struct gctl_req *req, unsigned int fl __unused)
|
|||||||
gctl_ro_param(r, "size", -1, argv[3]);
|
gctl_ro_param(r, "size", -1, argv[3]);
|
||||||
if (rl != 0 && label != NULL)
|
if (rl != 0 && label != NULL)
|
||||||
gctl_ro_param(r, "label", -1, argv[4]);
|
gctl_ro_param(r, "label", -1, argv[4]);
|
||||||
|
gctl_ro_param(r, "alignment", -1, GPART_AUTOFILL);
|
||||||
gctl_ro_param(r, "arg0", -1, s);
|
gctl_ro_param(r, "arg0", -1, s);
|
||||||
error = gpart_autofill(r);
|
error = gpart_autofill(r);
|
||||||
if (error != 0)
|
if (error != 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user