From owner-freebsd-hackers Wed Oct 14 20:39:52 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id UAA25044 for freebsd-hackers-outgoing; Wed, 14 Oct 1998 20:39:52 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from bingsun1.cc.binghamton.edu (bingsun1.cc.binghamton.edu [128.226.1.2]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id UAA25039 for ; Wed, 14 Oct 1998 20:39:50 -0700 (PDT) (envelope-from bf20761@binghamton.edu) Received: from localhost (bf20761@localhost) by bingsun1.cc.binghamton.edu (8.8.7/8.6.9) with SMTP id XAA02618 for ; Wed, 14 Oct 1998 23:39:31 -0400 (EDT) Date: Wed, 14 Oct 1998 23:39:30 -0400 (EDT) From: zhihuizhang X-Sender: bf20761@bingsun1 To: hackers Subject: Question about the buffer size 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 I am confused with the size of a buffer. Suppose I read two logical blocks from a file: block 1 and block 2. Later I want to read block 2 from the file. Since the buffer are indexed by (vnode,logical block number), the second read will not find the data already in memory. This problem must have already been addressed somehow in FreeBSD. That is probably to say that two different buffers can not contain the same data. I hope someone can give me enlightment. Thanks a lot. -------------------------------------------------- | Zhihui Zhang, http://cs.binghamton.edu/~zzhang | | Dept. of Computer Science, SUNY at Binghamton | -------------------------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message