summaryrefslogtreecommitdiff
path: root/sys/dev/flash.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/flash.c')
-rw-r--r--sys/dev/flash.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/dev/flash.c b/sys/dev/flash.c
index 8f267d5775f..9c18b848321 100644
--- a/sys/dev/flash.c
+++ b/sys/dev/flash.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: flash.c,v 1.18 2010/09/22 01:18:57 matthew Exp $ */
+/* $OpenBSD: flash.c,v 1.19 2010/09/22 06:40:25 krw Exp $ */
/*
* Copyright (c) 2005 Uwe Stuehler <uwe@openbsd.org>
@@ -850,9 +850,14 @@ flashioctl(dev_t dev, u_long cmd, caddr_t data, int fflag, struct proc *p)
}
switch (cmd) {
+ case DIOCGPDINFO:
+ flashgetdisklabel(dev, sc, (struct disklabel *)data, 1);
+ break
+
case DIOCGDINFO:
*(struct disklabel *)data = *sc->sc_dk.dk_label;
break;
+
default:
error = ENOTTY;
break;