block: read-only: open cdrom as read-only when using monitor's change command
commitcb4e5f8ed1b648c451491b10dc92b1af1e324535
authorNaphtali Sprei <nsprei@redhat.com>
Sun, 25 Apr 2010 16:30:37 +0000 (25 19:30 +0300)
committerAnthony Liguori <aliguori@us.ibm.com>
Mon, 3 May 2010 17:39:53 +0000 (3 12:39 -0500)
treedf59ad6308bb8a33649f853035c189cde6dc256e
parent288e7bccf1719df4d05abc872e75d544089aa139
block: read-only: open cdrom as read-only when using monitor's change command

Current code of monitor command: 'change', used to open file for read-write
uncoditionally. Change to open it as read-only for CDROM, and read-write for all others.

Signed-off-by: Naphtali Sprei <nsprei@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
monitor.c