]> git.baikalelectronics.ru Git - kernel.git/commit
sunvdc: add cdrom and v1.1 protocol support
authorAllen Pais <allen.pais@oracle.com>
Fri, 19 Sep 2014 13:42:14 +0000 (09:42 -0400)
committerDavid S. Miller <davem@davemloft.net>
Tue, 30 Sep 2014 21:37:34 +0000 (14:37 -0700)
commit3eb90fbf6521a3019b7e8b742f65a1dec5086702
tree6565bfb1f8c3cfa6f307bb8600d11eab0fd5d20f
parent8e09780d7d3e46d88a29f2a4db1c5607690bc7df
sunvdc: add cdrom and v1.1 protocol support

Interpret the media type from v1.1 protocol to support CDROM/DVD.

For v1.0 protocol, a disk's size continues to be calculated from the
geometry returned by the vdisk server. The geometry returned by the server
can be less than the actual number of sectors available in the backing
image/device due to the rounding in the division used to compute the
geometry in the vdisk server.

In v1.1 protocol a disk's actual size in sectors is returned during the
handshake. Use this size when v1.1 protocol is negotiated. Since this size
will always be larger than the former geometry computed size, disks created
under v1.0 will be forwards compatible to v1.1, but not vice versa.

Signed-off-by: Dwight Engen <dwight.engen@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/include/asm/vio.h
drivers/block/sunvdc.c