Re: [Nbd] Proposal to merge WRITE_ZEROES extension into master
- To: Alex Bligh <alex@...872...>
- Cc: "nbd-general@lists.sourceforge.net" <nbd-general@lists.sourceforge.net>
- Subject: Re: [Nbd] Proposal to merge WRITE_ZEROES extension into master
- From: Wouter Verhelst <w@...112...>
- Date: Thu, 15 Dec 2016 12:09:42 +0100
- Message-id: <20161215110942.6xepfmak53kgr4wc@...3...>
- In-reply-to: <FE824089-E29F-4894-B9CC-6A3CBC421CD6@...872...>
- References: <BC48D5D1-550F-4EE3-BC84-623AE864FB3A@...872...> <20161214181434.ko22eeq6vnwpakh2@...3...> <75E8140C-3000-4500-89A4-71A26040ADE4@...872...> <0132c6df-dbcf-b55a-6b56-f3279c825f1a@...696...> <4888CDE5-8CAD-4F0F-ABBC-6C904EC96ED0@...872...> <71fc32d7-2e5b-28c8-ec45-893daf5710d7@...696...> <FE824089-E29F-4894-B9CC-6A3CBC421CD6@...872...>
On Thu, Dec 15, 2016 at 09:45:14AM +0000, Alex Bligh wrote:
> > - len = strlen(client->server->servename);
> > - writeit(commsocket, &len, sizeof len);
> > - writeit(commsocket, client->server->servename, len);
> > - readit(commsocket, &acl, 1);
> > - close(commsocket);
> > + if (dontfork) {
> > + acl = 'Y';
> > + } else {
> > + len = strlen(client->server->servename);
> > + writeit(commsocket, &len, sizeof len);
> > + writeit(commsocket, client->server->servename, len);
> > + readit(commsocket, &acl, 1);
> > + close(commsocket);
> > + }
> >
> > switch(acl) {
> > case 'N':
> >
>
> I don't understand this bit of the patch. This seems to disable
> acls if 'dontfork' is enabled, and also change where socket
> closing is done. There may well be a reason for this, but
> it doesn't seem to be anything to do with writezeroes.
>
> What's going on here?
This is due to the fix for
<https://github.com/NetworkBlockDevice/nbd/issues/41>, which I applied
on master, but which breaks -d behaviour. I was meaning to fix that
still before releasing nbd 3.15, but hadn't gotten around to it yet.
Eric's patch makes -d work again, but disables maxconnections in that
case. I'll need to fix it up; hopefully that'll happen sometime next
week, because otherwise I'll be too late to make the Debian freeze for
stretch, and I'd really like STARTTLS to be in there.
Regards,
--
< ron> I mean, the main *practical* problem with C++, is there's like a dozen
people in the world who think they really understand all of its rules,
and pretty much all of them are just lying to themselves too.
-- #debian-devel, OFTC, 2016-02-12
Reply to: