All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Un-remove aacraid devices
@ 2007-05-23 12:50 Hannes Reinecke
  2007-05-23 16:35 ` Salyzyn, Mark
  0 siblings, 1 reply; 6+ messages in thread
From: Hannes Reinecke @ 2007-05-23 12:50 UTC (permalink / raw)
  To: Salyzyn, Mark; +Cc: SCSI Mailing List

[-- Attachment #1: Type: text/plain, Size: 449 bytes --]

Hi Mark,

for some weird reason the aacraid driver insists on presenting all disks
as 'removable' devices. This is gross hackery and causes userspace tools
to not identify these devices as fixed disks, which most evidently they are.

Please apply.

Cheers,

Hannes
-- 
Dr. Hannes Reinecke		      zSeries & Storage
hare@suse.de			      +49 911 74053 688
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg
GF: Markus Rex, HRB 16746 (AG Nürnberg)

[-- Attachment #2: aacraid-unremove-disks --]
[-- Type: text/plain, Size: 722 bytes --]

Make aacraid devices fixed

For some reason the aacraid driver insists on making all devices removable.
This causes userspace tools to not identifying aacraid disks as fixed disks.

Signed-off-by: Hannes Reinecke <hare@suse.de>

diff --git a/drivers/scsi/aacraid/aachba.c b/drivers/scsi/aacraid/aachba.c
index 1e82c69..24275d8 100644
--- a/drivers/scsi/aacraid/aachba.c
+++ b/drivers/scsi/aacraid/aachba.c
@@ -1843,9 +1843,6 @@ int aac_scsi_cmd(struct scsi_cmnd * scsi
 			} while ((offset += len) < scsicmd->cmnd[13]);
 		}
 
-		/* Do not cache partition table for arrays */
-		scsicmd->device->removable = 1;
-
 		scsicmd->result = DID_OK << 16 | COMMAND_COMPLETE << 8 | SAM_STAT_GOOD;
 		scsicmd->scsi_done(scsicmd);
 

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2007-05-23 17:57 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-23 12:50 [PATCH] Un-remove aacraid devices Hannes Reinecke
2007-05-23 16:35 ` Salyzyn, Mark
2007-05-23 17:07   ` James Bottomley
2007-05-23 17:17     ` Salyzyn, Mark
2007-05-23 17:56       ` Salyzyn, Mark
2007-05-23 17:08   ` Michael Tokarev

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.