tbackups - plan9port - [fork] Plan 9 from user space
git clone git://src.adamsgaard.dk/plan9port
Log
Files
Refs
README
LICENSE
---
commit cbf81cb09d586d3ca278dca9bae6df0661dad3b3
parent 6eaf9471a7883ae0e7dca0a274a64816ec2c6e3b
Author: rsc 
Date:   Wed, 13 Jul 2005 14:05:25 +0000

backups

Diffstat:
  A bin/vmount                          |      19 +++++++++++++++++++

1 file changed, 19 insertions(+), 0 deletions(-)
---
diff --git a/bin/vmount b/bin/vmount
t@@ -0,0 +1,19 @@
+#!/usr/local/plan9/bin/rc
+
+if(! ~ $#* 2){
+        echo 'usage: vmount server mtpt' >[1=2]
+        exit usage
+}
+
+server=$1
+mtpt=$2
+
+switch(`{uname}){
+case Linux
+        exec mount -o 'ro,timeo=100,rsize=8192,retrans=5,port=12049,mountport=12049,mountvers=3,nfsvers=3,nolock,soft,intr,udp' \
+                $server:/dump $mtpt
+case *
+        echo 'cannot mount on' `{uname} >[1=2]
+        exit usage
+}
+