summaryrefslogtreecommitdiffstats
path: root/sys/dev/ciss
diff options
context:
space:
mode:
authorps <ps@FreeBSD.org>2004-04-19 00:57:29 +0000
committerps <ps@FreeBSD.org>2004-04-19 00:57:29 +0000
commitc52a120a7c05af823db6aacd9fdd74830410deb9 (patch)
tree5b716f7715981b6502d21b80bc9437703b5101cf /sys/dev/ciss
parentc8b8f2e516bd27332932546407037cba76f5a68c (diff)
downloadFreeBSD-src-c52a120a7c05af823db6aacd9fdd74830410deb9.zip
FreeBSD-src-c52a120a7c05af823db6aacd9fdd74830410deb9.tar.gz
Report only new new events when initially attaching to the controller.
Diffstat (limited to 'sys/dev/ciss')
-rw-r--r--sys/dev/ciss/ciss.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/dev/ciss/ciss.c b/sys/dev/ciss/ciss.c
index 7e581bc..d472ab8 100644
--- a/sys/dev/ciss/ciss.c
+++ b/sys/dev/ciss/ciss.c
@@ -2908,7 +2908,10 @@ ciss_notify_event(struct ciss_softc *sc)
cnc->synchronous = 0;
cnc->ordered = 0;
cnc->seek_to_oldest = 0;
- cnc->new_only = 0;
+ if ((sc->ciss_flags & CISS_FLAG_RUNNING) == 0)
+ cnc->new_only = 1;
+ else
+ cnc->new_only = 0;
cnc->length = htonl(CISS_NOTIFY_DATA_SIZE);
/* submit the request */
OpenPOWER on IntegriCloud