mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: mohanlal jangir <mohanlal@samsung.com>
To: Linux Kernel <linux-kernel@vger.kernel.org>,
	Linux Newbies <kernelnewbies@nl.linux.org>
Cc: rubini@gnu.org, rubini@fsfeurope.org, rubini@prosa.it,
	rubini@gnudd.com, rubini@linux.it
Subject: why CURRENT->sector is zero??
Date: Thu, 17 Mar 2005 14:42:45 +0530	[thread overview]
Message-ID: <01ae01c52ad1$83e79190$3d476c6b@sisodomain.com> (raw)


I downloaded sbull.c (for LDD 2nd Edition) from 
http://examples.oreilly.com/linuxdrive/. After compiling and inserting 
(registering as block device), I tried to mount different file systems 
(Although there is no valid file system there; my goal is to observe value 
of req->sector in sbull_transfer function). The observations are as follows:
File System  req->sector
msdos          0
vfat              0
ext2             2
ext3             2
iso9000       72

I don't know about other file systems, but I believe the value of 
req->sector for msdos/vfat is wrong. Because when I mount a CF card having 
FAT file system on my Linux box (using USB mass storage driver), the first 
read request contains sector 0x20.
Does someone have any clue, why sbull gets this value as 0 rather then 0x20? 
Basically this means why CURRENT->sector is 0?
I am working on 2.4.18; a little old :(

Regards
Mohanlal 


             reply	other threads:[~2005-03-17  9:20 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-17  9:12 mohanlal jangir [this message]
2005-03-17 10:29 ` Alessandro Rubini

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='01ae01c52ad1$83e79190$3d476c6b@sisodomain.com' \
    --to=mohanlal@samsung.com \
    --cc=kernelnewbies@nl.linux.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rubini@fsfeurope.org \
    --cc=rubini@gnu.org \
    --cc=rubini@gnudd.com \
    --cc=rubini@linux.it \
    --cc=rubini@prosa.it \
    /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

Powered by JetHome