[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: get_block



On Thu, 3 May 2001, Peter J. Braam wrote:

> Al, 
> 
> We had some discussion about get_block last week.  I think that InterMezzo
> which needs to call "inode->i_ops->bmap" to determine if a block is
> present in the file may be hurt by this no longer being a method. 
>
> This forms the basis of caching file data on demand. 

Elaborate, please. Do you mean that you cache stuff in sparse files
and treat holes as "need to ask from server" rather than "return zeroes"?

> Is there are way, using the methods, to determine if a block is present in
> a file?  That's what we need.

There is such way (->a_ops->bmap()), but I _really_ doubt that it's what
you want.





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]