* [PATCH 2.6] cciss: CCISS_GETLUNINFO fix
@ 2004-11-29 22:07 mike.miller
0 siblings, 0 replies; only message in thread
From: mike.miller @ 2004-11-29 22:07 UTC (permalink / raw)
To: akpm, axboe; +Cc: linux-kernel, linux-scsi, andrew.patterson
This patch addresses a problem with reading the partition table struct.
The last time this was submitted it was rejected on the grounds that the driver
has no business reading the partition table. I don't disagree with that, but
we have legacy apps to consider. Changing the ioctl would break those apps
already in customers hands.
Please consider this for inclusion.
Signed-off-by: Mike Miller <mike.miller@hp.com>
Signed-off-by: Andrew Patterson <andrew.patterson@hp.com>
cciss.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
--------------------------------------------------------------------------------
diff -urNp lx2610-rc1.orig/drivers/block/cciss.c lx2610-rc1-adrianb/drivers/block/cciss.c
--- lx2610-rc1.orig/drivers/block/cciss.c 2004-11-12 11:17:56.000000000 -0600
+++ lx2610-rc1-adrianb/drivers/block/cciss.c 2004-11-29 15:54:21.668060552 -0600
@@ -809,7 +809,7 @@ static int cciss_ioctl(struct inode *ino
luninfo.num_opens = drv->usage_count;
luninfo.num_parts = 0;
/* count partitions 1 to 15 with sizes > 0 */
- for(i=1; i <MAX_PART; i++) {
+ for(i=0; i < MAX_PART-1; i++) {
if (!disk->part[i])
continue;
if (disk->part[i]->nr_sects != 0)
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-11-29 22:08 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-11-29 22:07 [PATCH 2.6] cciss: CCISS_GETLUNINFO fix mike.miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).