block/nvme: support larger that 512 bytes sector devices
commit118d1b6a81c7c22023ab1c3aad46d37184d1d838
authorMaxim Levitsky <mlevitsk@redhat.com>
Tue, 16 Jul 2019 16:30:19 +0000 (16 19:30 +0300)
committerMax Reitz <mreitz@redhat.com>
Mon, 22 Jul 2019 16:40:32 +0000 (22 18:40 +0200)
treef34b6a0632d7e00230060d4a17cc1b5b2cc010ac
parent461bba04bff0b3712a02fe49812b497c758e78da
block/nvme: support larger that 512 bytes sector devices

Currently the driver hardcodes the sector size to 512,
and doesn't check the underlying device. Fix that.

Also fail if underlying nvme device is formatted with metadata
as this needs special support.

Signed-off-by: Maxim Levitsky <mlevitsk@redhat.com>
Message-id: 20190716163020.13383-3-mlevitsk@redhat.com
Signed-off-by: Max Reitz <mreitz@redhat.com>
block/nvme.c