]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: target: make the pi_prot_format ConfigFS path readable
authorDavid Disseldorp <ddiss@suse.de>
Mon, 4 Feb 2019 18:32:10 +0000 (19:32 +0100)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 5 Feb 2019 02:40:32 +0000 (21:40 -0500)
commit22ad4c9c8fef301cebd50ccd7b569f3e9ce9147a
tree1d0efd5a93487b23e2c7702a96ec788e0f90aa21
parentf7d09670ed5ce851d4ff87b74427f63a8e95411a
scsi: target: make the pi_prot_format ConfigFS path readable

pi_prot_format conversion to write-only caused userspace breakage. Make the
ConfigFS path readable again and hardcode the "0\n" content, matching
previous output.

Fixes: d2efdb90e9df ("scsi: target: drop unused pi_prot_format attribute storage")
Link: https://bugzilla.redhat.com/show_bug.cgi?id=1667505
Reported-by: Lee Duncan <lduncan@suse.com>
Reported-by: Laura Abbott <labbott@redhat.com>
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: David Disseldorp <ddiss@suse.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/target/target_core_configfs.c