Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys Add d_discard to all struct bdevsw instances I could find.
details: https://anonhg.NetBSD.org/src/rev/79b358af13be
branches: trunk
changeset: 330902:79b358af13be
user: dholland <dholland%NetBSD.org@localhost>
date: Fri Jul 25 08:02:18 2014 +0000
description:
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:
sys/arch/acorn32/mainbus/fd.c | 5 +++--
sys/arch/amiga/dev/fd.c | 5 +++--
sys/arch/arc/jazz/fd.c | 5 +++--
sys/arch/atari/dev/fd.c | 5 +++--
sys/arch/atari/dev/hdfd.c | 5 +++--
sys/arch/dreamcast/dev/gdrom.c | 5 +++--
sys/arch/dreamcast/dev/maple/mmemcard.c | 5 +++--
sys/arch/emips/ebus/ace_ebus.c | 7 ++++---
sys/arch/emips/ebus/flash_ebus.c | 7 ++++---
sys/arch/hp300/dev/ct.c | 5 +++--
sys/arch/hp300/dev/mt.c | 5 +++--
sys/arch/hp300/dev/rd.c | 5 +++--
sys/arch/mac68k/obio/iwm_fd.c | 5 +++--
sys/arch/mipsco/obio/i82072.c | 5 +++--
sys/arch/sparc/dev/fd.c | 5 +++--
sys/arch/sparc64/dev/fdc.c | 5 +++--
sys/arch/sun3/dev/fd.c | 5 +++--
sys/arch/sun3/dev/xd.c | 5 +++--
sys/arch/sun3/dev/xy.c | 5 +++--
sys/arch/vax/mba/hp.c | 5 +++--
sys/arch/vax/vax/ctu.c | 5 +++--
sys/arch/vax/vsa/hdc9224.c | 5 +++--
sys/arch/x68k/dev/bmd.c | 5 +++--
sys/arch/x68k/dev/fd.c | 5 +++--
sys/arch/xen/xen/xbd_xenbus.c | 5 +++--
sys/dev/altmem/altmem.c | 5 +++--
sys/dev/ata/wd.c | 5 +++--
sys/dev/ccd.c | 5 +++--
sys/dev/cgd.c | 5 +++--
sys/dev/dkwedge/dk.c | 5 +++--
sys/dev/dm/device-mapper.c | 3 ++-
sys/dev/flash/flash.c | 5 +++--
sys/dev/fss.c | 8 +++++---
sys/dev/gpib/ct.c | 5 +++--
sys/dev/gpib/mt.c | 5 +++--
sys/dev/gpib/rd.c | 5 +++--
sys/dev/ieee1394/fwdev.c | 5 +++--
sys/dev/isa/fd.c | 5 +++--
sys/dev/isa/mcd.c | 5 +++--
sys/dev/isa/wt.c | 5 +++--
sys/dev/ld.c | 5 +++--
sys/dev/mca/ed_mca.c | 5 +++--
sys/dev/md.c | 5 +++--
sys/dev/mscp/mscp_disk.c | 7 +++++--
sys/dev/mscp/mscp_tape.c | 5 +++--
sys/dev/ofw/ofdisk.c | 5 +++--
sys/dev/qbus/rf.c | 5 +++--
sys/dev/qbus/rl.c | 5 +++--
sys/dev/qbus/ts.c | 5 +++--
sys/dev/raidframe/rf_netbsdkintf.c | 5 +++--
sys/dev/scsipi/cd.c | 5 +++--
sys/dev/scsipi/sd.c | 5 +++--
sys/dev/scsipi/st.c | 5 +++--
sys/dev/spi/spiflash.c | 5 +++--
sys/dev/vme/xd.c | 5 +++--
sys/dev/vme/xy.c | 5 +++--
sys/dev/vnd.c | 5 +++--
sys/rump/librump/rumpvfs/rumpblk.c | 6 ++++--
sys/uvm/uvm_swap.c | 5 +++--
59 files changed, 183 insertions(+), 120 deletions(-)
diffs (truncated from 1572 to 300 lines):
diff -r 164b4e24b77e -r 79b358af13be sys/arch/acorn32/mainbus/fd.c
--- a/sys/arch/acorn32/mainbus/fd.c Fri Jul 25 07:56:14 2014 +0000
+++ b/sys/arch/acorn32/mainbus/fd.c Fri Jul 25 08:02:18 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fd.c,v 1.53 2014/03/16 05:20:22 dholland Exp $ */
+/* $NetBSD: fd.c,v 1.54 2014/07/25 08:02:18 dholland Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -82,7 +82,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: fd.c,v 1.53 2014/03/16 05:20:22 dholland Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fd.c,v 1.54 2014/07/25 08:02:18 dholland Exp $");
#include "opt_ddb.h"
@@ -274,6 +274,7 @@
.d_ioctl = fdioctl,
.d_dump = nodump,
.d_psize = nosize,
+ .d_discard = nodiscard,
.d_flag = D_DISK
};
diff -r 164b4e24b77e -r 79b358af13be sys/arch/amiga/dev/fd.c
--- a/sys/arch/amiga/dev/fd.c Fri Jul 25 07:56:14 2014 +0000
+++ b/sys/arch/amiga/dev/fd.c Fri Jul 25 08:02:18 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fd.c,v 1.89 2014/03/16 05:20:22 dholland Exp $ */
+/* $NetBSD: fd.c,v 1.90 2014/07/25 08:02:18 dholland Exp $ */
/*
* Copyright (c) 1994 Christian E. Hopps
@@ -33,7 +33,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: fd.c,v 1.89 2014/03/16 05:20:22 dholland Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fd.c,v 1.90 2014/07/25 08:02:18 dholland Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -260,6 +260,7 @@
.d_ioctl = fdioctl,
.d_dump = nodump,
.d_psize = nosize,
+ .d_discard = nodiscard,
.d_flag = D_DISK
};
diff -r 164b4e24b77e -r 79b358af13be sys/arch/arc/jazz/fd.c
--- a/sys/arch/arc/jazz/fd.c Fri Jul 25 07:56:14 2014 +0000
+++ b/sys/arch/arc/jazz/fd.c Fri Jul 25 08:02:18 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fd.c,v 1.43 2014/03/16 05:20:22 dholland Exp $ */
+/* $NetBSD: fd.c,v 1.44 2014/07/25 08:02:18 dholland Exp $ */
/* $OpenBSD: fd.c,v 1.6 1998/10/03 21:18:57 millert Exp $ */
/* NetBSD: fd.c,v 1.78 1995/07/04 07:23:09 mycroft Exp */
@@ -66,7 +66,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: fd.c,v 1.43 2014/03/16 05:20:22 dholland Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fd.c,v 1.44 2014/07/25 08:02:18 dholland Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -193,6 +193,7 @@
.d_ioctl = fdioctl,
.d_dump = nodump,
.d_psize = nosize,
+ .d_discard = nodiscard,
.d_flag = D_DISK
};
diff -r 164b4e24b77e -r 79b358af13be sys/arch/atari/dev/fd.c
--- a/sys/arch/atari/dev/fd.c Fri Jul 25 07:56:14 2014 +0000
+++ b/sys/arch/atari/dev/fd.c Fri Jul 25 08:02:18 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fd.c,v 1.77 2014/03/16 05:20:23 dholland Exp $ */
+/* $NetBSD: fd.c,v 1.78 2014/07/25 08:02:18 dholland Exp $ */
/*
* Copyright (c) 1995 Leo Weppelman.
@@ -44,7 +44,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: fd.c,v 1.77 2014/03/16 05:20:23 dholland Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fd.c,v 1.78 2014/07/25 08:02:18 dholland Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -286,6 +286,7 @@
.d_ioctl = fdioctl,
.d_dump = nodump,
.d_psize = nosize,
+ .d_discard = nodiscard,
.d_flag = D_DISK
};
diff -r 164b4e24b77e -r 79b358af13be sys/arch/atari/dev/hdfd.c
--- a/sys/arch/atari/dev/hdfd.c Fri Jul 25 07:56:14 2014 +0000
+++ b/sys/arch/atari/dev/hdfd.c Fri Jul 25 08:02:18 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: hdfd.c,v 1.76 2014/03/16 05:20:23 dholland Exp $ */
+/* $NetBSD: hdfd.c,v 1.77 2014/07/25 08:02:18 dholland Exp $ */
/*-
* Copyright (c) 1996 Leo Weppelman
@@ -91,7 +91,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: hdfd.c,v 1.76 2014/03/16 05:20:23 dholland Exp $");
+__KERNEL_RCSID(0, "$NetBSD: hdfd.c,v 1.77 2014/07/25 08:02:18 dholland Exp $");
#include "opt_ddb.h"
@@ -292,6 +292,7 @@
.d_ioctl = fdioctl,
.d_dump = nodump,
.d_psize = nosize,
+ .d_discard = nodiscard,
.d_flag = D_DISK
};
diff -r 164b4e24b77e -r 79b358af13be sys/arch/dreamcast/dev/gdrom.c
--- a/sys/arch/dreamcast/dev/gdrom.c Fri Jul 25 07:56:14 2014 +0000
+++ b/sys/arch/dreamcast/dev/gdrom.c Fri Jul 25 08:02:18 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: gdrom.c,v 1.38 2014/03/18 08:08:55 martin Exp $ */
+/* $NetBSD: gdrom.c,v 1.39 2014/07/25 08:02:18 dholland Exp $ */
/*-
* Copyright (c) 2001 Marcus Comstedt
@@ -33,7 +33,7 @@
*/
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
-__KERNEL_RCSID(0, "$NetBSD: gdrom.c,v 1.38 2014/03/18 08:08:55 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: gdrom.c,v 1.39 2014/07/25 08:02:18 dholland Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -70,6 +70,7 @@
.d_ioctl = gdromioctl,
.d_dump = nodump,
.d_psize = nosize,
+ .d_discard = nodiscard,
.d_flag = D_DISK
};
diff -r 164b4e24b77e -r 79b358af13be sys/arch/dreamcast/dev/maple/mmemcard.c
--- a/sys/arch/dreamcast/dev/maple/mmemcard.c Fri Jul 25 07:56:14 2014 +0000
+++ b/sys/arch/dreamcast/dev/maple/mmemcard.c Fri Jul 25 08:02:18 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mmemcard.c,v 1.22 2014/03/26 16:08:45 christos Exp $ */
+/* $NetBSD: mmemcard.c,v 1.23 2014/07/25 08:02:18 dholland Exp $ */
/*-
* Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: mmemcard.c,v 1.22 2014/03/26 16:08:45 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mmemcard.c,v 1.23 2014/07/25 08:02:18 dholland Exp $");
#include <sys/param.h>
#include <sys/buf.h>
@@ -195,6 +195,7 @@
.d_ioctl = mmemioctl,
.d_dump = nodump,
.d_psize = nosize,
+ .d_discard = nodiscard,
.d_flag = D_DISK
};
diff -r 164b4e24b77e -r 79b358af13be sys/arch/emips/ebus/ace_ebus.c
--- a/sys/arch/emips/ebus/ace_ebus.c Fri Jul 25 07:56:14 2014 +0000
+++ b/sys/arch/emips/ebus/ace_ebus.c Fri Jul 25 08:02:18 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ace_ebus.c,v 1.10 2014/03/16 05:20:23 dholland Exp $ */
+/* $NetBSD: ace_ebus.c,v 1.11 2014/07/25 08:02:18 dholland Exp $ */
/*-
* Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ace_ebus.c,v 1.10 2014/03/16 05:20:23 dholland Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ace_ebus.c,v 1.11 2014/07/25 08:02:18 dholland Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -1462,7 +1462,7 @@
* Rest of code lifted with mods from the dev\ata\wd.c driver
*/
-/* $NetBSD: ace_ebus.c,v 1.10 2014/03/16 05:20:23 dholland Exp $ */
+/* $NetBSD: ace_ebus.c,v 1.11 2014/07/25 08:02:18 dholland Exp $ */
/*
* Copyright (c) 1998, 2001 Manuel Bouyer. All rights reserved.
@@ -1562,6 +1562,7 @@
.d_ioctl = aceioctl,
.d_dump = acedump,
.d_psize = acesize,
+ .d_discard = nodiscard,
.d_flag = D_DISK
};
diff -r 164b4e24b77e -r 79b358af13be sys/arch/emips/ebus/flash_ebus.c
--- a/sys/arch/emips/ebus/flash_ebus.c Fri Jul 25 07:56:14 2014 +0000
+++ b/sys/arch/emips/ebus/flash_ebus.c Fri Jul 25 08:02:18 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: flash_ebus.c,v 1.8 2014/03/16 05:20:23 dholland Exp $ */
+/* $NetBSD: flash_ebus.c,v 1.9 2014/07/25 08:02:18 dholland Exp $ */
/*-
* Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
-__KERNEL_RCSID(0, "$NetBSD: flash_ebus.c,v 1.8 2014/03/16 05:20:23 dholland Exp $");
+__KERNEL_RCSID(0, "$NetBSD: flash_ebus.c,v 1.9 2014/07/25 08:02:18 dholland Exp $");
/* Driver for the Intel 28F320/640/128 (J3A150) StrataFlash memory device
* Extended to include the Intel JS28F256P30T95.
@@ -1302,7 +1302,7 @@
/* Rest of code lifted with mods from the dev\ata\wd.c driver
*/
-/* $NetBSD: flash_ebus.c,v 1.8 2014/03/16 05:20:23 dholland Exp $ */
+/* $NetBSD: flash_ebus.c,v 1.9 2014/07/25 08:02:18 dholland Exp $ */
/*
* Copyright (c) 1998, 2001 Manuel Bouyer. All rights reserved.
@@ -1402,6 +1402,7 @@
.d_ioctl = eflashioctl,
.d_dump = eflashdump,
.d_psize = eflashsize,
+ .d_discard = nodiscard,
.d_flag = D_DISK
};
diff -r 164b4e24b77e -r 79b358af13be sys/arch/hp300/dev/ct.c
--- a/sys/arch/hp300/dev/ct.c Fri Jul 25 07:56:14 2014 +0000
+++ b/sys/arch/hp300/dev/ct.c Fri Jul 25 08:02:18 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ct.c,v 1.59 2014/03/24 19:42:58 christos Exp $ */
+/* $NetBSD: ct.c,v 1.60 2014/07/25 08:02:18 dholland Exp $ */
/*-
* Copyright (c) 1996, 1997 The NetBSD Foundation, Inc.
@@ -75,7 +75,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ct.c,v 1.59 2014/03/24 19:42:58 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ct.c,v 1.60 2014/07/25 08:02:18 dholland Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -159,6 +159,7 @@
.d_ioctl = ctioctl,
.d_dump = nodump,
.d_psize = nosize,
+ .d_discard = nodiscard,
.d_flag = D_TAPE
};
diff -r 164b4e24b77e -r 79b358af13be sys/arch/hp300/dev/mt.c
--- a/sys/arch/hp300/dev/mt.c Fri Jul 25 07:56:14 2014 +0000
+++ b/sys/arch/hp300/dev/mt.c Fri Jul 25 08:02:18 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mt.c,v 1.52 2014/03/24 19:42:58 christos Exp $ */
+/* $NetBSD: mt.c,v 1.53 2014/07/25 08:02:18 dholland Exp $ */
/*-
* Copyright (c) 1996, 1997 The NetBSD Foundation, Inc.
@@ -60,7 +60,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: mt.c,v 1.52 2014/03/24 19:42:58 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mt.c,v 1.53 2014/07/25 08:02:18 dholland Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -148,6 +148,7 @@
.d_ioctl = mtioctl,
.d_dump = nodump,
.d_psize = nosize,
Home |
Main Index |
Thread Index |
Old Index