lkml.org 
[lkml]   [2018]   [Mar]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH v2 8.0/8.4] block: sed-opal: check size of shadow mbr
Date
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

\
 
 \ /
  Last update: 2018-03-14 07:16    [W:0.101 / U:0.176 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site