linux-block.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/1] sed-opal: geometry feature reporting command
@ 2023-04-06 13:19 Ondrej Kozina
  2023-04-06 13:19 ` [PATCH 1/1] " Ondrej Kozina
  2023-04-11  9:09 ` [PATCH v2 0/1] " Ondrej Kozina
  0 siblings, 2 replies; 11+ messages in thread
From: Ondrej Kozina @ 2023-04-06 13:19 UTC (permalink / raw)
  To: linux-block
  Cc: bluca, gmazyland, axboe, hch, brauner, jonathan.derrick,
	Ondrej Kozina

While further testing various OPAL drives we have discovered that
some drives may impose alignment requirements that can not be
satisfied without reading some aditional parameters reported
by sed-opal iface.

We used to stick to physical block size reported by general block
device in place of LogicalBlockSize as reported by opal 'geometry',
but at least 2 aditional restrictions can not be easily mapped to
anything currently reported by block layer.

Without this patch we can not properly align locking ranges created
via sed-opal iface.

(Also it helps us to explain to userspace what went wrong)

Ondrej Kozina (1):
  sed-opal: geometry feature reporting command

 block/sed-opal.c              | 29 ++++++++++++++++++++++++++++-
 include/linux/sed-opal.h      |  1 +
 include/uapi/linux/sed-opal.h | 13 +++++++++++++
 3 files changed, 42 insertions(+), 1 deletion(-)

-- 
2.31.1


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2023-04-19 20:07 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-04-06 13:19 [PATCH 0/1] sed-opal: geometry feature reporting command Ondrej Kozina
2023-04-06 13:19 ` [PATCH 1/1] " Ondrej Kozina
2023-04-06 20:32   ` Milan Broz
2023-04-11  9:05     ` Ondrej Kozina
2023-04-11  9:09 ` [PATCH v2 0/1] " Ondrej Kozina
2023-04-11  9:09   ` [PATCH v2 1/1] " Ondrej Kozina
2023-04-11 12:31     ` Christoph Hellwig
2023-04-11 13:28     ` Christian Brauner
2023-04-11 14:46     ` Milan Broz
2023-04-19  7:33   ` [PATCH v2 0/1] " Ondrej Kozina
2023-04-19 20:07   ` Jens Axboe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).