From 1dc6e083c15e1580b02d30aa349821fe98fcf989 Mon Sep 17 00:00:00 2001 From: rsc Date: Sun, 25 Jun 2006 23:55:37 +0000 Subject: plumbunmount --- src/libplumb/fid.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/libplumb') 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 @@ -8,6 +8,19 @@ static CFsys *fsplumb; 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) { -- cgit v1.2.3