report back scsi device capacity on storport miniport driver

I have 2 drives, however, I only want to report back 1 drive. I’m able to do that by set maximumber number of target, and lun to 1. However, the drive capacity stay the same as 1 single drive. I tried to double the device->max_lba.parts.low when its ask for capacity_read, but it was no help. Could anyone help me? Thanks.

Nina

Your intention is to build a logical disk composed of one or more
physical disks? This has been done. It is software raid. You really
can’t do it very well in a miniport.

Mark Roddy

On Tue, Mar 22, 2011 at 9:18 PM, wrote:
> I have 2 drives, however, I only want to report back 1 drive. I’m able to do that by set maximumber number of target, and lun to 1. However, the drive capacity stay the same as 1 single drive. I tried to double the device->max_lba.parts.low when its ask for capacity_read, but it was no help. Could anyone help me? Thanks.
>
> Nina
>
> —
> NTDEV is sponsored by OSR
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer
>

Yes, I want to buid a logical disk composed of 4 physical drives. If I can’t
do it in miniport, what can I do to show raid drive?

On Tue, Mar 22, 2011 at 7:21 PM, Mark Roddy wrote:

> Your intention is to build a logical disk composed of one or more
> physical disks? This has been done. It is software raid. You really
> can’t do it very well in a miniport.
>
> Mark Roddy
>
>
>
> On Tue, Mar 22, 2011 at 9:18 PM, wrote:
> > I have 2 drives, however, I only want to report back 1 drive. I’m able to
> do that by set maximumber number of target, and lun to 1. However, the drive
> capacity stay the same as 1 single drive. I tried to double the
> device->max_lba.parts.low when its ask for capacity_read, but it was no
> help. Could anyone help me? Thanks.
> >
> > Nina
> >
> > —
> > NTDEV is sponsored by OSR
> >
> > For our schedule of WDF, WDM, debugging and other seminars visit:
> > http://www.osr.com/seminars
> >
> > To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
> >
>
> —
> NTDEV is sponsored by OSR
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>


Regards,

Nina Pham

>I tried to double the device->max_lba.parts.low when its ask for capacity_read, but it was no help. Size of disk is reported in SCSIOP_READ_CAPACITY. Check if you put correct data in READ_CAPACITY_DATA structure.

Igor Sharovar

I changed the code in scsi_read_capacity where it set device->max_lba.value.
Shoud there be other thing I need to change?

On Wed, Mar 23, 2011 at 9:28 AM, wrote:

> >I tried to double the device->max_lba.parts.low when its ask for
> capacity_read, but it was no help. Size of disk is reported in
> SCSIOP_READ_CAPACITY. Check if you put correct data in READ_CAPACITY_DATA
> structure.
>
> Igor Sharovar
>
> —
> NTDEV is sponsored by OSR
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>


Regards,

Nina Pham

>I changed the code in scsi_read_capacity where it set device->max_lba.value. Shoud there be other >thing I need to change?
Check two fields in READ_CAPACITY_DATA - BytesPerBlock and LogicalBlockAddress.

Igor Sharovar