lkml.org 
[lkml]   [2004]   [Jan]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectDisk Partition Details - 2.6.0
Hi,

I would like to know the access to a particular partition on a disk. In 2.4, I used the 'request' structure in the ide-disk.c to obtain the exact drive I was accessing(reading/writing). But, in 2.6, gendisk is being introduced, and I am unable to get to the exact drive I would like to trace. Could someone help me to find the exact drive from within the kernel.

I tried using the gendisk->minor, but that did not help me, as it gave value 64 always, even if I made read/write on different disks. gendisk->major is 3. How do I catch the other partitions/drives?

From what I know, the partition values are now shifted to block layer. Could you help me find out the exact place, from where I could find out the partition details.

Thanks in advance,
Sumit


____________________________________________________________
Get advanced SPAM filtering on Webmail or POP Mail ... Get Lycos Mail!
http://login.mail.lycos.com/r/referral?aid=27005
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:00    [W:0.084 / U:0.036 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site