Re: [Nbd] NBD, DISCARD/TRIM
- To: nbd-general@lists.sourceforge.net
- Subject: Re: [Nbd] NBD, DISCARD/TRIM
- From: Wouter Verhelst <w@...112...>
- Date: Fri, 29 Mar 2013 18:32:53 +0100
- Message-id: <5155D045.7070200@...112...>
- In-reply-to: <5155BAC2.9080407@...112...>
- References: <CAECXXi5N6RpC8=YcWFaiwH2oBA8aJHRvcwLJg_Hw14ESL1+bnA@...18...> <CAECXXi6G3ydMAvjP1fHJJ-Jn_6e3GQO51XiVy4jpXv1yu2X1jw@...18...> <20130322212454.GC19387@...855...> <CAECXXi6V+onKJjR+NZ0nDLHtXze2tTeQZdPHYX8rozB06-C+bg@...18...> <20130325192620.GF32435@...855...> <CAECXXi5sMNO7GFeicPh9JPtNk7tMSPoXH_14eOtbns+ik5eX8w@...18...> <20130325204900.GH32435@...855...> <CAECXXi7O2JDfMJ6-8oio6ykoximBP4+KtfPjX6ATgt84rW4FjQ@...18...> <20130327204914.GT32435@...855...> <CAECXXi6LQ0oLWV3WvWDmiN1pDUEyHEfpn4jfmzh--PpMYXLfSQ@...18...> <20130328163642.GY32435@...855...> <CAECXXi7=Nh6jwF3w6d7kEJR4W37gqUjdmOsaGRtdvdHcc6S-fg@...18...> <5155BAC2.9080407@...112...>
On 29-03-13 17:01, Wouter Verhelst wrote:
> On 29-03-13 15:30, Paul Clements wrote:
>> On Thu, Mar 28, 2013 at 12:36 PM, folkert <folkert@...421...> wrote:
>>>> Very good. Would it be at all possible to try the attached patch,
>>>> which includes some additional debugging information, so that we can
>>>> see why this is happening?
>>>
>>> It is unclear which process is the trigger:
>>>
>>> [ 71.078260] got ERESTARTSYS: sig:17 code:262145 sender:2853
>>
>> OK, so sig 17 is SIGCHLD???
>
> AAAARGh!
>
>> This is weird. I'm not that familiar with
>> latest upstream nbd-client, but is there maybe some fork or thread
>> that is happening?
>
> Yes, that's for the partitioning stuff. Originally I had the parent do
> that, but then the "-nofork" parameter would behave counterintuitive.
>
> Now we fork(), but that obviously means I need to eat SIGCHLD. Sigh.
Actually, I am eating SIGCHLD; nbd-client.c, line 607. I suppose we
can't deal with this any other way?
--
Copyshops should do vouchers. So that next time some bureaucracy
requires you to mail a form in triplicate, you can mail it just once,
add a voucher, and save on postage.
Reply to:
- References:
- Re: [Nbd] NBD, DISCARD/TRIM
- From: Paul Clements <paul.clements@...856...>
- Re: [Nbd] NBD, DISCARD/TRIM
- From: Paul Clements <paul.clements@...856...>
- Re: [Nbd] NBD, DISCARD/TRIM
- From: folkert <folkert@...421...>
- Re: [Nbd] NBD, DISCARD/TRIM
- From: Paul Clements <paul.clements@...856...>
- Re: [Nbd] NBD, DISCARD/TRIM
- From: folkert <folkert@...421...>
- Re: [Nbd] NBD, DISCARD/TRIM
- From: Paul Clements <paul.clements@...856...>
- Re: [Nbd] NBD, DISCARD/TRIM
- From: folkert <folkert@...421...>
- Re: [Nbd] NBD, DISCARD/TRIM
- From: Paul Clements <paul.clements@...856...>
- Re: [Nbd] NBD, DISCARD/TRIM
- From: folkert <folkert@...421...>
- Re: [Nbd] NBD, DISCARD/TRIM
- From: Paul Clements <paul.clements@...856...>
- Re: [Nbd] NBD, DISCARD/TRIM
- From: folkert <folkert@...421...>
- Re: [Nbd] NBD, DISCARD/TRIM
- From: Paul Clements <paul.clements@...856...>
- Re: [Nbd] NBD, DISCARD/TRIM
- From: Wouter Verhelst <w@...112...>