why CURRENT->sector is zero??

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

 




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



-- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/


[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