aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/block
diff options
context:
space:
mode:
authorDavid S. Miller <davem@sunset.davemloft.net>2007-08-25 01:05:44 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2007-08-26 21:49:07 -0400
commit1bd4b280394cdd14f82efc00808c6d77b097285a (patch)
tree5ccc519321d2f4fa5499c41a66f8af13a7978281 /drivers/block
parent50c46637aa894f904e2fb39086a3d7732f68bd50 (diff)
[SUNVDC]: Use slice 0xff on VD_DISK_TYPE_DISK.
While debugging issues with the VDS server I made the driver use partition 2 to get at the whole disk since this is the "whole disk" partition in the Sun disk label. We really should use slice 0xff which really means the whole physical disk in the VIO disk protocol. Otherwise things won't work well on a disk image that doesn't have a proper disk label on it. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/block')
-rw-r--r--drivers/block/sunvdc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/block/sunvdc.c b/drivers/block/sunvdc.c
index 4dff49256ac2..317a790c153b 100644
--- a/drivers/block/sunvdc.c
+++ b/drivers/block/sunvdc.c
@@ -417,7 +417,7 @@ static int __send_request(struct request *req)
417 desc->req_id = port->req_id; 417 desc->req_id = port->req_id;
418 desc->operation = op; 418 desc->operation = op;
419 if (port->vdisk_type == VD_DISK_TYPE_DISK) { 419 if (port->vdisk_type == VD_DISK_TYPE_DISK) {
420 desc->slice = 2; 420 desc->slice = 0xff;
421 } else { 421 } else {
422 desc->slice = 0; 422 desc->slice = 0;
423 } 423 }