Add DEBUG_EOFINFO log messages.
This commit is contained in:
parent
cadf346d84
commit
63052eb444
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=44710
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user