Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 195716
b: refs/heads/master
c: e3cc268
h: refs/heads/master
v: v3
  • Loading branch information
Rajashekhara, Mahesh authored and James Bottomley committed May 17, 2010
1 parent 4bb22b3 commit 5fea968
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5ca05594097438f81337e53ad50c2d17ffc28238
refs/heads/master: e3cc268fe4a0ad1cbefbc53cee35c80281e609b8
15 changes: 15 additions & 0 deletions trunk/drivers/scsi/aacraid/aachba.c
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,16 @@ int aac_get_config_status(struct aac_dev *dev, int commit_flag)
return status;
}

static void aac_expose_phy_device(struct scsi_cmnd *scsicmd)
{
char inq_data;
scsi_sg_copy_to_buffer(scsicmd, &inq_data, sizeof(inq_data));
if ((inq_data & 0x20) && (inq_data & 0x1f) == TYPE_DISK) {
inq_data &= 0xdf;
scsi_sg_copy_from_buffer(scsicmd, &inq_data, sizeof(inq_data));
}
}

/**
* aac_get_containers - list containers
* @common: adapter to probe
Expand Down Expand Up @@ -2573,6 +2583,11 @@ static void aac_srb_callback(void *context, struct fib * fibptr)

scsi_dma_unmap(scsicmd);

/* expose physical device if expose_physicald flag is on */
if (scsicmd->cmnd[0] == INQUIRY && !(scsicmd->cmnd[1] & 0x01)
&& expose_physicals > 0)
aac_expose_phy_device(scsicmd);

/*
* First check the fib status
*/
Expand Down

0 comments on commit 5fea968

Please sign in to comment.