Re: VFS Question

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

 



bread will get you the block in the buffer head and returns the same.
If you want to understand the whole operation follow 
do_generic_read_file()->generic_read_file()-> filesystem specific getblk
-> getblk()-> bread

I hope this helps

Thanks,
Sumit

----- Original Message -----
From: Charles Johnson <cjnaj1@attbi.com>
Date: Friday, April 19, 2002 0:48 am
Subject: VFS Question

> I'm attempting to design a file system which in reality is just a 
> filter on 
> top of ext2 or whatever is below it.  It is somewhat similar to 
> when you use 
> the loop device to mount a DOS or CD file system which encapulated 
> within a 
> normal file.  
> 
> So I've go it so that I can use the loop device to be the block 
> device to the 
> file.  So my question is, what is the proper APIs to use to read 
> the data out 
> of the file ??  The sb_read(), bread(), brelse() APIs ??  (The 
> block cache 
> APIs)
> 
> Thanks.
> 
> Charlie Johnson
> cjnaj1@attbi.com
> 
> 
> --
> Kernelnewbies: Help each other learn about the Linux kernel.
> Archive:       http://mail.nl.linux.org/kernelnewbies/
> FAQ:           http://kernelnewbies.org/faq/
> 
> 
begin:vcard
n:Agarwal;Sumit
fn:Sumit Agarwal
tel;cell:+919845205210
tel;fax:+91-80-5732696
tel;home:+919845205210
tel;work:+91-805732296 / 93 extn. 5243
url:www.wipro.com
org:Wipro Technologies;SIDC, Embedded and Internet Division
adr:;;Wipro Technologies, Chamundi Complex, No.26, Hosur Main Road, Bommanahalli;Bangalore;Karnataka;560068;INDIA
version:2.1
email;internet:sumit.agarwal@wipro.com
title:Senior Software Engineer
end:vcard


**************************Disclaimer************************************
Information contained in this E-MAIL being proprietary to Wipro Limited
is 'privileged' and 'confidential' and intended for use only by the
individual or entity to which it is addressed. You are notified that any
use, copying or dissemination of the information contained in the E-MAIL
in any manner whatsoever is strictly prohibited.
********************************************************************

[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux