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/raidframe | |
| 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/raidframe')
| -rw-r--r-- | sys/dev/raidframe/rf_netbsdkintf.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/raidframe/rf_netbsdkintf.c b/sys/dev/raidframe/rf_netbsdkintf.c index 41c1e6157a4..2d702e2f6af 100644 --- a/sys/dev/raidframe/rf_netbsdkintf.c +++ b/sys/dev/raidframe/rf_netbsdkintf.c @@ -1,4 +1,4 @@ -/* $NetBSD: rf_netbsdkintf.c,v 1.310 2014/05/12 15:53:01 christos Exp $ */ +/* $NetBSD: rf_netbsdkintf.c,v 1.311 2014/07/25 08:02:20 dholland Exp $ */ /*- * Copyright (c) 1996, 1997, 1998, 2008-2011 The NetBSD Foundation, Inc. @@ -101,7 +101,7 @@ ***********************************************************/ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: rf_netbsdkintf.c,v 1.310 2014/05/12 15:53:01 christos Exp $"); +__KERNEL_RCSID(0, "$NetBSD: rf_netbsdkintf.c,v 1.311 2014/07/25 08:02:20 dholland Exp $"); #ifdef _KERNEL_OPT #include "opt_compat_netbsd.h" @@ -211,6 +211,7 @@ const struct bdevsw raid_bdevsw = { .d_ioctl = raidioctl, .d_dump = raiddump, .d_psize = raidsize, + .d_discard = nodiscard, .d_flag = D_DISK }; |
