]> git.baikalelectronics.ru Git - 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)
commit4f5f1141755b4abf36e875352c6d46f3165dc758
tree0e91080511d9c92aa35add79a483ee3801dc0c0d
parent794b6613d22651b8a5771117539cb2c681fd73dd
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