aboutsummaryrefslogtreecommitdiff
path: root/src/libplumb
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2006-06-25 23:55:37 +0000
committerrsc <devnull@localhost>2006-06-25 23:55:37 +0000
commit1dc6e083c15e1580b02d30aa349821fe98fcf989 (patch)
treef826b95257210c7c1859385547db8c8b160262ff /src/libplumb
parent70584625ae19b622a1dfe73181f2b0a083fea351 (diff)
downloadplan9port-1dc6e083c15e1580b02d30aa349821fe98fcf989.tar.gz
plan9port-1dc6e083c15e1580b02d30aa349821fe98fcf989.tar.bz2
plan9port-1dc6e083c15e1580b02d30aa349821fe98fcf989.zip
plumbunmount
Diffstat (limited to 'src/libplumb')
-rw-r--r--src/libplumb/fid.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/libplumb/fid.c b/src/libplumb/fid.c
index cea5ce02..ec133c82 100644
--- a/src/libplumb/fid.c
+++ b/src/libplumb/fid.c
@@ -9,6 +9,19 @@ static int pfd = -1;
static CFid *pfid;
int
+plumbunmount(void)
+{
+ CFsys *fsys;
+
+ if(fsplumb){
+ fsys = fsplumb;
+ fsplumb = nil;
+ fsunmount(fsys);
+ }
+ return 0;
+}
+
+int
plumbopen(char *name, int omode)
{
if(fsplumb == nil)