target: export lio pgr/alua support as device attr
authorMike Christie <mchristi@redhat.com>
Mon, 10 Jul 2017 19:53:31 +0000 (14:53 -0500)
committerNicholas Bellinger <nab@linux-iscsi.org>
Tue, 11 Jul 2017 03:05:27 +0000 (20:05 -0700)
commitc17d5d5f51f72f24e0e17a4450ae5010bf6962d9
treeb03a0c7110d5f3e0d1b36deac77abe38b886842a
parent7ee0031786dc3762f61d0ec9171bb75d56a5ac76
target: export lio pgr/alua support as device attr

Older kernels could crash or hang if the user write/read some ALUA files
with pscsi and tcmu backends. This patch exports if LIO supports
executing PGR and ALUA scsi commands/checks for the se_device, so userspace
can easily test.

Signed-off-by: Mike Christie <mchristi@redhat.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/target_core_configfs.c