Skip to contentSkip to conversation

block: sed-opal: unify retrieval of table columns

PATCH New Jonas Rabenstein 1 participant 1 message Jan 16, 2019

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 12/16 block: sed-opal: unify retrieval of table columns

Instead of having multiple places defining the same argument list to get a specific column of a sed-opal table, provide a generic version and call it from those functions.

---
 block/opal_proto.h |   2 +
 block/sed-opal.c   | 132 +++++++++++++++++----------------------------
 2 files changed, 50 insertions(+), 84 deletions(-)
block/opal_proto.h +2 -0
index e20be8258854..b6e352cfe982 100644
@@ -170,6 +170,8 @@ enum opal_token {
 	OPAL_READLOCKED = 0x07,
 	OPAL_WRITELOCKED = 0x08,
 	OPAL_ACTIVEKEY = 0x0A,
+	/* lockingsp table */
+	OPAL_LIFECYCLE = 0x06,
 	/* locking info table */
 	OPAL_MAXRANGES = 0x04,
 	 /* mbr control */
block/sed-opal.c +48 -84

176 lines not on this page · raw message

Signature · 1 line
2.20.1