diff options
| author | dholland <dholland@NetBSD.org> | 2014-07-25 08:02:18 +0000 |
|---|---|---|
| committer | dholland <dholland@NetBSD.org> | 2014-07-25 08:02:18 +0000 |
| commit | da8feef99a1863b3cdff350f8a1a089d34d09185 (patch) | |
| tree | 1c6c71186b1e535a1dc636a9188051e98bdd8561 /sys/dev/gpib | |
| parent | 1be6681b34110f97e344843acf115f2eaf591a2b (diff) | |
Add d_discard to all struct bdevsw instances I could find.
I've set them all to nodiscard. Some of them (wd, dk, vnd, ld,
raidframe, maybe cgd) should be implemented for real.
Diffstat (limited to 'sys/dev/gpib')
| -rw-r--r-- | sys/dev/gpib/ct.c | 5 | ||||
| -rw-r--r-- | sys/dev/gpib/mt.c | 5 | ||||
| -rw-r--r-- | sys/dev/gpib/rd.c | 5 |
3 files changed, 9 insertions, 6 deletions
diff --git a/sys/dev/gpib/ct.c b/sys/dev/gpib/ct.c index 5b998082938..57aa53d77f2 100644 --- a/sys/dev/gpib/ct.c +++ b/sys/dev/gpib/ct.c @@ -1,4 +1,4 @@ -/* $NetBSD: ct.c,v 1.25 2014/03/16 05:20:27 dholland Exp $ */ +/* $NetBSD: ct.c,v 1.26 2014/07/25 08:02:19 dholland Exp $ */ /*- * Copyright (c) 1996-2003 The NetBSD Foundation, Inc. @@ -82,7 +82,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: ct.c,v 1.25 2014/03/16 05:20:27 dholland Exp $"); +__KERNEL_RCSID(0, "$NetBSD: ct.c,v 1.26 2014/07/25 08:02:19 dholland Exp $"); #include <sys/param.h> #include <sys/systm.h> @@ -187,6 +187,7 @@ const struct bdevsw ct_bdevsw = { .d_ioctl = ctioctl, .d_dump = nodump, .d_psize = nosize, + .d_discard = nodiscard, .d_flag = D_TAPE }; diff --git a/sys/dev/gpib/mt.c b/sys/dev/gpib/mt.c index 6037b90a834..dec688d5307 100644 --- a/sys/dev/gpib/mt.c +++ b/sys/dev/gpib/mt.c @@ -1,4 +1,4 @@ -/* $NetBSD: mt.c,v 1.27 2014/03/23 02:57:20 christos Exp $ */ +/* $NetBSD: mt.c,v 1.28 2014/07/25 08:02:19 dholland Exp $ */ /*- * Copyright (c) 1996-2003 The NetBSD Foundation, Inc. @@ -75,7 +75,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: mt.c,v 1.27 2014/03/23 02:57:20 christos Exp $"); +__KERNEL_RCSID(0, "$NetBSD: mt.c,v 1.28 2014/07/25 08:02:19 dholland Exp $"); #include <sys/param.h> #include <sys/systm.h> @@ -167,6 +167,7 @@ const struct bdevsw mt_bdevsw = { .d_ioctl = mtioctl, .d_dump = nodump, .d_psize = nosize, + .d_discard = nodiscard, .d_flag = D_TAPE }; diff --git a/sys/dev/gpib/rd.c b/sys/dev/gpib/rd.c index 9e72720c56e..0e0eed51a9f 100644 --- a/sys/dev/gpib/rd.c +++ b/sys/dev/gpib/rd.c @@ -1,4 +1,4 @@ -/* $NetBSD: rd.c,v 1.33 2014/03/23 03:41:10 christos Exp $ */ +/* $NetBSD: rd.c,v 1.34 2014/07/25 08:02:19 dholland Exp $ */ /*- * Copyright (c) 1996-2003 The NetBSD Foundation, Inc. @@ -72,7 +72,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: rd.c,v 1.33 2014/03/23 03:41:10 christos Exp $"); +__KERNEL_RCSID(0, "$NetBSD: rd.c,v 1.34 2014/07/25 08:02:19 dholland Exp $"); #include <sys/param.h> #include <sys/systm.h> @@ -261,6 +261,7 @@ const struct bdevsw rd_bdevsw = { .d_ioctl = rdioctl, .d_dump = rddump, .d_psize = rdsize, + .d_discard = nodiscard, .d_flag = D_DISK }; |
