Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Oct 1998 23:39:30 -0400 (EDT)
From:      zhihuizhang <bf20761@binghamton.edu>
To:        hackers <freebsd-hackers@FreeBSD.ORG>
Subject:   Question about the buffer size
Message-ID:  <Pine.SOL.L3.93.981014233247.1866A-100000@bingsun1>

next in thread | raw e-mail | index | archive | help

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.SOL.L3.93.981014233247.1866A-100000>