]> 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)
commitb7304a9dd0cc6c63c402d683a8b65968f0c8ced5
tree0e91080511d9c92aa35add79a483ee3801dc0c0d
parentd95e446682a4be52a1b2d9bce2305b009f72ffe8
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