diff options
| author | Greg Lehey <grog@FreeBSD.org> | 1999-03-13 07:34:56 +0000 |
|---|---|---|
| committer | Greg Lehey <grog@FreeBSD.org> | 1999-03-13 07:34:56 +0000 |
| commit | 301851b63038f5a1db69f73b2bb3ffac06a9fe61 (patch) | |
| tree | 3a9c684f9e43cf98240cb0c87741a95aa1295766 /sys/dev | |
| parent | 1a049f96aba272bef263efdc28a80d6d362eda04 (diff) | |
Notes
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/vinum/vinumioctl.c | 4 |
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; |
