]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerJiri Slaby <jslaby@suse.cz>
Wed, 19 Nov 2014 11:32:54 +0000 (12:32 +0100)
commit6ec85a4339cb39197b1c82f1238ca479f086ea26
tree644ec4336a0968828c17b6664e912c556c812e98
parent4a08354c17c8eea62b9e058d762324aa77e50e84
sunvdc: don't call VD_OP_GET_VTOC

[ Upstream commit 85b0c6e62c48bb9179fd5b3e954f362fb346cbd5 ]

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>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
drivers/block/sunvdc.c