]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
sunvdc: don't call VD_OP_GET_VTOC
authorDwight Engen <dwight.engen@oracle.com>
Thu, 30 Oct 2014 19:55:35 +0000 (15:55 -0400)
committerDavid S. Miller <davem@davemloft.net>
Fri, 31 Oct 2014 19:49:45 +0000 (15:49 -0400)
commit85b0c6e62c48bb9179fd5b3e954f362fb346cbd5
tree0e91080511d9c92aa35add79a483ee3801dc0c0d
parentc20ce79303c73855d7a2dd0964f153e902ebdbda
sunvdc: don't call VD_OP_GET_VTOC

The VD_OP_GET_VTOC operation will succeed only if the vdisk backend has a
VTOC label, otherwise it will fail. In particular, it will return error
48 (ENOTSUP) if the disk has an EFI label. VTOC disk labels are already
handled by directly reading the disk in block/partitions/sun.c (enabled by
CONFIG_SUN_PARTITION which defaults to y on SPARC). Since port->label is
unused in the driver, remove the call and the field.

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