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) Changes since previous version: v2: - Mask proper bit for ALIGN value 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