[opensuse] confusing scsi disk major/minor numbers in suse
I am using suse enterprise linux 11 sp1. But the scsi disk number is quite confusing: the major is 259 and the minor is a large number with a stride 32768 or 65536。 I am working on a project to scan all the scsi disks and the open the disks. The way i am doing now is to construct a scsi disk list (this seems to work), and then to open the disk from the scsi disk list using the device number. But the member devt of device fetched from struct scsi_device.sdev_gendev or sdev_dev is 0. I am not sure about the relation of scsi_device, block_device and device structure and how to open the block device from the known scsi_device structure. Appreciate any suggestion. -- Youyou Lu Tsinghua University -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (1)
-
Youyou Lu