From 63052eb444623dcbf64744a2b7e4f4cb3f799849 Mon Sep 17 00:00:00 2001 From: Greg Lehey Date: Sat, 13 Mar 1999 07:38:27 +0000 Subject: [PATCH] Add DEBUG_EOFINFO log messages. --- sys/dev/vinum/vinumrequest.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/sys/dev/vinum/vinumrequest.c b/sys/dev/vinum/vinumrequest.c index 5826d6c93c7e..47349644e010 100644 --- a/sys/dev/vinum/vinumrequest.c +++ b/sys/dev/vinum/vinumrequest.c @@ -559,6 +559,21 @@ bre(struct request *rq, if (rqe->sdoffset >= sd->sectors) { /* starts beyond the end of the subdisk? */ deallocrqg(rqg); +#if VINUMDEBUG + if (debug & DEBUG_EOFINFO) { /* tell on the request */ + log(LOG_DEBUG, + "vinum: EOF on plex %s, sd %s offset %x (user offset %x)\n", + plex->name, + sd->name, + (u_int) sd->sectors, + bp->b_blkno); + log(LOG_DEBUG, + "vinum: stripebase %x, stripeoffset %x, blockoffset %x\n", + stripebase, + stripeoffset, + blockoffset); + } +#endif return REQUEST_EOF; } else if (rqe->sdoffset + rqe->datalen > sd->sectors) /* ends beyond the end of the subdisk? */ rqe->datalen = sd->sectors - rqe->sdoffset; /* yes, truncate */