]> www.infradead.org Git - users/jedix/linux-maple.git/commit
oracleasm: Implement support for QUERY HANDLE operation
authorMartin K. Petersen <martin.petersen@oracle.com>
Fri, 26 Oct 2018 22:07:53 +0000 (18:07 -0400)
committerBrian Maly <brian.maly@oracle.com>
Wed, 14 Nov 2018 18:23:27 +0000 (13:23 -0500)
commit58a85ec5e61a88f67390279b5cc58e6c57025d53
treecf922caf8b2f4e0d0af9c35bd7c25ce7008df834
parentad805ee48b6c4021d800f5f6a55fc46a3cd3b923
oracleasm: Implement support for QUERY HANDLE operation

ASMLib previously relied on tagging the disk handle pointer to store
the integrity format. This had the advantage that a simple masking
operation was all that was required to get from a handle to the
integrity information.

However, we have seen a few cases where it appears the disk handle has
been corrupted in userland post discovery. Consequently, it has proven
necessary to be able to query disk properties without relying on the
disk pointer tag.

The oracleasm driver currently only supports looking up disk by their
label string via the query_disk operation.  Implement a query_handle
operation that is similar to query_disk in that it returns all known
disk properties. However, the lookup is done by disk handle instead of
device node. Otherwise the two queries are identical.

Adding the new operation to oracleasm does not prevent older versions
of the library from working correctly. The old tagging mechanism is
still in place, the use of query_handle is entirely optional. Later
ASMLib versions will use the new mode of operation if the query_handle
transaction file appears in /dev/oracleasm.

Orabug: 28650922

Reviewed-by: Sajid Zia <sajid.zia@oracle.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Rajan Shanmugavelu <rajan.shanmugavelu@oracle.com>
Signed-off-by: Brian Maly <brian.maly@oracle.com>
drivers/block/oracleasm/driver.c
drivers/block/oracleasm/trace.h
include/linux/oracleasm/abi.h
include/linux/oracleasm/manager.h