diff options
author | ae <ae@FreeBSD.org> | 2014-05-04 16:55:51 +0000 |
---|---|---|
committer | ae <ae@FreeBSD.org> | 2014-05-04 16:55:51 +0000 |
commit | 65883d393c7d275d8d07a432686b4a1960124732 (patch) | |
tree | fc641cd9e3b6af77b80aa62bde81a056d5335973 | |
parent | 8488e4961e9264865a12c05eb56783746541c717 (diff) | |
download | FreeBSD-src-65883d393c7d275d8d07a432686b4a1960124732.zip FreeBSD-src-65883d393c7d275d8d07a432686b4a1960124732.tar.gz |
Add better error description for case when we are doing resize and
scheme-specific method returns EBUSY.
MFC after: 1 week
-rw-r--r-- | sys/geom/part/g_part.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/geom/part/g_part.c b/sys/geom/part/g_part.c index 3c45198..a92b848 100644 --- a/sys/geom/part/g_part.c +++ b/sys/geom/part/g_part.c @@ -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); } |