9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] Mount problems with p9p
@ 2008-12-28 19:19 kix
  0 siblings, 0 replies; only message in thread
From: kix @ 2008-12-28 19:19 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

Thanks Russ for your comments,

This problem is not only with my fs. With the ramfs:

Thanks,

kix.

kix@sys:/tmp$ mkdir a
kix@sys:/tmp$ cp /usr/local/plan9/src/lib9p/ramfs.c a
kix@sys:/tmp$ cd a
kix@sys:/tmp/a$ 9c ramfs.c
kix@sys:/tmp/a$ 9l ramfs.o
kix@sys:/tmp/a$ mv a.out ramfs
kix@sys:/tmp/a$ mkdir ../b
kix@sys:/tmp/a$ ./ramfs -D -m /tmp/b
ramsrv.nopipe 0 srvname <nil> mtpt /tmp/b
<-4- Tversion tag 65535 msize 8192 version '9P2000.u'
-4-> Rversion tag 65535 msize 8192 version '9P2000.u'
<-4- Tattach tag 0 fid 0 afid -1 uname kix aname
-4-> Rattach tag 0 qid (0000000000000000 0 d)
kix@sys:/tmp/a$ mount
/dev/sda1 on / type ext3 (rw,errors=remount-ro)
tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
procbususb on /proc/bus/usb type usbfs (rw)
udev on /dev type tmpfs (rw,mode=0755)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620)
fusectl on /sys/fs/fuse/connections type fusectl (rw)
/dev/fuse on /tmp/b type fuse (rw,nosuid,nodev,user=kix)
kix@sys:/tmp/a$ cd ..
kix@sys:/tmp$ cd b
<-4- Tstat tag 0 fid 0
-4-> Rstat tag 0  stat '/' 'kix' 'kix' 'kix' q (0000000000000000 0 d) m
020000000777 at 1230491535 mt 1230491535 l 0 t 0 d 0
<-4- Twalk tag 0 fid 0 newfid 1 nwname 0
-4-> Rwalk tag 0 nwqid 0
<-4- Topen tag 0 fid 1 mode 0
fid mode is 0x0
-4-> Ropen tag 0 qid (0000000000000000 0 d) iounit 0
<-4- Tclunk tag 0 fid 1
-4-> Rclunk tag 0
kix@sys:/tmp/b$ echo hello > a.txt
<-4- Twalk tag 0 fid 0 newfid 1 nwname 1 0:a.txt
-4-> Rerror tag 0 ename file not found
<-4- Twalk tag 0 fid 0 newfid 1 nwname 0
-4-> Rwalk tag 0 nwqid 0
<-4- Tcreate tag 0 fid 1 name a.txt perm %M% mode 420
-4-> Rcreate tag 0 qid (0000000000000000 0 ) iounit 0
<-4- Tstat tag 0 fid 1
-4-> Rstat tag 0  stat 'a.txt' 'kix' 'kix' 'kix' q (0000000000000000 0 )
m 0644 at 1230491552 mt 1230491552 l 0 t 0 d 0
<-4- Twalk tag 0 fid 0 newfid 2 nwname 1 0:a.txt
-4-> Rwalk tag 0 nwqid 1 0:(0000000000000000 0 )
<-4- Twrite tag 0 fid 1 offset 0 count 6 '68656c6c 6f0a'
-4-> Rwrite tag 0 count 6
<-4- Tclunk tag 0 fid 1
-4-> Rclunk tag 0
kix@sys:/tmp/b$ ls
<-4- Twalk tag 0 fid 0 newfid 1 nwname 0
-4-> Rwalk tag 0 nwqid 0
<-4- Topen tag 0 fid 1 mode 0
fid mode is 0x0
-4-> Ropen tag 0 qid (0000000000000000 0 d) iounit 0
<-4- Tstat tag 0 fid 0
-4-> Rstat tag 0  stat '/' 'kix' 'kix' 'kix' q (0000000000000000 0 d) m
020000000777 at 1230491535 mt 1230491535 l 0 t 0 d 0
<-4- Twalk tag 0 fid 1 newfid 3 nwname 1 0:..
-4-> Rerror tag 0 ename cannot clone open fid
<-4- Tread tag 0 fid 1 offset 0 count 8168
-4-> Rread tag 0 count 63 '3d000000 00000000 00010000 00000000 00000000
00a40100 00a0cf57 49a0cf57 49060000 00000000 00050061 2e747874 03006b69
7803006b 69780300 6b6978'
ls: reading directory .: Numerical result out of range
<-4- Tclunk tag 0 fid 1
-4-> Rclunk tag 0
kix@sys:/tmp/b$



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-12-28 19:19 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-12-28 19:19 [9fans] Mount problems with p9p kix

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).