Commits

Anonymous committed 3b7560c

Update simple-test, TODO, README

  • Participants
  • Parent commits 7ac6eee

Comments (0)

Files changed (3)

 Rename
 Change the fid allocation routines. Use pool(9)?
 Can we be sure to have a 1:1 mapping between o9fid and vnode?
+
+Need to have at least rev1.24 of /usr/share/mk/bsd.lkm.mk to build.
+i386 only. amd64 dies with out of KVA space when loading.
-- remove, wstat
-- locking
-- refcounting fids
-- add options to mount: noauth, auth as other user, port, aname
+- Unmount only works when forced.
+- Readdir doesn't return dot and dotdot
+- Implement wstat
+- Add options to mount: noauth, auth as other user, port, aname
+
 - v9fs pass the fcall up to the functions instead of bcopying data (as in Tread) like us
 
 known bugs:
-cannot unmount
 read/write crashes with len > 1024

File simple-test.sh

 testdir=$mtpt/tmp/testdir
 testfile=$testdir/test0
 
+domount() {
+	try mount/mount_o9fs '10.0.2.1!5648' $mtpt
+}
+
+dounmount() {
+	try umount $mtpt
+}
+
 readdir() {
-	try ls $mtpt/net
+	try ls $testdir
 }
 
 lreaddir() {
-	try ls -l $mtpt/net
+	try ls -l $testdir
 }
 
 create() {
-	try touch $mtpt/net/file
+	>$testfile
 }
 
 mkdir() {
-	try mkdir $mtpt/net/dir
+	try mkdir $testdir
 }
 
 xwrite() {
 	echo abc > .xx
-	try dd if=.xx of=$mtpt/net/dir
+	try dd if=.xx of=$testfile
 	rm .xx
 }
 
 xread() {
-	try dd if=$mtpt/net/dir of=.xx
+	try dd if=$testfile of=.xx
 	cat .xx
 	rm .xx
 }
 
 remove() {
-	try rm $mtpt/net/file
+	try rm $testfile
 }
 
 rmdir() {
-	try rmdir $mtpt/net/dir
+	try rmdir $testdir
 }
 
+domount
+mkdir
+create
 readdir
 lreaddir
-create
-mkdir
-rmdir
 xwrite
 xread
 remove
-	
+readdir
+lreaddir
+rmdir
+dounmount