mbox series

[v2,0/3] nbd-client: drop extra error noise

Message ID 20181218225714.284495-1-eblake@redhat.com
Headers show
Series nbd-client: drop extra error noise | expand

Message

Eric Blake Dec. 18, 2018, 10:57 p.m. UTC
This is a counter-proposal to Vladimir's initial post for
reducing the noise in iotest 083.  The difference is that
I dropped error_get_hint, since I couldn't find any useful
hint to be traced during transmission phase in the first place,
and instead added a trace message for the one place where we
do set hints during handshaking phase.

Eric Blake (1):
  nbd/client: Trace all server option error messages

Vladimir Sementsov-Ogievskiy (2):
  nbd: publish _lookup functions
  block/nbd-client: use traces instead of noisy error_report_err

 include/block/nbd.h        |  5 +++++
 nbd/nbd-internal.h         |  5 -----
 block/nbd-client.c         | 23 +++++++++++++++++++----
 nbd/client.c               |  2 ++
 block/trace-events         |  4 ++++
 nbd/trace-events           |  1 +
 tests/qemu-iotests/083.out | 28 ----------------------------
 7 files changed, 31 insertions(+), 37 deletions(-)

Comments

Vladimir Sementsov-Ogievskiy Dec. 19, 2018, 12:03 p.m. UTC | #1
19.12.2018 1:57, Eric Blake wrote:
> This is a counter-proposal to Vladimir's initial post for
> reducing the noise in iotest 083.  The difference is that
> I dropped error_get_hint, since I couldn't find any useful
> hint to be traced during transmission phase in the first place,
> and instead added a trace message for the one place where we
> do set hints during handshaking phase.

OK, agree with the idea.

> 
> Eric Blake (1):
>    nbd/client: Trace all server option error messages
> 
> Vladimir Sementsov-Ogievskiy (2):
>    nbd: publish _lookup functions
>    block/nbd-client: use traces instead of noisy error_report_err
> 
>   include/block/nbd.h        |  5 +++++
>   nbd/nbd-internal.h         |  5 -----
>   block/nbd-client.c         | 23 +++++++++++++++++++----
>   nbd/client.c               |  2 ++
>   block/trace-events         |  4 ++++
>   nbd/trace-events           |  1 +
>   tests/qemu-iotests/083.out | 28 ----------------------------
>   7 files changed, 31 insertions(+), 37 deletions(-)
>
Eric Blake Dec. 19, 2018, 5:22 p.m. UTC | #2
On 12/19/18 6:03 AM, Vladimir Sementsov-Ogievskiy wrote:
> 19.12.2018 1:57, Eric Blake wrote:
>> This is a counter-proposal to Vladimir's initial post for
>> reducing the noise in iotest 083.  The difference is that
>> I dropped error_get_hint, since I couldn't find any useful
>> hint to be traced during transmission phase in the first place,
>> and instead added a trace message for the one place where we
>> do set hints during handshaking phase.
> 
> OK, agree with the idea.

Thanks. I'll queue this one through my NBD tree and send a pull request 
soon (although depending on timing, Peter might not apply it until 
January...)