Fix tgtadm return on update of RedirectReason

tgtadm return error when updating RedirectReason to Temporary
because of wrong var assignment.

Signed-off-by: Roi Dayan <roid@mellanox.com>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
spc_inquiry: store evpd flag and page code in local vars; remove redundant if

Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
add NAA Locally Assigned designator to 0x83 VPD page

Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
spc: Fix REPORT SUPPORTED OPCODES

The length of the data buffer is written to the first 4 bytes in the
buffer not to the end of the bugger.

Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Add support to return TimeoutDescriptors for REPORT SUPPORTED OPCODES

When an initiator requests RCTD in a REPORT SUPPORTED OPCODES call
we have to return timeout descriptors.
Previously we just returned an error if an initiator requested this
but this patch returns an empty timeout descriptor.

Since we dont really have any descriptors to return, just return an
all zero descriptor, except for the length.

Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Add support for reading a single opcode/serviceaction from REPORT SUPPORTED OPCODES

Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>