[9fans] patch/create problem (error?)
  Home FAQ Contact Sign in
comp.os.plan9 only
 
Advanced search
POPULAR GROUPS

more...

comp.os.plan9 Profile…
 Up
[9fans] patch/create problem (error?)         


Author: Antonin Vecera
Date: Sep 12, 2008 00:38

Hello all,

I had problem to create a patch - the command didn't finish for long long time.
I tried to do it manualy step by step from command line and it seems
that the problem is with "cp" command.
This is method how to repeat it:

I have in my home dir prepared new version of tftpd.c

ls -l $home/src/tftpd
--rw-rw-r-- M 40 antonin antonin 7708 Sep 11 14:59
/usr/antonin/src/tftpd/tftpd.c

1. bind -b -c $home/src/tftpd /sys/src/cmd/ip
2. 9fs sources
3. cp /sys/src/cmd/ip/tftpd.c /n/sources/patch/tftpd-error
...and now it hangs.

If I copy to /n/sources regular file, things go right.
If I try to copy file from bind-ed dir, "cp" hangs.

Maybe I am somewhere wrong, I am not sure.

Antonin
5 Comments
Re: [9fans] patch/create problem (error?)         


Author: Steve Simon
Date: Sep 12, 2008 00:58

> I had problem to create a patch - the command didn't finish for long long time.

I created a patch yesterday and it worked fine. It is fairly slow as it
diff's all the files you have changed with those on sources.

Sadly the 9p protocol is quite badly effected by high (intercontinential) RTTs.

-Steve
4 Comments
Re: [9fans] patch/create problem (error?)         


Author: Antonin Vecera
Date: Sep 12, 2008 01:37

On Fri, Sep 12, 2008 at 9:54 AM, Steve Simon quintile.net> wrote:
>> I had problem to create a patch - the command didn't finish for long long time.
>
> I created a patch yesterday and it worked fine. It is fairly slow as it
> diff's all the files you have changed with those on sources.
>
> Sadly the 9p protocol is quite badly effected by high (intercontinential) RTTs.
>
> -Steve

There were only 2 files in the patch. I wait for about 10 minutes and nothing.
But then I tried to copy a file from command line.
If I copied an ordinary file (to /n/sources) it was done immediately.
But If I copied a file from bind-ed(!) directory it was endless...
There was no diff, only copy file.

Antonin
3 Comments
Re: [9fans] patch/create problem (error?)         


Author: erik quanstrom
Date: Sep 12, 2008 05:03

>>> I had problem to create a patch - the command didn't finish for long long time.
>>
>> I created a patch yesterday and it worked fine. It is fairly slow as it
>> diff's all the files you have changed with those on sources.
>>
>> Sadly the 9p protocol is quite badly effected by high (intercontinential) RTTs.
>>
>> -Steve
>
> There were only 2 files in the patch. I wait for about 10 minutes and nothing.
> But then I tried to copy a file from command line.
> If I copied an ordinary file (to /n/sources) it was done immediately.
> But If I copied a file from bind-ed(!) directory it was endless...
> There was no diff, only copy file.

i would guess the problem is a bit different. i'm assuming that
reads from sources work fine. it's not until you try to write there
that there's a problem.
Show full article (4.66Kb)
2 Comments
Re: [9fans] patch/create problem (error?)         


Author: Antonin Vecera
Date: Sep 12, 2008 10:31

On Fri, Sep 12, 2008 at 1:47 PM, erik quanstrom quanstro.net> wrote:
>>>> I had problem to create a patch - the command didn't finish for long long time.
>>>
>>> I created a patch yesterday and it worked fine. It is fairly slow as it
>>> diff's all the files you have changed with those on sources.
>>>
>>> Sadly the 9p protocol is quite badly effected by high (intercontinential) RTTs.
>>>
>>> -Steve
>>
>> There were only 2 files in the patch. I wait for about 10 minutes and nothing.
>> But then I tried to copy a file from command line.
>> If I copied an ordinary file (to /n/sources) it was done immediately.
>> But If I copied a file from bind-ed(!) directory it was endless...
>> There was no diff, only copy file.
>
> i would guess the problem is a bit different. i'm assuming that
> reads from sources work fine. it's not until you try to write there
> that there's a problem.
> ...
Show full article (1.99Kb)
1 Comment
Re: [9fans] patch/create problem (error?)         


Author: erik quanstrom
Date: Sep 12, 2008 11:20

> Anyway, does 9P and Plan9 know about "path MTU discovery"?

traditional path mtu uses icmp messages. if your router/modem/whatever
eats icmp, you're outta luck with these traditional methods.
cf. http://www.netheaven.com/pmtu.html i think there are some tricks
to get around the missing icmp messages, though.
> Or have I something wrong at my firewall/router?
> Other of my computers (FreeBSD,Windows) don't have such problems.

have you tried mounting sources from these machines?

i think this problem is pecular to sources. if the pmtu is
symmetric, it seems sources is a few bytes short of a full packet.
1510 bytes. yet when i read from a local machine, the tcp
packets are a bit long of a full packet
-- 1518 bytes.

something to look into.

- erik
no comments

RELATED THREADS
SubjectArticles qty Group
aggiornamento errore [Numero errore: 0x8007007B]microsoft.public.it.windowsupdate ·
Re: [PATCH -mm 0/5] LZO and swap write failure patches for -mmlinux.kernel ·
[PATCH 5/5] Vmi timer.patchlinux.kernel ·
[PATCH] drivers/media/video: handle sysfs errorslinux.kernel ·