lkml.org 
[lkml]   [2000]   [Oct]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: May I ask you some question
> Huang QingHua wrote:
>
> Dear:
> May I ask you some question?
> 1.I try to make a filesystem. But if my block size have to be 1M
> ,then what should I do ? Or is it possible?

I'm not sure why you'd want a block size of 1M, most block sizes tend to
be between 512 bytes and 4K.

> 2.When to reading a hardware page from disk and when to read a
> block from disk? Is there a order between them? just for a easy
> example. When I want to read a big file ,It seems to use getblk
> function (from my studying source code...) ,Is it right? When is
> reading a page called.

For an ordinary filesystem, I think you'd always want to read a block
from disk. Pages generally refer to memory (as in RAM or swap space),
not hard disk space, so I suppose you'd load a page from disk if you
were doing a virtual memory filesystem (but from your description it
sounds like you're doing an ordinary filesystem).
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 12:39    [W:0.027 / U:3.416 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site