iscsi: Handle write protected case in reopen
commit43ae8fb10c5f6ca78f242624c1f446e0050a9d43
authorFam Zheng <famz@redhat.com>
Wed, 25 Feb 2015 04:40:08 +0000 (25 12:40 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 27 Feb 2015 17:26:31 +0000 (27 18:26 +0100)
tree93e2b5c0d65717b296805070ee2f254964657c33
parent8af738b3eecf69a795c6ff78121edbb81ab03684
iscsi: Handle write protected case in reopen

Save the write protected flag and check before reopen.

Signed-off-by: Fam Zheng <famz@redhat.com>
Message-Id: <1424839208-5195-1-git-send-email-famz@redhat.com>
[Fixed typo in the name of the new field. - Paolo]
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
block/iscsi.c