<div style="line-height:1.7;color:#000000;font-size:14px;font-family:arial"><span style="white-space: pre-wrap; line-height: 1.7;">At 2014-01-28 22:21:26,"Cole Robinson" <crobinso@redhat.com> wrote:</span><br><pre>>On 01/28/2014 02:09 AM, Chen Hanxiao wrote:
>> From: Chen Hanxiao <chenhanxiao@cn.fujitsu.com>
>> 
>> Currently we could config disk with readonly and
>> shareable at the same time, which is meaningless.
>> virsh had already discouraged users doing this.
>> This patch will disable users to config both
>> readonly and shareable at the same time by UI.
>> 
>
>How does 'virsh' complain? If libvirt throws an error about this, I'd rather
>just let it complain and show that error to the user, than reproduce their
>error check, since this is a fairly minor corner case.
>
<pre>virsh could not do this since commit:
</pre><pre>f919cf691735535dedc66a2cae244350ebb6c5e5</pre><pre>virsh # attach-disk aa 1.img sdd --shareable --mode=readonly --print-xml
error: option --mode already seen</pre><pre>If throwing errors is not acceptable, do we have some better metod to avoid this?</pre><pre>Thanks</pre><pre>-Chen</pre>
</pre></div>