What steps will reproduce the problem?
# clonefs -addr :564 & # p/srv/examples/clonefs
# mkdir /mnt/clonefs
# mount -t 9p 127.0.0.1 /mnt/clonefs
# cd /mnt/clonefs
# cat clone
1#
# echo text >>1
# echo text >1
bash: 1: Operation not permitted
#
What is the expected output? What do you see instead?
Expected "echo text >1" to succeed.
What version of the product are you using? On what operating system?
$ hg tip
changeset: 106:2de9ef38f3b6
tag: tip
user: Andrey Mirtchovski <mirtchovski@gmail.com>
date: Mon Apr 02 13:44:29 2012 -0600
summary: Hardcoded certificates have expired. Allow "insecure" connections
by skipping the verify step until
$ uname -a
Linux hostname 2.6.38-11-generic-pae #50-Ubuntu SMP Mon Sep 12 22:21:04 UTC
2011 i686 i686 i386 GNU/Linux
$
Please provide any additional information below.
I recently wrote a trivial fs following the example code in timefs and clonefs
and
noticed the above error. Perhaps it is not by design?
http://9fans.net/archive/?q=%279pserve+question%27&go=Grep
seems to be related (strace and clonefs -d output attached);
applying the below patch fixes the issue.
$ hg diff .
diff -r 2de9ef38f3b6 p/srv/examples/clonefs/clonefs.go
--- a/p/srv/examples/clonefs/clonefs.go Mon Apr 02 13:44:29 2012 -0600
+++ b/p/srv/examples/clonefs/clonefs.go Mon Apr 30 18:45:45 2012 +0530
@@ -73,6 +73,10 @@
return len(data), nil
}
+func (cl *ClFile) Wstat(fid *srv.FFid, dir *p.Dir) error {
+ return nil
+}
+
func (cl *ClFile) Remove(fid *srv.FFid) error {
log.Println("Remove")
return nil
$
Thanks for go9p and the nice examples!
Arvindh
Original issue reported on code.google.com by a...@a-30.net on 30 Apr 2012 at 2:00
Original issue reported on code.google.com by
a...@a-30.net
on 30 Apr 2012 at 2:00Attachments: