From owner-freebsd-hackers Mon Jan 11 14:35:25 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id OAA11623 for freebsd-hackers-outgoing; Mon, 11 Jan 1999 14:35:25 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from feral-gw.feral.com (feral.com [192.67.166.1]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id OAA11613 for ; Mon, 11 Jan 1999 14:35:21 -0800 (PST) (envelope-from mjacob@feral.com) Received: from localhost (mjacob@localhost) by feral-gw.feral.com (8.8.7/8.8.7) with ESMTP id OAA20001 for ; Mon, 11 Jan 1999 14:34:43 -0800 Date: Mon, 11 Jan 1999 14:34:43 -0800 (PST) From: Matthew Jacob X-Sender: mjacob@feral-gw Reply-To: mjacob@feral.com To: freebsd-hackers@FreeBSD.ORG Subject: what is the meaning of this useless code? Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG in kern_physio.c: struct buf * phygetvpbuf(dev_t dev, int resid) { struct cdevsw *bdsw; int maxio; bdsw = cdevsw[major(dev)]; if ((bdsw == NULL) || (bdsw->d_bmaj == -1)) return getpbuf(); maxio = bdsw->d_maxio; if (resid > maxio) resid = maxio; return getpbuf(); } why is resid being truyncaated and maxio being set when this has no effect? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message