You are not logged in.

#1 2011-10-02 19:04:27

W.F.Cody
Member
From: Ghent
Registered: 2010-11-18
Posts: 155

[solved?] Copying stuff over a 9P connection using plan9port?

Hi

I have been toying with the idea to try to build some stuff from Bell labs sources using kencc and plan9port.

My first issue comes from pulling the sources using the 9P protocol:

 9 mount 'tcp!sources.cs.bell-labs.com' $srcdir/sources

makes a good connection and I can cd to wherever in the source directory...

I can however not copy stuff and it seems to be permission issues related to this.
for example:

~/Arch/Packaging/kencc-ape-9p/src % cp -ar sources/plan9/sys/src/ape ape
unexpected open flags 0500000cp: kan inte öppna ”sources/plan9/sys/src/ape/9src/mkfile” för läsning: Åtkomst nekas
unexpected open flags 0500000cp: kan inte öppna ”sources/plan9/sys/src/ape/9src/stty.c” för läsning: Åtkomst nekas
unexpected open flags 0500000cp: kan inte öppna ”sources/plan9/sys/src/ape/9src/tar.c” för läsning: Åtkomst nekas
unexpected open flags 0500000cp: kan inte öppna ”sources/plan9/sys/src/ape/9src/tty.h” för läsning: Åtkomst nekas
unexpected open flags 0500000cp: kan inte öppna ”sources/plan9/sys/src/ape/cmd/README” för läsning: Åtkomst nekas
unexpected open flags 0500000cp: kan inte öppna ”sources/plan9/sys/src/ape/cmd/basename.c” för läsning: Åtkomst nekas
unexpected open flags 0500000cp: kan inte öppna ”sources/plan9/sys/src/ape/cmd/cc.c” för läsning: Åtkomst nekas

(translation:
"kan inte öppna" = can not open
"för läsning: Åtkomst nekas" = for reading: Permission denied)

Does anyone have experience with using 9P2000 from within plan9port? Are there solutions to this problem?

Last edited by W.F.Cody (2011-10-04 20:02:49)


My AUR packages
Any package of mine is up for grabs. If you think you could mantain it better - just contact me!

Offline

#2 2011-10-04 18:58:15

Zerathidune
Member
Registered: 2007-02-25
Posts: 102

Re: [solved?] Copying stuff over a 9P connection using plan9port?

I have the same problem trying it via p9p. but the kernel's built-in 9p support works for me. As root:

mount -t 9p 204.178.31.11 mountpoint

You need to specifiy the ip address; it won't do dns lookups for you.

I'm not sure what the problem with p9p is, but maybe this workaround will help. You also could see if the problem also exists with self-built p9p, rather than one from the package, to see if it is a problem with the package.

Offline

#3 2011-10-04 19:11:11

W.F.Cody
Member
From: Ghent
Registered: 2010-11-18
Posts: 155

Re: [solved?] Copying stuff over a 9P connection using plan9port?

Awsome!

Thanks! This will do for now, and then I will try to figure out why it does not work with p9p later smile

I just sent an email to the 9fans list with the same question so perhaps someone will figure it out.


Edit: A patch has been made that supposedly fixes the issue with 9pfuse:

http://9fans.net/archive/2011/10/103

I have not yet tried it

Last edited by W.F.Cody (2011-10-04 20:04:38)


My AUR packages
Any package of mine is up for grabs. If you think you could mantain it better - just contact me!

Offline

Board footer

Powered by FluxBB