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/dm | |
| 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/dm')
| -rw-r--r-- | sys/dev/dm/device-mapper.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/dm/device-mapper.c b/sys/dev/dm/device-mapper.c index 7165b04abe2..47eb9a42e77 100644 --- a/sys/dev/dm/device-mapper.c +++ b/sys/dev/dm/device-mapper.c @@ -1,4 +1,4 @@ -/* $NetBSD: device-mapper.c,v 1.32 2013/12/28 19:25:07 pgoyette Exp $ */ +/* $NetBSD: device-mapper.c,v 1.33 2014/07/25 08:02:19 dholland Exp $ */ /* * Copyright (c) 2010 The NetBSD Foundation, Inc. @@ -84,6 +84,7 @@ const struct bdevsw dm_bdevsw = { .d_ioctl = dmioctl, .d_dump = nodump, .d_psize = dmsize, + .d_discard = nodiscard, .d_flag = D_DISK | D_MPSAFE }; |
