aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreg Lehey <grog@FreeBSD.org>1999-03-13 07:34:56 +0000
committerGreg Lehey <grog@FreeBSD.org>1999-03-13 07:34:56 +0000
commit301851b63038f5a1db69f73b2bb3ffac06a9fe61 (patch)
tree3a9c684f9e43cf98240cb0c87741a95aa1295766
parent1a049f96aba272bef263efdc28a80d6d362eda04 (diff)
downloadsrc-301851b63038f5a1db69f73b2bb3ffac06a9fe61.tar.gz
src-301851b63038f5a1db69f73b2bb3ffac06a9fe61.zip
VINUM_RESETCONFIG: do the reset even if the config is open (as it has
to be for us to issue the ioctl :-). Also remove the opencount parameter of the config, which just never worked.
Notes
Notes: svn path=/head/; revision=44707
-rw-r--r--sys/dev/vinum/vinumioctl.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/dev/vinum/vinumioctl.c b/sys/dev/vinum/vinumioctl.c
index 442f462ad7a7..a858cfeb27e5 100644
--- a/sys/dev/vinum/vinumioctl.c
+++ b/sys/dev/vinum/vinumioctl.c
@@ -206,15 +206,13 @@ vinumioctl(dev_t dev,
return 0;
case VINUM_RESETCONFIG:
- if (vinum_inactive() && (vinum_conf.opencount < 2)) { /* if we're not active */
+ if (vinum_inactive(0)) { /* if the volumes are not active */
/*
* Note the open count. We may be called from v, so we'll be open.
* Keep the count so we don't underflow
*/
- int oc = vinum_conf.opencount;
free_vinum(1); /* clean up everything */
log(LOG_NOTICE, "vinum: CONFIGURATION OBLITERATED\n");
- vinum_conf.opencount = oc;
ioctl_reply = (struct _ioctl_reply *) data; /* reinstate the address to reply to */
ioctl_reply->error = 0;
return 0;