From: Markus Armbruster <armbru@redhat.com>
To: Jeff Cody <jcody@redhat.com>
Cc: Buddhi Madhav <Buddhi.Madhav@veritas.com>,
"kwolf@redhat.com" <kwolf@redhat.com>,
Ashish Mittal <Ashish.Mittal@veritas.com>,
"stefanha@gmail.com" <stefanha@gmail.com>,
"qemu-devel@nongnu.org" <qemu-devel@nongnu.org>,
Rakesh Ranjan <Rakesh.Ranjan@veritas.com>,
Ketan Nilangekar <Ketan.Nilangekar@veritas.com>,
Abhijit Dey <Abhijit.Dey@veritas.com>,
"famz@redhat.com" <famz@redhat.com>,
"pbonzini@redhat.com" <pbonzini@redhat.com>,
Ashish Mittal <ashmit602@gmail.com>
Subject: Re: [Qemu-devel] [PATCH v1] block/vxhs: Add Veritas HyperScale VxHS block device support
Date: Thu, 27 Oct 2016 08:49:09 +0200 [thread overview]
Message-ID: <87vawei8wq.fsf@dusky.pond.sub.org> (raw)
In-Reply-To: <20161027010959.GJ2677@localhost.localdomain> (Jeff Cody's message of "Wed, 26 Oct 2016 21:09:59 -0400")
Jeff Cody <jcody@redhat.com> writes:
> On Wed, Oct 26, 2016 at 09:33:30PM +0000, Buddhi Madhav wrote:
>>
>>
>> On 10/25/16, 9:41 PM, "Jeff Cody" <jcody@redhat.com> wrote:
>>
>> >On Tue, Oct 25, 2016 at 03:02:07PM -0700, Ashish Mittal wrote:
>> >> This patch adds support for a new block device type called "vxhs".
>> >> Source code for the library that this code loads can be downloaded from:
>> >> https://github.com/MittalAshish/libqnio.git
>> >>
>> >
>> >I grabbed the latest of libqnio, compiled it (had to disable -Werror), and
>> >tried it out. I was able to do a qemu-img info on a raw file, but it
>> >would
>> >just hang when trying a format such as qcow2. I am assuming
>> >this is a limitation of test_server, and not libqnio.
>>
>> On my build I did not get any build errors.
>>
>
> Likely a difference in gcc versions; I am compiling with gcc 6.2.1. Here
> are the warnings I get (this is just for your benefit, not really part of
> this driver review):
>
> lib/qnio/cJSON.c: In function ‘cJSON_strcasecmp’:
> lib/qnio/cJSON.c:41:5: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
> if (!s1) return (s1==s2)?0:1;if (!s2) return 1;
> ^~
> lib/qnio/cJSON.c:41:34: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘if’
> if (!s1) return (s1==s2)?0:1;if (!s2) return 1;
> ^~
> lib/qnio/cJSON.c: In function ‘print_object’:
> lib/qnio/cJSON.c:440:9: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
> if (fmt) *ptr++='\n';*ptr=0;
> ^~
> lib/qnio/cJSON.c:440:30: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘if’
> if (fmt) *ptr++='\n';*ptr=0;
> ^
> lib/qnio/cJSON.c: In function ‘cJSON_DetachItemFromArray’:
> lib/qnio/cJSON.c:467:5: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
> if (c->prev) c->prev->next=c->next;if (c->next) c->next->prev=c->prev;if (c==array->child) array->child=c->next;c->prev=c->next=0;return c;}
> ^~
> lib/qnio/cJSON.c:467:40: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘if’
> if (c->prev) c->prev->next=c->next;if (c->next) c->next->prev=c->prev;if (c==array->child) array->child=c->next;c->prev=c->next=0;return c;}
Looks like this code hasn't been competently reviewed, not even fed to a
state-of-the-art static analyzer. As long as that remains the case,
linking with it outside experimental settings feels unadvisable.
[...]
next prev parent reply other threads:[~2016-10-27 6:49 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-10-25 22:02 [Qemu-devel] [PATCH v1] block/vxhs: Add Veritas HyperScale VxHS block device support Ashish Mittal
2016-10-26 4:41 ` Jeff Cody
2016-10-26 6:30 ` Daniel P. Berrange
2016-10-26 21:33 ` Buddhi Madhav
2016-10-27 1:09 ` Jeff Cody
2016-10-27 6:49 ` Markus Armbruster [this message]
2016-10-27 7:27 ` Daniel P. Berrange
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=87vawei8wq.fsf@dusky.pond.sub.org \
--to=armbru@redhat.com \
--cc=Abhijit.Dey@veritas.com \
--cc=Ashish.Mittal@veritas.com \
--cc=Buddhi.Madhav@veritas.com \
--cc=Ketan.Nilangekar@veritas.com \
--cc=Rakesh.Ranjan@veritas.com \
--cc=ashmit602@gmail.com \
--cc=famz@redhat.com \
--cc=jcody@redhat.com \
--cc=kwolf@redhat.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=stefanha@gmail.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.