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:
parent
0dd7f00cee
commit
c778397f26
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=265333
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user