From 2e80ca8a686e575db62d6ed96d750b85d8d5fb4c Mon Sep 17 00:00:00 2001 From: Paul Saab Date: Mon, 19 Apr 2004 00:57:29 +0000 Subject: [PATCH] Report only new new events when initially attaching to the controller. --- sys/dev/ciss/ciss.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sys/dev/ciss/ciss.c b/sys/dev/ciss/ciss.c index 7e581bcae27..d472ab83608 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 */