mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Bhattiprolu Ravi Kumar <ravikumar_b@yahoo.com>
To: linux-kernel@vger.kernel.org
Subject: Problem with using __getblk
Date: Fri, 7 Apr 2006 08:38:10 -0700 (PDT)	[thread overview]
Message-ID: <20060407153810.23565.qmail@web32207.mail.mud.yahoo.com> (raw)

Hi,

I am trying to write a module to directly read from
the disk. I have got the sector numbers where the file
present using file system functions. This file starts
from sector 96 on /dev/hda4 for example. The call to
__getblk as
bh = __getblk(bdev,96,512) makes the system hang. Do I
need to add the partition offset also to the sector
number? When I added partition start sector,. I am
getting junk data using ll_rw_block call.

Please advice.

Note: Please send reply to my email address

thanks,
Ravi 

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

                 reply	other threads:[~2006-04-07 15:38 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060407153810.23565.qmail@web32207.mail.mud.yahoo.com \
    --to=ravikumar_b@yahoo.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®