summaryrefslogtreecommitdiffstats
path: root/sys/dev/vinum
diff options
context:
space:
mode:
authorgrog <grog@FreeBSD.org>2003-05-23 01:14:13 +0000
committergrog <grog@FreeBSD.org>2003-05-23 01:14:13 +0000
commit1ae9be9a1f44b86f7d488d5b295a2736bdbf26fc (patch)
treeb4785a39e7fef8d117e278d5a3a29553063261a8 /sys/dev/vinum
parent18dc607a3bdd5f64bb40d2c74d78d3b7e91e4f26 (diff)
downloadFreeBSD-src-1ae9be9a1f44b86f7d488d5b295a2736bdbf26fc.zip
FreeBSD-src-1ae9be9a1f44b86f7d488d5b295a2736bdbf26fc.tar.gz
detachobject: Update volume config after detaching a plex.
update_volume_config: Remove redundant diskconfig parameter. Approved by: re (jhb)
Diffstat (limited to 'sys/dev/vinum')
-rw-r--r--sys/dev/vinum/vinumioctl.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/dev/vinum/vinumioctl.c b/sys/dev/vinum/vinumioctl.c
index 294ac2c..d06a8e1 100644
--- a/sys/dev/vinum/vinumioctl.c
+++ b/sys/dev/vinum/vinumioctl.c
@@ -41,7 +41,7 @@
* otherwise) arising in any way out of the use of this software, even if
* advised of the possibility of such damage.
*
- * $Id: vinumioctl.c,v 1.22 2003/05/07 03:31:45 grog Exp grog $
+ * $Id: vinumioctl.c,v 1.23 2003/05/23 01:02:22 grog Exp $
* $FreeBSD$
*/
@@ -721,6 +721,8 @@ detachobject(struct vinum_ioctl_msg *msg)
set_plex_state(plex->plexno,
plex_down,
setstate_force | setstate_configuring);
+ if (plex->volno >= 0) /* plex attached to volume, */
+ update_volume_config(plex->volno);
save_config();
reply->error = 0;
}
@@ -783,7 +785,7 @@ detachobject(struct vinum_ioctl_msg *msg)
bcopy("ex-", plex->name, 3);
plex->name[MAXPLEXNAME - 1] = '\0';
}
- update_volume_config(volno, 0);
+ update_volume_config(volno);
save_config();
reply->error = 0;
} else {
@@ -856,7 +858,7 @@ renameobject(struct vinum_rename_msg *msg)
vol = validvol(msg->index, reply);
if (vol) {
bcopy(msg->newname, vol->name, MAXVOLNAME);
- update_volume_config(msg->index, 0);
+ update_volume_config(msg->index);
save_config();
reply->error = 0;
}
OpenPOWER on IntegriCloud