public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* why CURRENT->sector is zero??
@ 2005-03-17  9:12 mohanlal jangir
  2005-03-17 10:29 ` Alessandro Rubini
  0 siblings, 1 reply; 2+ messages in thread
From: mohanlal jangir @ 2005-03-17  9:12 UTC (permalink / raw)
  To: Linux Kernel, Linux Newbies; +Cc: rubini, rubini, rubini, rubini, rubini


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 


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-03-17 11:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-17  9:12 why CURRENT->sector is zero?? mohanlal jangir
2005-03-17 10:29 ` Alessandro Rubini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox