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

Re: read() from VFS to ext2 file system



On Fri, Apr 02, 2004 at 01:25:58 +0530, Anandanam Rama Kotaiah wrote:
>  In the system calls such as read,write.. the file system beneath only
> deals with the block number.. but how does the kernel map a position
> inside the file into a block number when the file is accessed..where
> does the code exist in which a file system specific request is made..

The actual block<->page mapping stuff is called from readpage and
writepage methods in the filesystem driver (eg. ext2). All the levels
above this point only work with files and pages. Look for the code that
implements address_space_operations eg. for ext2.

-------------------------------------------------------------------------------
						 Jan 'Bulb' Hudec <bulb@xxxxxx>

Attachment: signature.asc
Description: Digital signature