git://git.onelab.eu
/
vsys.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
d371445
)
Mount cmd
author
Sapan Bhatia
<sapanb@cs.princeton.edu>
Thu, 19 Feb 2009 20:05:45 +0000
(20:05 +0000)
committer
Sapan Bhatia
<sapanb@cs.princeton.edu>
Thu, 19 Feb 2009 20:05:45 +0000
(20:05 +0000)
factory/nfsmount
patch
|
blob
|
history
diff --git
a/factory/nfsmount
b/factory/nfsmount
index
3f0222d
..
42303dc
100755
(executable)
--- a/
factory/nfsmount
+++ b/
factory/nfsmount
@@
-33,3
+33,16
@@
if ($nfspath!~/^(((\.\.){1}\/)*|(\/){1})?(([a-zA-Z0-9]*)\/)*([a-zA-Z0-9]*)+$/) {
die("The remote path $nfspath does not seem to be right.");
}
die("The remote path $nfspath does not seem to be right.");
}
+my $mntcmd;
+
+$mntcmd="/bin/mount $remotepath $localpath";
+system($mntcmd);
+
+if ($?) {
+ print "Mount failed: $?";
+}
+else {
+ open FIL, ">$already_mounted_testfile";
+ print FIL "$remotepath $localpath";
+ close FIL;
+}