diff options
author | 2007-05-12 12:19:23 +0000 | |
---|---|---|
committer | 2007-05-12 12:19:23 +0000 | |
commit | 1f6b10d186fe79f94dde4ba9feeb067bf2214112 (patch) | |
tree | fed1795be1c48666cfa9a67f5c282db6f2a0ee2b /sys/dev/vnd.c | |
parent | Add initial bits for assembly at boot time. (diff) | |
download | wireguard-openbsd-1f6b10d186fe79f94dde4ba9feeb067bf2214112.tar.xz wireguard-openbsd-1f6b10d186fe79f94dde4ba9feeb067bf2214112.zip |
Use VNDLABELDEV() and not DISKLABELDEV() in writedisklabel() since
VNDLABELDEV() is used in readdisklabel(). VNDLABELDEV() preserves the
vndsimple() property encoded in the device.
Diffstat (limited to 'sys/dev/vnd.c')
-rw-r--r-- | sys/dev/vnd.c | 4 |
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); } |