All of lore.kernel.org
 help / color / mirror / Atom feed
* Disk Partition Details - 2.6.0
@ 2004-01-13 23:48 Sumit Narayan
  0 siblings, 0 replies; only message in thread
From: Sumit Narayan @ 2004-01-13 23:48 UTC (permalink / raw)
  To: Sumit Narayan; +Cc: linux-kernel

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-01-13 23:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-01-13 23:48 Disk Partition Details - 2.6.0 Sumit Narayan

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.