Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 4 May 2014 16:55:51 +0000 (UTC)
From:      "Andrey V. Elsukov" <ae@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r265333 - head/sys/geom/part
Message-ID:  <201405041655.s44GtpX7078400@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ae
Date: Sun May  4 16:55:51 2014
New Revision: 265333
URL: http://svnweb.freebsd.org/changeset/base/265333

Log:
  Add better error description for case when we are doing resize and
  scheme-specific method returns EBUSY.
  
  MFC after:	1 week

Modified:
  head/sys/geom/part/g_part.c

Modified: head/sys/geom/part/g_part.c
==============================================================================
--- head/sys/geom/part/g_part.c	Sun May  4 16:55:27 2014	(r265332)
+++ head/sys/geom/part/g_part.c	Sun May  4 16:55:51 2014	(r265333)
@@ -1316,7 +1316,9 @@ g_part_ctl_resize(struct gctl_req *req, 
 
 	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);
 	}
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201405041655.s44GtpX7078400>