Re: [Nbd] [PATCH] Only send one reply on oversize writes
- To: Alex Bligh <alex@...872...>
- Cc: nbd-general@lists.sourceforge.net
- Subject: Re: [Nbd] [PATCH] Only send one reply on oversize writes
- From: Wouter Verhelst <w@...112...>
- Date: Sun, 29 May 2011 11:31:13 +0200
- Message-id: <20110529093113.GD23363@...510...>
- In-reply-to: <6EFB3D5FD60A129D80E2B74C@...874...>
- References: <1306560268-19484-1-git-send-email-alex@...872...> <20110528085523.GC32221@...510...> <33FC6E538A76BA35B1D798B4@...874...> <20110528101214.GA9316@...510...> <5DA2DC50EEB2FE1A65B357A5@...874...> <20110528105556.GI10543@...510...> <3BA496AB30EF504753B2C84B@...873...> <E9F230EF57B6F691D8DCC5F3@...873...> <20110529071748.GA4079@...510...> <6EFB3D5FD60A129D80E2B74C@...874...>
On Sun, May 29, 2011 at 10:02:36AM +0100, Alex Bligh wrote:
> Wouter,
>
> --On 29 May 2011 09:17:48 +0200 Wouter Verhelst <w@...112...> wrote:
>
> >> You will be pleased to hear I don't plan to do anything more for
> >> this weekend's release, unless you find some bugs in my code of
> >> course.
> >
> > I didn't see anything suspicious in your code, so I've merged it. I'm
> > working on the release right now.
>
> Thanks, but that clearly jinxed it:
>
> > Scratch that, it doesn't work if you do --enable-syslog (because
> > nbd-trdump.c doesn't #include <syslog.h>) nbd-trdump). I've committed a
> > fix for that, will upload fixed files in a minute (once 'make distcheck'
> > finishes).
>
> Sorry about that. My excuse for today is that cliserv.h is a bit of
> a hotch-potch -
It is; it's the one thing I never got around to cleaning up after I took
over maintainership.
> I'd never imagined it would be calling syslog etc.
> If it is going to call syslog (i.e. if that define is set), it should
> probably '#include <syslog.h>' itself rather than hoping the file
> including cliserv.h does that too.
Yeah, probably. On the other hand, there's no point for nbd-trdump to
write anything to syslog, so this #undef is probably a good idea at any
rate.
--
The volume of a pizza of thickness a and radius z can be described by
the following formula:
pi zz a
Reply to: