From: Zdenek Kabelac <zkabelac@redhat.com>
To: lvm-devel@redhat.com
Subject: LVM2 include/.symlinks.in lib/Makefile.in lib/ ...
Date: Wed, 01 Dec 2010 10:07:33 +0100 [thread overview]
Message-ID: <4CF61055.3000008@redhat.com> (raw)
In-Reply-To: <20101130115336.28589.qmail@sourceware.org>
Dne 30.11.2010 12:53, mornfall at sourceware.org napsal(a):
> CVSROOT: /cvs/lvm2
> Module name: LVM2
> Changes by: mornfall at sourceware.org 2010-11-30 11:53:33
>
>
> if (segtype->ops->target_percent &&
> !segtype->ops->target_percent(&dm->target_state,
> - &percent_range, dm->mem,
> + &percent, dm->mem,
> dm->cmd, seg, params,
> &total_numerator,
> &total_denominator))
> goto_out;
>
> if (first_time) {
> - combined_percent_range = percent_range;
> + *overall_percent = percent;
> first_time = 0;
When we are friends with analyzers now ;) -
if (segtype->ops->target_percent == NULL)
is not defined of fails - 'percent' will contain some garbage.
I assume something like this would help?
- percent_t percent;
+ percent_t percent = PERCENT_INVALID;
Other thing is - how the _combine_percent() is supposed to work in this case?
Maybe you want to goto_out if segtype->ops->target_percent == NULL) as
programming error ?
Zdenek
next prev parent reply other threads:[~2010-12-01 9:07 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-30 11:53 LVM2 include/.symlinks.in lib/Makefile.in lib/ mornfall
2010-12-01 9:07 ` Zdenek Kabelac [this message]
2010-12-08 19:21 ` Alasdair G Kergon
-- strict thread matches above, loose matches on Subject: below --
2010-09-30 13:05 wysochanski
2010-09-30 13:05 wysochanski
2010-09-30 13:04 wysochanski
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=4CF61055.3000008@redhat.com \
--to=zkabelac@redhat.com \
--cc=lvm-devel@redhat.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.