Displaying 1 result from an estimated 1 matches for "vn_mountro".
2003 May 14
0
vnconfig(8), bin/45754
...t flags;
+ int flags, status;
struct vn_ioctl vnio;
register int rv;
char *rdev;
@@ -260,7 +260,7 @@
u_long l;
int pgsize = getpagesize();
- rv = 0;
+ status = rv = 0;
/*
* Prepend "/dev/" to the specified device name, if necessary.
@@ -333,6 +333,7 @@
if (flags & (VN_MOUNTRO|VN_MOUNTRW)) {
rv = unmount(oarg, 0);
if (rv) {
+ status--;
if (errno == EBUSY)
flags &= ~VN_UNCONFIG;
if ((flags & VN_UNCONFIG) == 0)
@@ -351,8 +352,10 @@
if (verbose)
printf("%s: not configured\n", dev);
rv = 0;
- } else
+ } else {...