Re: map gendisk (or blockdev) - scsi_device

2005-07-14 Thread Edward Falk
Christoph Hellwig wrote: On Wed, Jul 13, 2005 at 04:46:54PM -0700, Patrick Mansfield wrote: Add or use the attributes under the scsi_device, then use the /sysfs/block/sd/device symlink to find the corresponding scsi_device. yupp, the /sys/block/* attributes are really only meant to be for

Re: map gendisk (or blockdev) - scsi_device

2005-07-13 Thread Christoph Hellwig
On Tue, Jul 12, 2005 at 05:38:19PM -0700, Edward Falk wrote: Hi all; what's the proper way to get the scsi_device structure from a gendisk structure? No. sd.c uses pointers through scsi_disk, but that structure is private to sd.c. Will I need to add an access function in sd.c or

Re: map gendisk (or blockdev) - scsi_device

2005-07-13 Thread Edward Falk
You should revisit your code to not need access to the scsi_device structure, and follow the layering of the block and scsi subsystems. Maybe I should explain what I'm trying to do here. Some of our software reads some of the values in /proc/ide/hda/. We're porting this facility to

Re: map gendisk (or blockdev) - scsi_device

2005-07-13 Thread Patrick Mansfield
On Wed, Jul 13, 2005 at 11:44:34AM -0700, Edward Falk wrote: You should revisit your code to not need access to the scsi_device structure, and follow the layering of the block and scsi subsystems. Maybe I should explain what I'm trying to do here. Some of our software reads some of the

map gendisk (or blockdev) - scsi_device

2005-07-12 Thread Edward Falk
Hi all; what's the proper way to get the scsi_device structure from a gendisk structure? sd.c uses pointers through scsi_disk, but that structure is private to sd.c. Will I need to add an access function in sd.c or something? -ed falk, [EMAIL PROTECTED] - To unsubscribe from this list:

RE: map gendisk (or blockdev) - scsi_device

2005-07-12 Thread Chen, Kenneth W
Edward Falk wrote on Tuesday, July 12, 2005 5:38 PM Hi all; what's the proper way to get the scsi_device structure from a gendisk structure? sd.c uses pointers through scsi_disk, but that structure is private to sd.c. Will I need to add an access function in sd.c or something? If you are