[PATCH v2 8.0/8.4] block: sed-opal: check size of shadow mbr
From: Jonas Rabenstein
Date: Wed Mar 14 2018 - 02:16:21 EST
Hi,
I managed to extract the usable shadow mbr size out of my 850Evos
OPAL_TABLE_TABLE and added an appropriate check into the write function.
As this involves more than just a few lines, I decided to split the v2
of this subpatch into 4 separate patches. I am unsure what whould be the
best practice for such an situation but hope it is okay like this.
Also the userspace exported pointer is replaced with an u64 value.
Jonas Rabenstein (4):
block: sed-opal: ioctl for writing to shadow mbr
block: sed-opal: unify retrieval of table columns
block: sed-opal: get metadata about opal-sed tables
block: sed-opal: check size of shadow mbr
block/opal_proto.h | 18 ++++
block/sed-opal.c | 245 ++++++++++++++++++++++++++++--------------
include/linux/sed-opal.h | 1 +
include/uapi/linux/sed-opal.h | 8 ++
4 files changed, 189 insertions(+), 83 deletions(-)
--
2.16.1