From: NeilBrown <neilb@suse.de>
To: Lukasz Dorau <lukasz.dorau@intel.com>
Cc: linux-raid@vger.kernel.org, dan.j.williams@intel.com,
marcin.labun@intel.com, ed.ciechanowski@intel.com
Subject: Re: [PATCH] imsm: make messages more understandable
Date: Tue, 20 Dec 2011 10:37:37 +1100 [thread overview]
Message-ID: <20111220103737.4248f3cb@notabene.brown> (raw)
In-Reply-To: <20111216140452.20625.63109.stgit@gklab-128-085.igk.intel.com>
[-- Attachment #1: Type: text/plain, Size: 1299 bytes --]
On Fri, 16 Dec 2011 15:04:53 +0100 Lukasz Dorau <lukasz.dorau@intel.com>
wrote:
> The printed messages should be more appropriate and understandable
> for user. If maxsize is equal 0, this means there is no free space left
> on device. If size is greater than maxsize, this means there is not enough
> space to create a new volume of given size.
>
> Signed-off-by: Lukasz Dorau <lukasz.dorau@intel.com>
> ---
> super-intel.c | 13 ++++++++++---
> 1 files changed, 10 insertions(+), 3 deletions(-)
>
> diff --git a/super-intel.c b/super-intel.c
> index 3c10d29..3990d58 100644
> --- a/super-intel.c
> +++ b/super-intel.c
> @@ -5466,9 +5466,16 @@ static int validate_geometry_imsm_volume(struct supertype *st, int level,
> }
>
> if (maxsize < size || maxsize == 0) {
> - if (verbose)
> - fprintf(stderr, Name ": not enough space after merge (%llu < %llu)\n",
> - maxsize, size);
> + if (verbose) {
> + if (maxsize == 0)
> + fprintf(stderr, Name ": no free space"
> + " left on device. Aborting...\n");
> + else
> + fprintf(stderr, Name ": not enough space"
> + " to create volume of given size"
> + " (%llu < %llu). Aborting...\n",
> + maxsize, size);
> + }
> return 0;
> }
Applied. Thanks.
NeilBrown
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 828 bytes --]
prev parent reply other threads:[~2011-12-19 23:37 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-16 14:04 [PATCH] imsm: make messages more understandable Lukasz Dorau
2011-12-16 17:59 ` Williams, Dan J
2011-12-19 9:34 ` Labun, Marcin
2011-12-19 23:37 ` NeilBrown [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20111220103737.4248f3cb@notabene.brown \
--to=neilb@suse.de \
--cc=dan.j.williams@intel.com \
--cc=ed.ciechanowski@intel.com \
--cc=linux-raid@vger.kernel.org \
--cc=lukasz.dorau@intel.com \
--cc=marcin.labun@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).