summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2007-05-12 12:19:24 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2007-05-12 12:19:24 +0000
commit5bcb202dd6aa1e15667cd41b05841dfd2958c347 (patch)
tree8de91a41f17fb731472c118e546ae810bb5234c7
parente47727d3abd71e703ca59d236fb3422c34f0c142 (diff)
Use VNDLABELDEV() and not DISKLABELDEV() in writedisklabel() since
VNDLABELDEV() is used in readdisklabel(). VNDLABELDEV() preserves the vndsimple() property encoded in the device.
-rw-r--r--sys/dev/vnd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/vnd.c b/sys/dev/vnd.c
index 932130f206c..e74b9a74676 100644
--- a/sys/dev/vnd.c
+++ b/sys/dev/vnd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vnd.c,v 1.73 2007/04/29 18:59:37 krw Exp $ */
+/* $OpenBSD: vnd.c,v 1.74 2007/05/12 12:19:23 krw Exp $ */
/* $NetBSD: vnd.c,v 1.26 1996/03/30 23:06:11 christos Exp $ */
/*
@@ -914,7 +914,7 @@ vndioctl(dev_t dev, u_long cmd, caddr_t addr, int flag, struct proc *p)
vnd->sc_dk.dk_cpulabel);
if (error == 0) {
if (cmd == DIOCWDINFO)
- error = writedisklabel(DISKLABELDEV(dev),
+ error = writedisklabel(VNDLABELDEV(dev),
vndstrategy, vnd->sc_dk.dk_label,
vnd->sc_dk.dk_cpulabel);
}