1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-14 10:09:48 +00:00

Add better error description for case when we are doing resize and

scheme-specific method returns EBUSY.

MFC after:	1 week
This commit is contained in:
Andrey V. Elsukov 2014-05-04 16:55:51 +00:00
parent 0dd7f00cee
commit c778397f26
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=265333

View File

@ -1316,7 +1316,9 @@ g_part_ctl_resize(struct gctl_req *req, struct g_part_parms *gpp)
error = G_PART_RESIZE(table, entry, gpp);
if (error) {
gctl_error(req, "%d", error);
gctl_error(req, "%d%s", error, error != EBUSY ? "":
" resizing will lead to unexpected shrinking"
" due to alignment");
return (error);
}