diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2011-07-05 21:39:10 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2011-07-05 21:39:10 +0000 |
commit | 32166eacc937d86c26a20762d48df076a173062f (patch) | |
tree | cd7a083f87c45c12e9113922988311a88b76cb27 /sys/arch | |
parent | 6ff4286249e49d5a8bb0c1d374248073d68668e5 (diff) |
Add DIOCGPDINFO to rxioctl(), as a synonym for DIOCGDINFO, the last
place it was missing. Delete now redundant calls to DIOCGDINFO when
getting physical disk info in disklabel(8) and fdisk(8).
Reminded by a fdisk discussion with Andres Perera on tech@.
ok deraadt@
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/vax/mscp/mscp_disk.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/arch/vax/mscp/mscp_disk.c b/sys/arch/vax/mscp/mscp_disk.c index 39503d88151..b4cb3da23f3 100644 --- a/sys/arch/vax/mscp/mscp_disk.c +++ b/sys/arch/vax/mscp/mscp_disk.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mscp_disk.c,v 1.35 2011/06/05 18:40:33 matthew Exp $ */ +/* $OpenBSD: mscp_disk.c,v 1.36 2011/07/05 21:39:08 krw Exp $ */ /* $NetBSD: mscp_disk.c,v 1.30 2001/11/13 07:38:28 lukem Exp $ */ /* * Copyright (c) 1996 Ludd, University of Lule}, Sweden. @@ -689,6 +689,7 @@ rxioctl(dev, cmd, data, flag, p) switch (cmd) { case DIOCGDINFO: + case DIOCGPDINFO: /* no separate 'physical' info available. */ bcopy(lp, data, sizeof (struct disklabel)); break; |