From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <4957D14A.7090709@kix.es> Date: Sun, 28 Dec 2008 14:19:38 -0500 From: kix User-Agent: Mozilla-Thunderbird 2.0.0.17 (X11/20081018) MIME-Version: 1.0 To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: [9fans] Mount problems with p9p Topicbox-Message-UUID: 733e64e4-ead4-11e9-9d60-3106f5b1d025 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 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$