提交 1bd4b280 编写于 作者: D David S. Miller

[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: NDavid S. Miller <davem@davemloft.net>
上级 50c46637
...@@ -417,7 +417,7 @@ static int __send_request(struct request *req) ...@@ -417,7 +417,7 @@ static int __send_request(struct request *req)
desc->req_id = port->req_id; desc->req_id = port->req_id;
desc->operation = op; desc->operation = op;
if (port->vdisk_type == VD_DISK_TYPE_DISK) { if (port->vdisk_type == VD_DISK_TYPE_DISK) {
desc->slice = 2; desc->slice = 0xff;
} else { } else {
desc->slice = 0; desc->slice = 0;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册